-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
654 lines (604 loc) · 51.8 KB
/
Copy pathindex.html
File metadata and controls
654 lines (604 loc) · 51.8 KB
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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WeatherVue - Professional Weather Dashboard</title>
<link rel="manifest" href="/manifest.json">
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg">
<meta name="theme-color" content="#302b63">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="WeatherVue">
<link rel="apple-touch-icon" href="/icons/icon-192.svg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://api.openweathermap.org">
<link rel="preconnect" href="https://unpkg.com">
<link rel="preconnect" href="https://cdn.jsdelivr.net">
<link rel="preconnect" href="https://cdn.tailwindcss.com">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<style>
* { font-family: 'Inter', sans-serif; }
body { transition: background 1s ease; background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); min-height: 100vh; }
html { scroll-behavior: smooth; }
::selection { background: rgba(99,102,241,0.3); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; } }
/* === Glass Cards === */
.glass { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.glass-dark { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
/* === Custom Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.forecast-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.forecast-scroll::-webkit-scrollbar { height: 4px; }
.forecast-scroll::-webkit-scrollbar-track { background: transparent; }
.forecast-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
/* === Animations === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.fade-in { animation: fadeInUp 0.5s ease forwards; }
.fade-in-fast { animation: fadeIn 0.3s ease forwards; }
.scale-in { animation: scaleIn 0.4s ease forwards; }
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }
.stagger-9 { animation-delay: 0.45s; }
.stagger-10 { animation-delay: 0.5s; }
.toast-enter { animation: slideIn 0.3s ease forwards; }
.toast-exit { animation: slideOut 0.3s ease forwards; }
.spinner { animation: spin 0.8s linear infinite; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; animation: pulse-dot 2s ease-in-out infinite; box-shadow: 0 0 6px rgba(34,197,94,0.4); vertical-align: middle; margin-right: 4px; }
/* === Shimmer Skeleton === */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%); background-size: 200% 100%; animation: shimmer 1.8s ease-in-out infinite; border-radius: 12px; overflow: hidden; }
.skeleton-card { border-radius: 12px; overflow: hidden; }
.skeleton-card .s-line { border-radius: 4px; }
.skeleton-card .s-circle { border-radius: 50%; }
.skeleton-card .s-block { border-radius: 8px; }
/* === Animated Weather Icons === */
.awi { position: relative; display: flex; align-items: center; justify-content: center; }
.awi-sun .awi-body { width: 52%; height: 52%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fef08a, #f59e0b); box-shadow: 0 0 40px rgba(251,191,36,0.5); animation: awi-pulse 3s ease-in-out infinite; }
.awi-sun .awi-rays { position: absolute; inset: 0; animation: awi-spin 14s linear infinite; }
.awi-sun .awi-rays span { position: absolute; width: 3px; height: 20%; background: linear-gradient(to top, #fbbf24, transparent); border-radius: 2px; top: 4%; left: 50%; transform-origin: center calc(460%); }
.awi-cloud .awi-body { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.25); animation: awi-float 4s ease-in-out infinite; }
.awi-cloud .awi-body:nth-child(1) { width: 50%; height: 50%; top: 30%; left: 15%; }
.awi-cloud .awi-body:nth-child(2) { width: 40%; height: 40%; top: 25%; left: 40%; animation-delay: -1s; }
.awi-cloud .awi-body:nth-child(3) { width: 35%; height: 35%; bottom: 15%; left: 25%; background: rgba(255,255,255,0.18); animation-delay: -2s; }
.awi-rain .awi-cloud-body { position: absolute; border-radius: 50%; background: rgba(180,200,220,0.35); }
.awi-rain .awi-cloud-body:nth-child(1) { width: 50%; height: 50%; top: 20%; left: 15%; }
.awi-rain .awi-cloud-body:nth-child(2) { width: 40%; height: 40%; top: 15%; left: 42%; }
.awi-rain .awi-drops { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.awi-rain .awi-drops span { width: 2px; height: 14px; background: rgba(148,187,233,0.6); border-radius: 1px; animation: awi-rain-fall 0.7s linear infinite; }
.awi-rain .awi-drops span:nth-child(2) { animation-delay: -0.2s; height: 10px; }
.awi-rain .awi-drops span:nth-child(3) { animation-delay: -0.4s; height: 12px; }
.awi-snow .awi-cloud-body { position: absolute; border-radius: 50%; background: rgba(220,230,245,0.3); }
.awi-snow .awi-cloud-body:nth-child(1) { width: 50%; height: 50%; top: 20%; left: 15%; }
.awi-snow .awi-cloud-body:nth-child(2) { width: 40%; height: 40%; top: 15%; left: 42%; }
.awi-snow .awi-flakes { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.awi-snow .awi-flakes span { width: 5px; height: 5px; background: rgba(255,255,255,0.7); border-radius: 50%; animation: awi-snow-fall 2.2s ease-in-out infinite; }
.awi-snow .awi-flakes span:nth-child(2) { animation-delay: -0.7s; width: 4px; height: 4px; }
.awi-snow .awi-flakes span:nth-child(3) { animation-delay: -1.4s; }
.awi-thunder .awi-cloud-body { position: absolute; border-radius: 50%; background: rgba(100,110,130,0.4); }
.awi-thunder .awi-cloud-body:nth-child(1) { width: 50%; height: 50%; top: 20%; left: 15%; }
.awi-thunder .awi-cloud-body:nth-child(2) { width: 40%; height: 40%; top: 15%; left: 42%; }
.awi-thunder .awi-bolt { position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%); width: 4px; height: 28px; background: #fbbf24; border-radius: 1px; animation: awi-flash 2s ease-in-out infinite; box-shadow: 0 0 12px #fbbf24; }
.awi-mist span { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.15); margin: 5px auto; animation: awi-mist-drift 3s ease-in-out infinite; }
.awi-mist span:nth-child(1) { width: 55%; } .awi-mist span:nth-child(2) { width: 70%; animation-delay: -1s; } .awi-mist span:nth-child(3) { width: 45%; animation-delay: -2s; }
.awi-night .awi-moon { width: 40%; height: 40%; border-radius: 50%; background: radial-gradient(circle at 55% 45%, #f0f0f0, #c0c0c0); box-shadow: 0 0 30px rgba(200,200,220,0.3); position: absolute; top: 22%; right: 18%; }
.awi-night .awi-moon-shadow { width: 35%; height: 35%; border-radius: 50%; background: rgba(15,12,41,0.9); position: absolute; top: 20%; right: 24%; }
.awi-night .awi-stars span { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; animation: awi-twinkle 2s ease-in-out infinite; }
@keyframes awi-pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 40px rgba(251,191,36,0.5); } 50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(251,191,36,0.7); } }
@keyframes awi-spin { to { transform: rotate(360deg); } }
@keyframes awi-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes awi-rain-fall { 0% { transform: translateY(-4px); opacity: 0.8; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes awi-snow-fall { 0% { transform: translateY(-4px) rotate(0deg); opacity: 0.9; } 100% { transform: translateY(18px) rotate(180deg); opacity: 0; } }
@keyframes awi-flash { 0%,100% { opacity: 0.3; transform: translateX(-50%) scaleY(1); } 10% { opacity: 1; transform: translateX(-50%) scaleY(1.3); } 20% { opacity: 0.3; } 30% { opacity: 1; transform: translateX(-50%) scaleY(1.2); } 40% { opacity: 0.3; } }
@keyframes awi-mist-drift { 0%,100% { transform: translateX(-6px); opacity: 0.5; } 50% { transform: translateX(6px); opacity: 0.8; } }
@keyframes awi-twinkle { 0%,100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
/* === Interactive Elements === */
.stat-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.stat-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.stat-card:active { transform: translateY(-1px); }
.forecast-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.forecast-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.14); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.hourly-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); min-width: 90px; }
.hourly-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.14); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.star-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.star-btn:hover { transform: scale(1.2); filter: brightness(1.2); }
.star-btn.active svg { fill: #fbbf24; stroke: #fbbf24; filter: drop-shadow(0 0 6px rgba(251,191,36,0.4)); }
.recent-chip { transition: all 0.2s ease; cursor: pointer; }
.recent-chip:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.unit-btn { transition: all 0.3s ease; cursor: pointer; }
.unit-btn:hover { background: rgba(255,255,255,0.2); }
.unit-btn.active { background: rgba(255,255,255,0.2); color: white; box-shadow: 0 0 12px rgba(255,255,255,0.05); }
.aqi-badge { transition: all 0.3s ease; }
.aqi-badge:hover { transform: scale(1.08); }
.map-layer-btn { transition: all 0.2s ease; cursor: pointer; }
.map-layer-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.map-layer-btn.active { background: rgba(255,255,255,0.2); color: white; box-shadow: 0 0 8px rgba(255,255,255,0.05); }
.map-layer-btn:active { transform: translateY(0); }
/* === Autocomplete === */
#autocomplete-list { max-height: 260px; overflow-y: auto; z-index: 100; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
#autocomplete-list .ac-item { cursor: pointer; transition: background 0.15s ease; }
#autocomplete-list .ac-item:hover, #autocomplete-list .ac-item[aria-selected="true"] { background: rgba(255,255,255,0.14); }
#autocomplete-list .ac-item:last-child { border-bottom: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* === Search === */
#search-input { transition: all 0.3s ease; }
#search-input:focus { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }
/* === Light theme === */
.light-theme body, html.light-theme body { background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 50%, #faf5ff 100%) !important; }
.light-theme .glass { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.light-theme .glass-dark { background: rgba(255,255,255,0.5); border-color: rgba(0,0,0,0.06); box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.light-theme .live-dot { background: #16a34a; box-shadow: 0 0 6px rgba(22,163,74,0.4); }
.light-theme ::selection { background: rgba(99,102,241,0.2); }
.light-theme h1, .light-theme h2, .light-theme h3, .light-theme .text-white { color: #1e1b4b !important; }
.light-theme .text-white\/80, .light-theme .text-white\/70, .light-theme .text-white\/65 { color: #4338ca !important; }
.light-theme .text-white\/60 { color: #6366f1 !important; }
.light-theme .text-white\/55, .light-theme .text-white\/50, .light-theme .text-white\/45 { color: #6b7280 !important; }
.light-theme .text-white\/40, .light-theme .text-white\/35, .light-theme .text-white\/30 { color: #9ca3af !important; }
.light-theme .text-white\/25 { color: #b0b7c3 !important; }
.light-theme #search-input { background: rgba(255,255,255,0.7); color: #1e1b4b; border-color: rgba(0,0,0,0.1); }
.light-theme #search-input::placeholder { color: #9ca3af; }
.light-theme #search-input:focus { border-color: #6366f1; background: rgba(255,255,255,0.9); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.light-theme #autocomplete-list { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.1); }
.light-theme .ac-item span { color: #4338ca !important; }
.light-theme .ac-item { border-color: rgba(0,0,0,0.05); }
.light-theme #autocomplete-list .ac-item[aria-selected="true"], .light-theme #autocomplete-list .ac-item:hover { background: rgba(99,102,241,0.1); }
.light-theme ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }
.light-theme ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
.light-theme .skeleton { background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.03) 75%); }
.light-theme .stat-card:hover { background: rgba(255,255,255,0.8); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.light-theme .forecast-card:hover, .light-theme .hourly-card:hover { background: rgba(255,255,255,0.7); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.light-theme .recent-chip { background: rgba(0,0,0,0.05); color: #4338ca; border-color: rgba(0,0,0,0.08); }
.light-theme .recent-chip:hover { background: rgba(0,0,0,0.1); color: #1e1b4b; }
.light-theme .unit-btn { color: #6366f1; }
.light-theme .unit-btn.active { background: rgba(99,102,241,0.15); color: #1e1b4b; box-shadow: 0 0 12px rgba(99,102,241,0.1); }
.light-theme .leaflet-control-attribution { background: rgba(255,255,255,0.7) !important; }
.light-theme #lang-select { background: rgba(255,255,255,0.7); color: #1e1b4b; border-color: rgba(0,0,0,0.1); }
.light-theme #map-layer-radar, .light-theme #map-layer-wind, .light-theme #map-layer-temp { color: #4338ca; border-color: rgba(0,0,0,0.1); }
.light-theme #map-layer-radar.active, .light-theme #map-layer-wind.active, .light-theme #map-layer-temp.active { background: rgba(99,102,241,0.15); color: #1e1b4b; }
/* === Alert severity colors === */
.alert-red { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); }
.alert-orange { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.35); }
.alert-yellow { background: rgba(234,179,8,0.12); border-color: rgba(234,179,8,0.3); }
/* === UV Gauge === */
#uv-gauge { border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(0,0,0,0.2); }
#uv-gauge-inner { width: 60%; height: 60%; border-radius: 50%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: white; backdrop-filter: blur(4px); }
@media (min-width: 768px) { #uv-gauge-inner { font-size: 2rem; } }
/* === Map === */
#weather-map { border-radius: 12px; overflow: hidden; }
#weather-map .leaflet-control-zoom a { background: rgba(30,25,55,0.85); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.15); transition: all 0.2s; }
#weather-map .leaflet-control-zoom a:hover { background: rgba(50,45,80,0.9); color: white; }
#weather-map .leaflet-control-attribution { background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.3); font-size: 9px; }
#weather-map .leaflet-control-attribution a { color: rgba(255,255,255,0.4); }
.leaflet-popup-content-wrapper { background: rgba(20,15,40,0.9); backdrop-filter: blur(10px); color: white; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; }
.leaflet-popup-tip { background: rgba(20,15,40,0.9); }
.leaflet-popup-close-button { color: rgba(255,255,255,0.5) !important; }
/* === Pull-to-refresh === */
#refresh-indicator { position: fixed; top: 0; left: 0; right: 0; z-index: 60; text-align: center; padding: 12px; font-size: 12px; color: rgba(255,255,255,0.5); pointer-events: none; transition: opacity 0.2s; }
/* === Modals === */
#settings-modal { animation: fadeIn 0.2s ease; }
#settings-modal input, #settings-modal select { transition: all 0.2s ease; }
#settings-modal input:focus, #settings-modal select:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.15); box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
#shortcuts-modal { animation: fadeIn 0.2s ease; }
</style>
</head>
<body class="flex items-start justify-center p-3 sm:p-4 md:p-6">
<div class="w-full max-w-5xl mx-auto space-y-4 md:space-y-6">
<!-- Pull-to-refresh -->
<div id="refresh-indicator" style="opacity:0"></div>
<!-- Toast -->
<div id="toast" class="fixed top-4 right-4 z-50 hidden" role="alert" aria-live="assertive">
<div class="glass-dark rounded-2xl px-5 py-3 border border-red-400/30 text-white text-sm shadow-2xl backdrop-blur-2xl">
<div class="flex items-center gap-2">
<i data-lucide="alert-circle" class="w-4 h-4 text-red-300 shrink-0" aria-hidden="true"></i>
<span id="toast-message" class="text-white/90"></span>
</div>
</div>
</div>
<!-- Offline Banner -->
<div id="offline-banner" class="fixed top-4 left-1/2 -translate-x-1/2 z-50 hidden" role="alert">
<div class="glass-dark rounded-2xl px-4 py-2 border border-yellow-400/30 text-white text-xs shadow-2xl backdrop-blur-2xl flex items-center gap-2">
<i data-lucide="wifi-off" class="w-3.5 h-3.5 text-yellow-300 shrink-0" aria-hidden="true"></i>
<span>Offline — showing cached data</span>
</div>
</div>
<!-- Settings Modal -->
<div id="settings-modal" class="fixed inset-0 z-50 hidden flex items-center justify-center p-4" role="dialog" aria-modal="true" aria-label="Settings">
<div id="settings-overlay" class="absolute inset-0 bg-black/50 backdrop-blur-sm"></div>
<div class="relative glass-dark rounded-2xl md:rounded-3xl p-6 md:p-8 w-full max-w-md border border-white/10 shadow-2xl">
<div class="flex items-center justify-between mb-6">
<h3 class="text-lg font-semibold text-white/90">Settings</h3>
<button id="settings-close" class="p-1.5 rounded-lg bg-white/10 hover:bg-white/20 transition-all" aria-label="Close settings">
<i data-lucide="x" class="w-4 h-4 text-white/70"></i>
</button>
</div>
<div class="space-y-5">
<div>
<label for="settings-api-key" class="block text-xs text-white/60 uppercase tracking-widest mb-1.5">OpenWeatherMap API Key</label>
<input type="password" id="settings-api-key" placeholder="Enter your API key" class="w-full px-4 py-2.5 rounded-xl bg-white/10 text-white placeholder-white/35 border border-white/10 focus:outline-none focus:border-white/30 text-sm">
<p class="text-white/35 text-[10px] mt-1">Leave empty to use the server's default key.</p>
</div>
<div>
<label for="settings-default-city" class="block text-xs text-white/60 uppercase tracking-widest mb-1.5">Default City</label>
<input type="text" id="settings-default-city" placeholder="e.g. London" class="w-full px-4 py-2.5 rounded-xl bg-white/10 text-white placeholder-white/35 border border-white/10 focus:outline-none focus:border-white/30 text-sm">
</div>
<div>
<label for="settings-refresh" class="block text-xs text-white/60 uppercase tracking-widest mb-1.5">Auto-Refresh Interval</label>
<select id="settings-refresh" class="w-full px-4 py-2.5 rounded-xl bg-white/10 text-white border border-white/10 focus:outline-none focus:border-white/30 text-sm">
<option value="5" class="bg-gray-800">5 minutes</option>
<option value="10" class="bg-gray-800">10 minutes</option>
<option value="30" class="bg-gray-800">30 minutes</option>
<option value="0" class="bg-gray-800">Off</option>
</select>
</div>
</div>
<button id="settings-save" class="w-full mt-6 py-2.5 rounded-xl bg-white/20 hover:bg-white/30 text-white text-sm font-semibold transition-all active:scale-[0.98]">Save Settings</button>
</div>
</div>
<!-- Keyboard Shortcuts Modal -->
<div id="shortcuts-modal" class="fixed inset-0 z-50 hidden flex items-center justify-center p-4" role="dialog" aria-modal="true" aria-label="Keyboard shortcuts">
<div id="shortcuts-overlay" class="absolute inset-0 bg-black/50 backdrop-blur-sm"></div>
<div class="relative glass-dark rounded-2xl md:rounded-3xl p-6 md:p-8 w-full max-w-sm border border-white/10 shadow-2xl">
<div class="flex items-center justify-between mb-5">
<h3 class="text-base font-semibold text-white/90">Keyboard Shortcuts</h3>
<button id="shortcuts-close" class="p-1.5 rounded-lg bg-white/10 hover:bg-white/20 transition-all" aria-label="Close shortcuts">
<i data-lucide="x" class="w-4 h-4 text-white/70"></i>
</button>
</div>
<div class="space-y-3 text-sm">
<div class="flex items-center justify-between"><span class="text-white/60"><kbd class="px-2 py-0.5 rounded bg-white/10 text-white/80 text-xs font-mono">/</kbd> Search cities</span><span class="text-white/30 text-xs">Anywhere</span></div>
<div class="flex items-center justify-between"><span class="text-white/60"><kbd class="px-2 py-0.5 rounded bg-white/10 text-white/80 text-xs font-mono">L</kbd> Use my location</span><span class="text-white/30 text-xs">Anywhere</span></div>
<div class="flex items-center justify-between"><span class="text-white/60"><kbd class="px-2 py-0.5 rounded bg-white/10 text-white/80 text-xs font-mono">?</kbd> Show shortcuts</span><span class="text-white/30 text-xs">Anywhere</span></div>
<div class="flex items-center justify-between"><span class="text-white/60"><kbd class="px-2 py-0.5 rounded bg-white/10 text-white/80 text-xs font-mono">Esc</kbd> Close modals</span><span class="text-white/30 text-xs">Modal</span></div>
<div class="flex items-center justify-between"><span class="text-white/60"><kbd class="px-2 py-0.5 rounded bg-white/10 text-white/80 text-xs font-mono">↑↓</kbd> Navigate suggestions</span><span class="text-white/30 text-xs">Search</span></div>
<div class="flex items-center justify-between"><span class="text-white/60"><kbd class="px-2 py-0.5 rounded bg-white/10 text-white/80 text-xs font-mono">Enter</kbd> Select / search</span><span class="text-white/30 text-xs">Search</span></div>
</div>
</div>
</div>
<!-- Header -->
<header class="glass rounded-2xl md:rounded-3xl p-4 md:p-6 flex flex-col md:flex-row items-center justify-between gap-4 fade-in" role="banner">
<div class="flex items-center gap-3 shrink-0">
<div class="w-9 h-9 md:w-10 md:h-10 rounded-xl bg-white/10 flex items-center justify-center" aria-hidden="true">
<i data-lucide="cloud-sun" class="w-5 h-5 md:w-6 md:h-6 text-white"></i>
</div>
<div>
<h1 class="text-xl md:text-2xl font-bold text-white tracking-tight">WeatherVue</h1>
<p id="update-timestamp" class="text-white/30 text-[10px] md:text-xs -mt-0.5" aria-live="polite"></p>
</div>
</div>
<div class="flex items-center gap-2 w-full md:w-auto" role="search" aria-label="Search weather by city">
<div class="relative flex-1 md:flex-none">
<i data-lucide="search" class="absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-white/40 pointer-events-none" aria-hidden="true"></i>
<input type="text" id="search-input" placeholder="Search city..." autocomplete="off" role="combobox" aria-expanded="false" aria-controls="autocomplete-list" aria-autocomplete="list" aria-activedescendant="" aria-label="Search for a city"
class="w-full md:w-60 pl-10 pr-4 py-2.5 rounded-xl md:rounded-2xl bg-white/10 text-white placeholder-white/35 border border-white/10 focus:outline-none focus:border-white/30 focus:bg-white/15 focus:ring-1 focus:ring-white/20 transition-all text-sm">
<div id="autocomplete-list" class="hidden absolute top-full left-0 right-0 mt-1 glass-dark rounded-xl overflow-hidden border border-white/10" role="listbox" aria-label="City suggestions"></div>
</div>
<button id="search-btn" class="p-2.5 rounded-xl md:rounded-2xl bg-white/10 hover:bg-white/20 border border-white/10 transition-all active:scale-95" aria-label="Search city">
<i data-lucide="search" class="w-4 h-4 md:w-5 md:h-5 text-white" aria-hidden="true"></i>
</button>
<button id="location-btn" class="p-2.5 rounded-xl md:rounded-2xl bg-white/10 hover:bg-white/20 border border-white/10 transition-all active:scale-95" aria-label="Use my current location" title="Use my location">
<i data-lucide="map-pin" class="w-4 h-4 md:w-5 md:h-5 text-white" aria-hidden="true"></i>
</button>
<select id="lang-select" class="bg-white/10 text-white/80 text-xs rounded-xl md:rounded-2xl px-2 py-2.5 border border-white/10 focus:outline-none focus:border-white/30 cursor-pointer appearance-none" aria-label="Select language">
<option value="en" class="bg-gray-800 text-white">EN</option>
<option value="fr" class="bg-gray-800 text-white">FR</option>
<option value="es" class="bg-gray-800 text-white">ES</option>
<option value="de" class="bg-gray-800 text-white">DE</option>
<option value="ja" class="bg-gray-800 text-white">JA</option>
</select>
<button id="theme-btn" class="p-2.5 rounded-xl md:rounded-2xl bg-white/10 hover:bg-white/20 border border-white/10 transition-all active:scale-95" aria-label="Toggle dark/light theme" title="Toggle theme">
<i id="theme-icon" data-lucide="moon" class="w-4 h-4 md:w-5 md:h-5 text-white" aria-hidden="true"></i>
</button>
<button id="settings-btn" class="p-2.5 rounded-xl md:rounded-2xl bg-white/10 hover:bg-white/20 border border-white/10 transition-all active:scale-95" aria-label="Settings" title="Settings">
<i data-lucide="settings" class="w-4 h-4 md:w-5 md:h-5 text-white" aria-hidden="true"></i>
</button>
<div class="flex rounded-xl md:rounded-2xl bg-white/10 border border-white/10 overflow-hidden ml-1" role="group" aria-label="Temperature unit">
<button id="unit-celsius" class="unit-btn active px-2 py-2 text-xs text-white/60 font-medium" aria-pressed="true">°C</button>
<button id="unit-fahrenheit" class="unit-btn px-2 py-2 text-xs text-white/60 font-medium" aria-pressed="false">°F</button>
</div>
</div>
</header>
<!-- Recent & Favorites -->
<div id="chips-bar" class="hidden flex-wrap items-center gap-2 fade-in">
<div id="favorites-chips" class="flex items-center gap-2 flex-wrap"></div>
<div id="recent-chips" class="flex items-center gap-2 flex-wrap"></div>
</div>
<!-- Main Content -->
<main id="weather-content" class="space-y-4 md:space-y-6" aria-label="Weather data" aria-live="polite">
<!-- Loading State (spinner) -->
<div id="loading-state" class="hidden glass rounded-2xl md:rounded-3xl p-10 md:p-16 text-center">
<div class="w-10 h-10 mx-auto mb-4 rounded-full border-3 border-white/15 border-t-white/70 spinner"></div>
<p class="text-white/50 text-sm">Loading weather data...</p>
</div>
<!-- Refined Skeleton Loading -->
<div id="skeleton-group" class="hidden space-y-4 md:space-y-6">
<!-- Current weather skeleton -->
<div class="glass rounded-2xl md:rounded-3xl p-6 md:p-8">
<div class="flex flex-col md:flex-row items-center md:items-start justify-between gap-4 md:gap-6">
<div class="space-y-3 text-center md:text-left w-full md:w-auto">
<div class="skeleton h-7 w-48 mx-auto md:mx-0 rounded-lg"></div>
<div class="skeleton h-4 w-32 mx-auto md:mx-0 rounded-md"></div>
</div>
<div class="flex items-center gap-3 md:gap-5">
<div class="skeleton rounded-full w-20 h-20 md:w-24 md:h-24"></div>
<div class="skeleton h-16 w-24 rounded-lg"></div>
</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mt-6 md:mt-8">
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mt-3 md:mt-4">
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
<div class="skeleton h-20 md:h-24 rounded-xl md:rounded-2xl"></div>
</div>
</div>
<!-- Forecast skeleton - refined card layout -->
<div class="glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="skeleton h-5 w-36 mb-4 md:mb-6 rounded-md"></div>
<div class="flex gap-3 md:gap-4">
<div class="skeleton-card skeleton min-w-[130px] md:min-w-[155px] flex-shrink-0 p-3 md:p-5">
<div class="skeleton s-line h-3 w-16 mx-auto mb-3"></div>
<div class="skeleton s-circle w-9 h-9 md:w-12 md:h-12 mx-auto mb-2"></div>
<div class="skeleton s-line h-5 w-12 mx-auto mb-1"></div>
<div class="skeleton s-line h-3 w-20 mx-auto"></div>
</div>
<div class="skeleton-card skeleton min-w-[130px] md:min-w-[155px] flex-shrink-0 p-3 md:p-5">
<div class="skeleton s-line h-3 w-16 mx-auto mb-3"></div>
<div class="skeleton s-circle w-9 h-9 md:w-12 md:h-12 mx-auto mb-2"></div>
<div class="skeleton s-line h-5 w-12 mx-auto mb-1"></div>
<div class="skeleton s-line h-3 w-20 mx-auto"></div>
</div>
<div class="skeleton-card skeleton min-w-[130px] md:min-w-[155px] flex-shrink-0 p-3 md:p-5">
<div class="skeleton s-line h-3 w-16 mx-auto mb-3"></div>
<div class="skeleton s-circle w-9 h-9 md:w-12 md:h-12 mx-auto mb-2"></div>
<div class="skeleton s-line h-5 w-12 mx-auto mb-1"></div>
<div class="skeleton s-line h-3 w-20 mx-auto"></div>
</div>
<div class="skeleton-card skeleton min-w-[130px] md:min-w-[155px] flex-shrink-0 p-3 md:p-5">
<div class="skeleton s-line h-3 w-16 mx-auto mb-3"></div>
<div class="skeleton s-circle w-9 h-9 md:w-12 md:h-12 mx-auto mb-2"></div>
<div class="skeleton s-line h-5 w-12 mx-auto mb-1"></div>
<div class="skeleton s-line h-3 w-20 mx-auto"></div>
</div>
<div class="skeleton-card skeleton min-w-[130px] md:min-w-[155px] flex-shrink-0 p-3 md:p-5">
<div class="skeleton s-line h-3 w-16 mx-auto mb-3"></div>
<div class="skeleton s-circle w-9 h-9 md:w-12 md:h-12 mx-auto mb-2"></div>
<div class="skeleton s-line h-5 w-12 mx-auto mb-1"></div>
<div class="skeleton s-line h-3 w-20 mx-auto"></div>
</div>
</div>
</div>
<!-- Hourly skeleton -->
<div class="glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="skeleton h-5 w-28 mb-4 md:mb-6 rounded-md"></div>
<div class="flex gap-4 items-center">
<div class="skeleton rounded-full w-16 h-16 shrink-0"></div>
<div class="skeleton h-4 w-40 rounded-md"></div>
</div>
<div class="grid grid-cols-3 md:grid-cols-6 gap-3 mt-4">
<div class="skeleton h-14 rounded-xl"></div>
<div class="skeleton h-14 rounded-xl"></div>
<div class="skeleton h-14 rounded-xl"></div>
<div class="skeleton h-14 rounded-xl"></div>
<div class="skeleton h-14 rounded-xl"></div>
<div class="skeleton h-14 rounded-xl"></div>
</div>
</div>
<!-- Chart skeleton -->
<div class="glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="skeleton h-5 w-32 mb-4 md:mb-6 rounded-md"></div>
<div class="skeleton w-full h-[250px] md:h-[360px] rounded-xl md:rounded-2xl"></div>
</div>
</div>
<!-- Empty State -->
<div id="empty-state" class="glass rounded-2xl md:rounded-3xl p-10 md:p-16 text-center fade-in">
<div class="w-16 h-16 md:w-20 md:h-20 mx-auto mb-4 md:mb-6 rounded-2xl md:rounded-3xl bg-white/10 flex items-center justify-center">
<i data-lucide="cloud-sun" class="w-8 h-8 md:w-10 md:h-10 text-white/50"></i>
</div>
<h2 class="text-xl md:text-2xl font-semibold text-white/80 mb-2">Welcome to WeatherVue</h2>
<p class="text-white/50 text-sm md:text-base">Search for a city or allow location access to get started.</p>
</div>
<!-- Current Weather -->
<div id="current-weather" class="hidden glass rounded-2xl md:rounded-3xl p-6 md:p-8">
<div class="flex flex-col md:flex-row items-center md:items-start justify-between gap-4 md:gap-6">
<div class="text-center md:text-left">
<div class="flex items-center justify-center md:justify-start gap-2">
<h2 id="city-name" class="text-2xl md:text-3xl font-bold text-white">--</h2>
<span id="star-btn" class="star-btn text-white/30 hover:text-yellow-300" title="Save to favorites" role="button" tabindex="0" aria-label="Toggle favorite" aria-pressed="false">
<i data-lucide="star" class="w-5 h-5" aria-hidden="true"></i>
</span>
</div>
<p id="weather-desc" class="text-white/55 text-base md:text-lg capitalize mt-0.5 md:mt-1">--</p>
<div class="mt-1.5 md:mt-2 flex items-center justify-center md:justify-start gap-1.5 text-white/45 text-xs md:text-sm">
<i data-lucide="map-pin" class="w-3 h-3 md:w-3.5 md:h-3.5"></i>
<span id="country-name">--</span>
</div>
</div>
<div class="flex items-center gap-3 md:gap-5">
<div id="animated-icon-container" class="w-20 h-20 md:w-24 md:h-24"></div>
<div>
<p id="temperature" class="text-5xl md:text-7xl font-extrabold text-white tracking-tighter leading-none">--°</p>
<p class="text-white/35 text-xs md:text-sm mt-1 md:mt-1.5 text-center md:text-left">Feels like <span id="feels-like">--</span>°</p>
</div>
</div>
</div>
<!-- Stats Grid Row 1 -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mt-6 md:mt-8">
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center fade-in stagger-1">
<i data-lucide="droplet" class="w-4 h-4 md:w-5 md:h-5 text-blue-300 mx-auto mb-1.5 md:mb-2" aria-hidden="true"></i>
<p id="lbl-humidity" class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest">Humidity</p>
<p id="humidity" class="text-base md:text-xl font-semibold text-white mt-0.5 md:mt-1">--%</p>
</div>
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center relative overflow-hidden fade-in stagger-2">
<p class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest mb-1">Wind</p>
<div id="wind-compass" class="relative w-14 h-14 md:w-16 md:h-16 mx-auto">
<svg viewBox="0 0 64 64" class="w-full h-full">
<circle cx="32" cy="32" r="28" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/>
<circle cx="32" cy="32" r="24" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/>
<text x="32" y="7" text-anchor="middle" font-size="6" fill="rgba(255,255,255,0.3)" font-family="Inter,sans-serif">N</text>
<text x="32" y="59" text-anchor="middle" font-size="6" fill="rgba(255,255,255,0.3)" font-family="Inter,sans-serif">S</text>
<text x="6" y="34" text-anchor="middle" font-size="6" fill="rgba(255,255,255,0.3)" font-family="Inter,sans-serif">W</text>
<text x="58" y="34" text-anchor="middle" font-size="6" fill="rgba(255,255,255,0.3)" font-family="Inter,sans-serif">E</text>
<g id="wind-arrow" style="transform-origin:32px 32px;transition:transform 0.6s ease">
<polygon points="32,6 28,24 32,22 36,24" fill="#38bdf8"/>
<polygon points="32,58 28,40 32,42 36,40" fill="rgba(56,189,248,0.3)"/>
</g>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span id="wind-speed" class="text-[10px] md:text-xs font-bold text-white">--</span>
</div>
</div>
<p id="wind-dir-label" class="text-white/40 text-[9px] md:text-[10px] mt-0.5">--</p>
</div>
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center fade-in stagger-3">
<i data-lucide="gauge" class="w-4 h-4 md:w-5 md:h-5 text-yellow-300 mx-auto mb-1.5 md:mb-2" aria-hidden="true"></i>
<p id="lbl-pressure" class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest">Pressure</p>
<p id="pressure" class="text-base md:text-xl font-semibold text-white mt-0.5 md:mt-1">-- hPa</p>
</div>
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center fade-in stagger-4">
<i data-lucide="thermometer" class="w-4 h-4 md:w-5 md:h-5 text-red-300 mx-auto mb-1.5 md:mb-2" aria-hidden="true"></i>
<p id="lbl-feelslike" class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest">Feels Like</p>
<p id="feels-like-stat" class="text-base md:text-xl font-semibold text-white mt-0.5 md:mt-1">--°</p>
</div>
</div>
<!-- Stats Grid Row 2 -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mt-3 md:mt-4">
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center fade-in stagger-5">
<i data-lucide="sunrise" class="w-4 h-4 md:w-5 md:h-5 text-orange-300 mx-auto mb-1.5 md:mb-2" aria-hidden="true"></i>
<p id="lbl-sunrise" class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest">Sunrise</p>
<p id="sunrise" class="text-base md:text-xl font-semibold text-white mt-0.5 md:mt-1">--</p>
</div>
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center fade-in stagger-6">
<i data-lucide="sunset" class="w-4 h-4 md:w-5 md:h-5 text-orange-400 mx-auto mb-1.5 md:mb-2" aria-hidden="true"></i>
<p id="lbl-sunset" class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest">Sunset</p>
<p id="sunset" class="text-base md:text-xl font-semibold text-white mt-0.5 md:mt-1">--</p>
</div>
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center fade-in stagger-7">
<i data-lucide="eye" class="w-4 h-4 md:w-5 md:h-5 text-green-300 mx-auto mb-1.5 md:mb-2" aria-hidden="true"></i>
<p id="lbl-visibility" class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest">Visibility</p>
<p id="visibility" class="text-base md:text-xl font-semibold text-white mt-0.5 md:mt-1">--</p>
</div>
<div class="stat-card glass-dark rounded-xl md:rounded-2xl p-3 md:p-4 text-center fade-in stagger-8">
<i data-lucide="cloud" class="w-4 h-4 md:w-5 md:h-5 text-white/60 mx-auto mb-1.5 md:mb-2" aria-hidden="true"></i>
<p id="lbl-cloudcover" class="text-white/45 text-[10px] md:text-xs uppercase tracking-widest">Cloud Cover</p>
<p id="cloud-cover" class="text-base md:text-xl font-semibold text-white mt-0.5 md:mt-1">--</p>
</div>
</div>
</div>
<!-- Weather Alerts -->
<div id="alerts-section" class="hidden space-y-2 fade-in"></div>
<!-- 5-Day Forecast -->
<div id="forecast-section" class="hidden glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="flex items-center gap-2 mb-4 md:mb-6">
<i data-lucide="calendar-days" class="w-4 h-4 md:w-5 md:h-5 text-white/70"></i>
<h3 id="lbl-forecast" class="text-base md:text-lg font-semibold text-white/80">5-Day Forecast</h3>
</div>
<div id="forecast-grid" class="forecast-scroll flex gap-3 md:gap-4 overflow-x-auto pb-2 -mx-1 px-1"></div>
</div>
<!-- Hourly Forecast -->
<div id="hourly-section" class="hidden glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="flex items-center gap-2 mb-4 md:mb-6">
<i data-lucide="clock" class="w-4 h-4 md:w-5 md:h-5 text-white/70"></i>
<h3 id="lbl-hourly" class="text-base md:text-lg font-semibold text-white/80">Hourly Forecast</h3>
</div>
<div id="hourly-grid" class="forecast-scroll flex gap-3 overflow-x-auto pb-2 -mx-1 px-1"></div>
</div>
<!-- Temperature Chart -->
<div id="chart-section" class="hidden glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="flex items-center gap-2 mb-4 md:mb-6">
<i data-lucide="trending-up" class="w-4 h-4 md:w-5 md:h-5 text-white/70"></i>
<h3 id="lbl-chart" class="text-base md:text-lg font-semibold text-white/80">Temperature & Humidity Trend</h3>
</div>
<canvas id="temp-chart" class="w-full" style="height:260px"></canvas>
</div>
<!-- Precipitation Probability Chart -->
<div id="pop-chart-section" class="hidden glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="flex items-center gap-2 mb-4 md:mb-6">
<i data-lucide="cloud-rain" class="w-4 h-4 md:w-5 md:h-5 text-white/70"></i>
<h3 id="lbl-popchart" class="text-base md:text-lg font-semibold text-white/80">Precipitation Probability (24h)</h3>
</div>
<canvas id="pop-chart" class="w-full" style="height:180px"></canvas>
</div>
<!-- UV Index -->
<div id="uv-section" class="hidden glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="flex items-center gap-2 mb-4 md:mb-6">
<i data-lucide="sun" class="w-4 h-4 md:w-5 md:h-5 text-white/70"></i>
<h3 id="lbl-uv" class="text-base md:text-lg font-semibold text-white/80">UV Index</h3>
</div>
<div class="flex flex-col md:flex-row items-center gap-6">
<div id="uv-gauge" class="w-24 h-24 md:w-32 md:h-32 shrink-0">
<div id="uv-gauge-inner">--</div>
</div>
<div class="text-center md:text-left">
<p id="uv-value" class="hidden">0</p>
<p id="uv-label" class="text-white/80 text-lg font-semibold">--</p>
<p id="uv-desc" class="text-white/45 text-sm mt-0.5">--</p>
</div>
</div>
</div>
<!-- Air Quality Index -->
<div id="aqi-section" class="hidden glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="flex items-center gap-2 mb-4 md:mb-6">
<i data-lucide="wind" class="w-4 h-4 md:w-5 md:h-5 text-white/70"></i>
<h3 id="lbl-aqi" class="text-base md:text-lg font-semibold text-white/80">Air Quality Index</h3>
</div>
<div class="flex flex-col md:flex-row items-center gap-6">
<div id="aqi-badge" class="aqi-badge w-20 h-20 rounded-full flex items-center justify-center text-3xl font-bold text-white shrink-0" style="background:#4b5563">--</div>
<div class="text-center md:text-left">
<p id="aqi-label" class="text-white/80 text-lg font-semibold">--</p>
<p id="aqi-desc" class="text-white/45 text-sm mt-0.5">--</p>
</div>
</div>
<div id="aqi-grid" class="grid grid-cols-3 md:grid-cols-6 gap-3 mt-5"></div>
</div>
<!-- Weather Map -->
<div id="map-section" class="hidden glass rounded-2xl md:rounded-3xl p-5 md:p-8">
<div class="flex items-center justify-between mb-4 md:mb-6">
<div class="flex items-center gap-2">
<i data-lucide="map" class="w-4 h-4 md:w-5 md:h-5 text-white/70"></i>
<h3 id="lbl-map" class="text-base md:text-lg font-semibold text-white/80">Weather Map</h3>
</div>
<div id="map-layer-btns" class="flex gap-1 bg-white/5 rounded-lg p-0.5" role="group" aria-label="Map layers">
<button data-layer="radar" class="map-layer-btn active text-white/60 text-[10px] md:text-xs px-2 py-1 rounded-md border border-white/10">Radar</button>
<button data-layer="wind" class="map-layer-btn text-white/60 text-[10px] md:text-xs px-2 py-1 rounded-md border border-white/10">Wind</button>
<button data-layer="temp" class="map-layer-btn text-white/60 text-[10px] md:text-xs px-2 py-1 rounded-md border border-white/10">Temp</button>
</div>
</div>
<div id="weather-map" class="w-full" style="height:300px;border-radius:12px"></div>
</div>
</main>
<!-- Footer -->
<footer id="lbl-footer" class="text-center text-white/25 text-[10px] md:text-xs pb-2 fade-in">
Powered by OpenWeatherMap · WeatherVue Dashboard
</footer>
</div>
<script src="script.js"></script>
<script>lucide.createIcons();</script>
</body>
</html>