/* ============================================
   MONMIN2WEATHER — Design System
   Tropical Storm Tracking Dashboard
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Color Palette */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Alert Colors */
  --alert-red: #ef4444;
  --alert-red-bg: rgba(239, 68, 68, 0.12);
  --alert-red-border: rgba(239, 68, 68, 0.3);
  --alert-orange: #f97316;
  --alert-orange-bg: rgba(249, 115, 22, 0.12);
  --alert-orange-border: rgba(249, 115, 22, 0.3);
  --alert-green: #22c55e;
  --alert-green-bg: rgba(34, 197, 94, 0.12);
  --alert-green-border: rgba(34, 197, 94, 0.3);

  /* Accent Gradients */
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-red: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-orange: linear-gradient(135deg, #f97316, #ea580c);
  --gradient-green: linear-gradient(135deg, #22c55e, #16a34a);
  --gradient-sidebar: linear-gradient(180deg, #111827 0%, #0f172a 100%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-red: 0 0 20px rgba(239, 68, 68, 0.15);
  --shadow-glow-orange: 0 0 20px rgba(249, 115, 22, 0.15);
  --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.15);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* --- Layout Structure --- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
  padding: var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sidebar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand .brand-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sidebar-brand .brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) 0;
}

.nav-section {
  margin-bottom: var(--space-sm);
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-lg) var(--space-xs);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-left-color: var(--text-accent);
}

.nav-link.active {
  color: var(--text-accent);
  background: rgba(56, 189, 248, 0.06);
  border-left-color: var(--text-accent);
}

.nav-link .nav-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.nav-link .nav-badge {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--alert-red);
  color: white;
}

.nav-sub-links {
  display: none;
}

.nav-section.open .nav-sub-links {
  display: block;
}

.nav-sub-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px var(--space-lg) 6px calc(var(--space-lg) + 26px);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.nav-sub-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-glass);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--alert-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* --- Main Content --- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* --- Header Bar --- */
.header {
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.header-vn {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
}

.refresh-btn.refreshing .refresh-icon {
  animation: spin 1s linear infinite;
}

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

.last-updated {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* --- Page Content --- */
.page-content {
  padding: var(--space-xl);
  max-width: 1400px;
}

/* --- Section Headers --- */
.section {
  margin-bottom: var(--space-2xl);
  scroll-margin-top: calc(var(--header-height) + var(--space-lg));
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.section-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gradient-accent);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: var(--space-sm);
}

/* --- Hero Stats Bar --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.red { background: var(--alert-red-bg); }
.stat-icon.orange { background: var(--alert-orange-bg); }
.stat-icon.green { background: var(--alert-green-bg); }
.stat-icon.blue { background: rgba(56, 189, 248, 0.12); }

.stat-info .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-info .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* --- Storm Cards Grid --- */
.storms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.storm-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.storm-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-lg);
}

.storm-card.alert-Red {
  border-top: 3px solid var(--alert-red);
}
.storm-card.alert-Red:hover {
  box-shadow: var(--shadow-glow-red);
}

.storm-card.alert-Orange {
  border-top: 3px solid var(--alert-orange);
}
.storm-card.alert-Orange:hover {
  box-shadow: var(--shadow-glow-orange);
}

.storm-card.alert-Green {
  border-top: 3px solid var(--alert-green);
}
.storm-card.alert-Green:hover {
  box-shadow: var(--shadow-glow-green);
}

.storm-card-header {
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.storm-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.storm-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.alert-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}

.alert-badge.Red {
  background: var(--alert-red-bg);
  color: var(--alert-red);
  border: 1px solid var(--alert-red-border);
}

.alert-badge.Orange {
  background: var(--alert-orange-bg);
  color: var(--alert-orange);
  border: 1px solid var(--alert-orange-border);
}

.alert-badge.Green {
  background: var(--alert-green-bg);
  color: var(--alert-green);
  border: 1px solid var(--alert-green-border);
}

.alert-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: alert-blink 1.5s ease-in-out infinite;
}

.alert-badge.Red .alert-pulse { background: var(--alert-red); }
.alert-badge.Orange .alert-pulse { background: var(--alert-orange); }
.alert-badge.Green .alert-pulse { background: var(--alert-green); }

@keyframes alert-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.storm-card-body {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* TSR Category specific styles if applied dynamically */
.storm-card.cat-td { border-top-color: #5ebaff; }
.storm-card.cat-td:hover { box-shadow: 0 0 20px rgba(94, 186, 255, 0.2); }
.storm-card.cat-ts { border-top-color: #00fa00; }
.storm-card.cat-ts:hover { box-shadow: 0 0 20px rgba(0, 250, 0, 0.2); }
.storm-card.cat-1 { border-top-color: #ffff00; }
.storm-card.cat-1:hover { box-shadow: 0 0 20px rgba(255, 255, 0, 0.2); }
.storm-card.cat-2 { border-top-color: #ffc140; }
.storm-card.cat-2:hover { box-shadow: 0 0 20px rgba(255, 193, 64, 0.2); }
.storm-card.cat-3 { border-top-color: #ff8f20; }
.storm-card.cat-3:hover { box-shadow: 0 0 20px rgba(255, 143, 32, 0.2); }
.storm-card.cat-4 { border-top-color: #ff6060; }
.storm-card.cat-4:hover { box-shadow: 0 0 20px rgba(255, 96, 96, 0.2); }
.storm-card.cat-5 { border-top-color: #c0c0ff; }
.storm-card.cat-5:hover { box-shadow: 0 0 20px rgba(192, 192, 255, 0.2); }

.storm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-glass);
}

.storm-detail-row:last-child {
  border-bottom: none;
}

.storm-detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.storm-detail-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.storm-detail-value.wind-speed {
  font-family: var(--font-mono);
  font-weight: 700;
}

.storm-card-footer {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}

.storm-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.storm-link:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
}

/* --- No Storms Message --- */
.no-storms {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-glass);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-lg);
}

.no-storms-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.no-storms-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.no-storms-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Satellite Imagery Grid --- */
.imagery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: var(--space-lg);
}

.imagery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.imagery-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.imagery-card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.imagery-source {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.imagery-provider {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.imagery-card-body {
  position: relative;
  background: #000;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagery-card-body img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.imagery-card-body img.loaded {
  opacity: 1;
}

.imagery-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.imagery-card-body a {
  display: block;
  width: 100%;
}

/* --- Multi-Agency & Iframe --- */
.multi-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.iframe-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #111827;
}

/* --- External Links Grid --- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.link-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all 0.3s ease;
}

.link-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.link-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.link-card-text {
  display: flex;
  flex-direction: column;
}

.link-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.link-card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- IFrame Embed --- */
.embed-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.embed-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.embed-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.embed-container iframe {
  width: 100%;
  height: 700px;
  border: none;
  background: #1a1a2e;
}

/* --- About Section --- */
.about-content {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.about-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.about-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.data-sources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.data-source-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: var(--space-sm);
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
}

.data-source-item span.source-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-accent);
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-glass);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-2xl);
}

.footer a {
  color: var(--text-accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 260px;
  border-radius: var(--radius-lg);
}

/* --- Error State --- */
.error-state {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--alert-red-bg);
  border: 1px solid var(--alert-red-border);
  border-radius: var(--radius-lg);
  color: var(--alert-red);
}

.error-state .error-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.error-state .error-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .header-vn {
    display: none;
  }

  .imagery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-content {
    padding: var(--space-md);
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .storms-grid {
    grid-template-columns: 1fr;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Overlay for mobile sidebar --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

.sidebar-overlay.active {
  display: block;
}

/* --- Fade-in animation for sections --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
