File size: 8,389 Bytes
6287ed2
 
 
 
 
 
 
 
d201535
 
 
 
 
6287ed2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d1394bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6287ed2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d201535
6287ed2
 
 
d201535
6287ed2
 
 
d201535
6287ed2
 
 
d201535
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6287ed2
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
/**
 * UAE Knowledge System - Styles
 * Version: 2.3.0
 */

/* ============================================
   BASE STYLES
   ============================================ */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    /* Font stack: Roboto (EN), Noto Sans Arabic (AR), Noto Sans SC (CN) */
    font-family: 'Roboto', 'Noto Sans Arabic', 'Noto Sans SC', sans-serif;
    background-color: #F8F5F0;
    background-image: url('../assets/background.jpg');
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #2D3748;
}

/* Language-specific font optimization */
body[dir="rtl"] {
    font-family: 'Noto Sans Arabic', 'Roboto', sans-serif;
}

body.lang-cn {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
}

/* ============================================
   COLOR UTILITIES
   ============================================ */
.uae-emerald-deep { background-color: #003d1c; }
.uae-emerald-text { color: #003d1c; }

.gold-fade {
    background: linear-gradient(90deg, #b38e3f 0%, #d4af37 50%, #b38e3f 100%);
}

.gold-button-slender {
    background: linear-gradient(90deg, #b38e3f 0%, #d4af37 50%, #b38e3f 100%);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gold-button-slender:hover {
    filter: brightness(1.1);
}

/* ============================================
   FALCON LOGO POSITIONING
   ============================================ */
.falcon-overlap-container {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translate(-50%, -50%);
    z-index: 999;
    pointer-events: none;
}

.falcon-icon {
    height: 100px;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
}

/* ============================================
   RESULT CARD STYLES
   ============================================ */
.summary-box {
    background-color: #FDFBF7;
    border: 1px solid #D4AF37;
    border-radius: 4px;
}

.result-card {
    transition: all 0.2s ease;
}

.result-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ============================================
   RATING BUTTONS
   ============================================ */
.rating-btn {
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0.4;
}

.rating-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.rating-btn.active {
    opacity: 1;
    transform: scale(1.15);
}

/* ============================================
   SENSITIVE TOPICS & RESPONSE GUIDE
   ============================================ */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    color: #003d1c;
}

details[open] summary::before {
    content: '▼ ';
}

details:not([open]) summary::before {
    content: '▶ ';
}

.sensitive-topic-card {
    transition: all 0.2s ease;
}

.sensitive-topic-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================
   RANK DETAILS DROPDOWN
   ============================================ */
.rank-details {
    position: relative;
}

.rank-details summary {
    list-style: none;
}

.rank-details summary::-webkit-details-marker {
    display: none;
}

.rank-details summary::before {
    content: none !important;
}

.rank-details[open] summary {
    border-radius: 4px 4px 0 0;
}

.rank-details > div {
    position: absolute;
    right: 0;
    top: 100%;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   CATEGORY DROPDOWN
   ============================================ */
.category-dropdown {
    position: relative;
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.category-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    transition: background 0.15s ease;
}

.category-option:hover {
    background: #f3f4f6;
}

.category-option.selected {
    background: #003d1c;
    color: white;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #003d1c;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #002b14;
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
    opacity: 0.7;
}

.lang-toggle:hover {
    opacity: 1;
}

.lang-toggle.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

/* ============================================
   HOME MODE - Centered Search
   ============================================ */
#search-header.home-mode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 920px;
    padding: 0 1.5rem;
}

#search-header.home-mode + main {
    display: none;
}

/* Results mode - search at top with green background */
#search-header:not(.home-mode) {
    padding-top: 15px;
    padding-bottom: 25px;
}

/* Green banner class for results mode */
.uae-emerald-condensed {
    background-color: #003d1c !important;
    position: relative;
    z-index: 10;
}

/* Note text white on green background in results mode */
.uae-emerald-condensed #first-query-note {
    color: white !important;
}

/* Adjust falcon position for home mode */
body.home-view .falcon-overlap-container {
    position: fixed;
    top: calc(50% - 120px);
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Larger falcon on home page */
body.home-view .falcon-icon {
    height: 130px;
}

/* Hide footer in home mode */
body.home-view footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .falcon-icon {
        height: 60px;
    }

    .falcon-overlap-container {
        top: 45px;
    }

    body.home-view .falcon-overlap-container {
        top: calc(50% - 130px);
    }

    body.home-view .falcon-icon {
        height: 120px;
    }

    /* Search box lower on mobile home view */
    #search-header.home-mode {
        top: calc(50% + 30px);
    }

    /* Category dropdown full width on mobile */
    .category-dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        border-radius: 0 0 8px 8px;
        max-height: 50vh;
        overflow-y: auto;
    }

    .category-option {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Modal full width on mobile */
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        margin: 0.5rem;
    }
}