/* WeatherOps — Theme System */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ─── DARK THEME (default) ─── */
:root, [data-theme="dark"] {
  --bg:       #0a0f1e;
  --bg2:      #0f1628;
  --bg3:      #141c35;
  --bg4:      #1a2342;
  --bg5:      #1f2a4d;
  --border:   rgba(99,140,255,0.12);
  --border2:  rgba(99,140,255,0.25);
  --border3:  rgba(99,140,255,0.40);
  --text:     #e8edf8;
  --text2:    #8a96b8;
  --text3:    #5a6486;
  --accent:   #4f8bff;
  --accent2:  #7eb3ff;
  --warm:     #ff8c42;
  --warn:     #ffcb47;
  --danger:   #ff4d6d;
  --success:  #43e8a4;
  --cold:     #5bc8ff;
  --mono:     'DM Mono', monospace;
  --sans:     'DM Sans', sans-serif;
  --shadow:   0 2px 12px rgba(0,0,0,0.4);
  --shadow2:  0 8px 32px rgba(0,0,0,0.5);
  --hero-gradient: linear-gradient(135deg, rgba(79,139,255,0.1) 0%, rgba(167,139,250,0.05) 100%);
  --card-glow: radial-gradient(circle at 70% 20%, rgba(79,139,255,0.07) 0%, transparent 60%);
  --header-bg: linear-gradient(180deg, rgba(79,139,255,0.06) 0%, transparent 100%);
  --scrollbar-track: #0f1628;
  --scrollbar-thumb: #1a2342;
  --chart-grid: rgba(99,140,255,0.06);
  --tooltip-bg: #141c35;
  --tooltip-border: #3d4f7a;
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg:       #f4f7ff;
  --bg2:      #ffffff;
  --bg3:      #eef2fb;
  --bg4:      #e4eaf7;
  --bg5:      #d8e2f5;
  --border:   rgba(79,139,255,0.14);
  --border2:  rgba(79,139,255,0.28);
  --border3:  rgba(79,139,255,0.50);
  --text:     #1a2342;
  --text2:    #4a5678;
  --text3:    #8a96b8;
  --accent:   #2b6ee8;
  --accent2:  #1a5ad4;
  --warm:     #e06520;
  --warn:     #c48b00;
  --danger:   #d92045;
  --success:  #0d9960;
  --cold:     #1a7ec8;
  --shadow:   0 2px 12px rgba(79,100,200,0.10);
  --shadow2:  0 8px 32px rgba(79,100,200,0.15);
  --hero-gradient: linear-gradient(135deg, rgba(79,139,255,0.06) 0%, rgba(167,139,250,0.04) 100%);
  --card-glow: radial-gradient(circle at 70% 20%, rgba(79,139,255,0.05) 0%, transparent 60%);
  --header-bg: linear-gradient(180deg, rgba(79,139,255,0.04) 0%, transparent 100%);
  --scrollbar-track: #eef2fb;
  --scrollbar-thumb: #c8d4ee;
  --chart-grid: rgba(79,139,255,0.07);
  --tooltip-bg: #ffffff;
  --tooltip-border: #c8d4ee;
}

/* ─── TRANSITION ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.15s ease;
}

/* ─── BASE ─── */
html, body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: var(--sans); }
canvas { display: block; }
