/* Weather Display - Modern Broadcast Style */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color Palette - Modern Dark Theme */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-panel: rgba(17, 24, 39, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  
  /* Alert Colors */
  --alert-warning: #dc2626;
  --alert-watch: #ea580c;
  --alert-advisory: #eab308;
  --alert-statement: #3b82f6;
  
  /* Risk Level Colors */
  --risk-general: #6b7280;
  --risk-marginal: #22c55e;
  --risk-slight: #eab308;
  --risk-enhanced: #f97316;
  --risk-moderate: #ef4444;
  --risk-high: #ec4899;
  
  /* TV Safe Zone - 5% margins for overscan */
  --safe-margin-x: 64px;
  --safe-margin-y: 48px;
  
  /* Spacing */
  --ticker-height: 64px;
  --header-height: 72px;
  --panel-radius: 16px;
  --panel-padding: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Animated Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    var(--bg-primary);
}

.background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Main Container with TV Safe Zone */
.display-container {
  position: relative;
  width: 1920px;
  height: 1080px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: var(--safe-margin-y) var(--safe-margin-x);
}

/* Header */
.header {
  height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-title h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.header-screen-title {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.header-screen-title span {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-time {
  text-align: right;
}

.header-time .time {
  font-size: 32px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.header-time .date {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
}

.live-indicator .dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.live-indicator span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #ef4444;
}

/* Main Content Area */
.content-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Screen Container */
.screen {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  bottom: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.screen.exiting {
  opacity: 0;
  transform: translateX(-30px);
}

/* Glass Panel */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-md);
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 24px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--bg-glass);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ============================================
   EMERGENCY ALERT SCREEN
   ============================================ */
.emergency-alert-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--safe-margin-y) var(--safe-margin-x);
  animation: alertFlash 1s ease-in-out infinite;
}

.emergency-alert-screen.tornado {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #7f1d1d 100%);
}

.emergency-alert-screen.thunderstorm {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #7f1d1d 100%);
}

.emergency-alert-screen.flash-flood {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #14532d 100%);
}

.emergency-alert-screen.warning {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #7f1d1d 100%);
}

@keyframes alertFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.emergency-alert-content {
  text-align: center;
  max-width: 1400px;
}

.emergency-icon {
  font-size: 120px;
  margin-bottom: 32px;
  animation: iconPulse 0.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.emergency-title {
  font-size: 96px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 8px;
  margin-bottom: 48px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.emergency-subtitle {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 32px;
  opacity: 0.95;
}

.emergency-counties {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 48px;
}

.emergency-expires {
  font-size: 36px;
  opacity: 0.9;
}

.emergency-details {
  margin: 32px 0;
  text-align: left;
  max-width: 1200px;
  background: rgba(0, 0, 0, 0.3);
  padding: 24px 32px;
  border-radius: 12px;
}

.emergency-detail {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.emergency-detail:last-child {
  margin-bottom: 0;
}

.emergency-detail strong {
  color: #fbbf24;
}

/* ============================================
   CURRENT CONDITIONS SCREEN
   ============================================ */
.current-conditions {
  display: flex;
  height: 100%;
  padding: 48px 64px;
}

.current-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 64px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.current-left .location-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.current-left .temp-display {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 24px;
}

.current-left .temperature {
  font-size: 200px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -12px;
}

.current-left .temp-unit {
  font-size: 64px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 24px;
  margin-left: -8px;
}

.current-left .weather-icon {
  width: 180px;
  height: 180px;
  margin: 24px 0;
}

.current-left .weather-icon svg {
  width: 100%;
  height: 100%;
}

.current-left .condition-text {
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 24px;
}

.current-left .wind-info {
  margin-top: 16px;
}

.current-left .wind-primary {
  font-size: 32px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.current-left .wind-gust {
  font-size: 24px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 8px;
}

.current-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-left: 64px;
  align-content: center;
}

.detail-card {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-card .label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.detail-card .value {
  font-size: 42px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   HWO SCREEN - COMBINED WITH CONVECTIVE
   ============================================ */
.hwo-screen-combined {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 40px;
  gap: 16px;
}

.hwo-screen-combined .hwo-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hwo-screen-combined .hwo-header-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hwo-screen-combined .hwo-header-icon svg {
  width: 26px;
  height: 26px;
  color: #fbbf24;
}

.hwo-screen-combined .hwo-header-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.hwo-content-grid {
  display: grid;
  grid-template-columns: 2fr auto 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  align-items: start;
}

.hwo-left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding-right: 40px;
}

.hwo-hazards-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hwo-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.3) 20%, rgba(148, 163, 184, 0.3) 80%, transparent);
  align-self: stretch;
}

.hwo-right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-left: 40px;
}

.hwo-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hwo-section-title-large {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
}

/* Hazard Cards - Wider */
.hwo-hazards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.hazard-card-compact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  overflow: hidden;
}

.hazard-card-compact .hazard-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hazard-color), transparent);
}

.hazard-card-compact.tornado { --hazard-color: #dc2626; border-color: rgba(220, 38, 38, 0.4); background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(15, 23, 42, 0.95)); }
.hazard-card-compact.severe { --hazard-color: #f97316; border-color: rgba(249, 115, 22, 0.4); background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(15, 23, 42, 0.95)); }
.hazard-card-compact.winter { --hazard-color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(15, 23, 42, 0.95)); }
.hazard-card-compact.flood { --hazard-color: #22c55e; border-color: rgba(34, 197, 94, 0.4); background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.95)); }
.hazard-card-compact.wind { --hazard-color: #a855f7; border-color: rgba(168, 85, 247, 0.4); background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(15, 23, 42, 0.95)); }
.hazard-card-compact.fog { --hazard-color: #9ca3af; border-color: rgba(156, 163, 175, 0.4); background: linear-gradient(135deg, rgba(156, 163, 175, 0.12), rgba(15, 23, 42, 0.95)); }
.hazard-card-compact.heat { --hazard-color: #ef4444; border-color: rgba(239, 68, 68, 0.4); background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.95)); }
.hazard-card-compact.fire { --hazard-color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.95)); }

.hazard-card-compact .hazard-card-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 14px;
}

.hazard-card-compact .hazard-card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--hazard-color);
}

.hazard-card-compact .hazard-card-content {
  flex: 1;
}

.hazard-card-compact .hazard-card-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hazard-card-compact .hazard-card-timing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--text-secondary);
}

.hazard-card-compact .hazard-card-severity {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* All Clear - Full Width */
.hwo-all-clear-compact {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.95));
  border-color: rgba(34, 197, 94, 0.3);
  width: 100%;
}

.hwo-all-clear-compact .all-clear-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hwo-all-clear-compact .all-clear-icon svg {
  width: 44px;
  height: 44px;
  color: #22c55e;
}

.hwo-all-clear-compact .all-clear-title {
  font-size: 30px;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 8px;
}

.hwo-all-clear-compact .all-clear-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
}

/* Summary - Full Width at Bottom */
.hwo-screen-combined .hwo-summary {
  padding: 18px 24px;
  margin-top: auto;
  width: 100%;
}

.hwo-screen-combined .hwo-summary .summary-label {
  font-size: 11px;
  margin-bottom: 8px;
}

.hwo-screen-combined .hwo-summary .summary-text {
  font-size: 14px;
  line-height: 1.6;
}

/* Convective Card */
.hwo-convective-card {
  padding: 0;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}

.hwo-convective-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hwo-convective-card .map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 100px 60px;
}

.hwo-convective-card .map-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* ============================================
   HWO SCREEN - NEW VISUAL DESIGN (Legacy)
   ============================================ */
.hwo-screen-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 40px;
  gap: 24px;
}

.hwo-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hwo-header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hwo-header-icon svg {
  width: 32px;
  height: 32px;
  color: #fbbf24;
}

.hwo-header-text h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0;
}

.hwo-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

/* Hazards Grid */
.hwo-hazards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  flex: 1;
  align-content: center;
  padding: 20px 0;
}

.hazard-card {
  position: relative;
  width: 420px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hazard-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hazard-color), transparent);
}

/* Hazard type colors */
.hazard-card.tornado {
  --hazard-color: #dc2626;
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card.severe {
  --hazard-color: #f97316;
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card.winter {
  --hazard-color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card.flood {
  --hazard-color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card.wind {
  --hazard-color: #a855f7;
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card.fog {
  --hazard-color: #9ca3af;
  border-color: rgba(156, 163, 175, 0.4);
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card.heat {
  --hazard-color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card.fire {
  --hazard-color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.95));
}

.hazard-card-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 14px;
}

.hazard-card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--hazard-color);
}

.hazard-card-content {
  flex: 1;
  min-width: 0;
}

.hazard-card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hazard-card-timing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--text-secondary);
}

.hazard-card-timing .timing-icon {
  font-size: 16px;
}

.hazard-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.hazard-card-severity {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hazard-card-severity.extreme {
  background: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.5);
}

.hazard-card-severity.high {
  background: rgba(249, 115, 22, 0.3);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

.hazard-card-severity.moderate {
  background: rgba(234, 179, 8, 0.3);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.5);
}

.hazard-card-severity.low {
  background: rgba(34, 197, 94, 0.3);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

/* All Clear State */
.hwo-all-clear-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hwo-all-clear-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 60px;
  max-width: 900px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.3);
  overflow: hidden;
}

.hwo-all-clear-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
}

.all-clear-icon-wrap {
  flex-shrink: 0;
}

.all-clear-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.all-clear-icon svg {
  width: 56px;
  height: 56px;
  color: #22c55e;
}

.all-clear-content {
  flex: 1;
}

.all-clear-title {
  font-size: 32px;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 12px;
}

.all-clear-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.all-clear-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #4ade80;
}

/* Single Hazard - Larger Card */
.hwo-hazards-grid.single-hazard {
  justify-content: center;
  align-items: center;
}

.hazard-card.hazard-card-large {
  width: 700px;
  padding: 40px 48px;
  gap: 32px;
}

.hazard-card-large .hazard-card-icon {
  width: 100px;
  height: 100px;
  padding: 20px;
}

.hazard-card-large .hazard-card-title {
  font-size: 36px;
  margin-bottom: 10px;
}

.hazard-card-large .hazard-card-timing {
  font-size: 22px;
}

.hazard-card-large .hazard-card-desc {
  font-size: 17px;
  margin-top: 16px;
}

.hazard-card-large .hazard-card-severity {
  font-size: 13px;
  padding: 6px 16px;
}

/* Summary Section */
.hwo-summary {
  padding: 20px 28px;
  margin-top: auto;
}

.hwo-summary .summary-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hwo-summary .summary-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Loading State */
.hwo-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
}

/* Keep old styles for backwards compatibility */
.hwo-screen {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  height: 100%;
}

.hwo-main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hwo-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent-cyan);
}

.hwo-text {
  flex: 1;
  overflow-y: auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.hwo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hwo-hazards-card {
  padding: 24px;
  flex: 1;
}

.hwo-hazards-card h3 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hazard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hazard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}

.hazard-item.winter { 
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
}

.hazard-item.flood { 
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.hazard-item.wind { 
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.hazard-item.fog { 
  background: rgba(156, 163, 175, 0.1);
  border-color: rgba(156, 163, 175, 0.3);
}

.hazard-icon {
  font-size: 32px;
}

.hazard-content .hazard-type {
  font-size: 18px;
  font-weight: 600;
}

.hazard-content .hazard-timing {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.no-hazards-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
}

.no-hazards-message .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-hazards-message .text {
  font-size: 20px;
  font-weight: 600;
  color: #22c55e;
}

.no-hazards-message .subtext {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============================================
   CONVECTIVE OUTLOOK SCREEN
   ============================================ */
.convective-screen {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  height: 100%;
}

.convective-map {
  position: relative;
  overflow: hidden;
}

.convective-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-secondary);
}

.map-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 8px;
}

.map-title {
  font-size: 16px;
  font-weight: 600;
}

.map-valid {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.convective-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-card {
  padding: 28px;
}

.risk-header {
  text-align: center;
  margin-bottom: 24px;
}

.risk-header .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.risk-badge {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.risk-badge.general { background: rgba(107, 114, 128, 0.3); color: #9ca3af; }
.risk-badge.marginal { background: rgba(34, 197, 94, 0.3); color: #22c55e; }
.risk-badge.slight { background: rgba(234, 179, 8, 0.3); color: #eab308; }
.risk-badge.enhanced { background: rgba(249, 115, 22, 0.3); color: #f97316; }
.risk-badge.moderate { background: rgba(239, 68, 68, 0.3); color: #ef4444; }
.risk-badge.high { background: rgba(236, 72, 153, 0.3); color: #ec4899; }
.risk-badge.none { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

.risk-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  margin-top: 16px;
}

.threats-card {
  padding: 24px;
}

.threats-card h3 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.threats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.threat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-glass);
  border-radius: 10px;
}

.threat-icon {
  font-size: 24px;
}

.threat-name {
  font-size: 16px;
  font-weight: 500;
}

.no-threats-message {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.outlook-info {
  padding: 24px;
}

.outlook-info h3 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.outlook-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   3-DAY FORECAST SCREEN - REDESIGNED
   ============================================ */
.forecast-3day-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  height: 100%;
  padding: 24px;
}

.forecast-3day-card {
  width: 380px;
  background: rgba(15, 20, 35, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.forecast-3day-card .card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.forecast-3day-card .card-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
}

.forecast-3day-card .card-header {
  margin-bottom: 24px;
}

.forecast-3day-card .day-name {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.forecast-3day-card .day-date {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-3day-card .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130px;
  margin-bottom: 24px;
}

.forecast-3day-card .card-icon svg {
  width: 110px;
  height: 110px;
}

.forecast-3day-card .card-temps {
  display: flex;
  justify-content: space-around;
  padding-bottom: 28px;
}

.forecast-3day-card .temp-col {
  text-align: center;
}

.forecast-3day-card .temp-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.forecast-3day-card .temp-high {
  font-size: 56px;
  font-weight: 700;
  color: #f59e0b;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-3day-card .temp-low {
  font-size: 56px;
  font-weight: 700;
  color: #22d3ee;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-3day-card .card-details {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.forecast-3day-card .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.forecast-3day-card .detail-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.forecast-3day-card .detail-value {
  font-size: 20px;
  font-weight: 600;
  color: #22d3ee;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-3day-card .card-gradient-bar {
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #6366f1, #3b82f6, #06b6d4);
}

/* ============================================
   7-DAY FORECAST SCREEN - REDESIGNED
   ============================================ */
.forecast-7day-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 24px;
}

.forecast-7day-card {
  width: 230px;
  background: rgba(15, 20, 35, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.forecast-7day-card .card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.forecast-7day-card .card-content {
  padding: 28px 22px 60px 22px;
  display: flex;
  flex-direction: column;
}

.forecast-7day-card .card-header {
  margin-bottom: 24px;
}

.forecast-7day-card .day-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.forecast-7day-card .day-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-7day-card .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 110px;
  margin-bottom: 24px;
}

.forecast-7day-card .card-icon svg {
  width: 90px;
  height: 90px;
}

.forecast-7day-card .card-temps {
  display: flex;
  justify-content: space-around;
  padding-bottom: 28px;
}

.forecast-7day-card .temp-col {
  text-align: center;
}

.forecast-7day-card .temp-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.forecast-7day-card .temp-high {
  font-size: 42px;
  font-weight: 700;
  color: #f59e0b;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-7day-card .temp-low {
  font-size: 42px;
  font-weight: 700;
  color: #22d3ee;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-7day-card .card-details {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.forecast-7day-card .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.forecast-7day-card .detail-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.forecast-7day-card .detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #22d3ee;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-7day-card .card-gradient-bar {
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #6366f1, #3b82f6, #06b6d4);
}

/* ============================================
   CAMERA SCREEN
   ============================================ */

/* Persistent camera container - matches .screen positioning exactly */
.camera-persistent {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  bottom: 24px;
  z-index: 60;
}

/* Hide placeholder when using persistent camera */
.camera-placeholder-for-persistent {
  display: none;
}

.camera-screen {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  height: 100%;
}

.camera-feed {
  position: relative;
  overflow: hidden;
  background: #000;
}

.camera-feed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.camera-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.camera-placeholder svg {
  opacity: 0.5;
  margin-bottom: 16px;
}

.placeholder-text {
  font-size: 18px;
  margin-bottom: 8px;
}

.placeholder-hint {
  font-size: 14px;
  opacity: 0.6;
}

.camera-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.cam-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}

.live-badge {
  padding: 4px 10px;
  background: #ef4444;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.cam-location {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.camera-conditions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.camera-conditions .main-temp {
  padding: 32px;
  text-align: center;
}

.camera-conditions .location {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.camera-conditions .temp-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.camera-conditions .temp {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
}

.camera-conditions .weather-icon-small {
  width: 60px;
  height: 60px;
}

.camera-conditions .weather-icon-small svg {
  width: 100%;
  height: 100%;
}

.camera-conditions .condition {
  font-size: 22px;
  margin-top: 12px;
}

.camera-conditions .details-grid {
  flex: 1;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}

.camera-conditions .detail-box {
  padding: 16px;
  background: var(--bg-glass);
  border-radius: 10px;
  text-align: center;
}

.camera-conditions .detail-box .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.camera-conditions .detail-box .value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   RADAR SCREEN - VENTUSKY EMBED
   ============================================ */
.radar-screen-ventusky {
  position: relative;
  width: 100%;
  height: 100%;
}

.ventusky-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.radar-screen-ventusky .radar-overlay {
  position: absolute;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f1f5f9;
}

.radar-screen-ventusky .radar-title {
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.radar-screen-ventusky .radar-title .radar-label {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #22d3ee;
}

.radar-screen-ventusky .radar-title .radar-time {
  font-size: 32px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #f1f5f9;
}

.radar-screen-ventusky .radar-location {
  top: 20px;
  left: 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #f1f5f9;
}

/* ============================================
   RADAR SCREEN - RAINVIEWER/LEAFLET (backup styles)
   ============================================ */
.radar-screen {
  position: relative;
  width: 100%;
  height: 100%;
}

.radar-map {
  width: 100%;
  height: 100%;
}

/* Hide Leaflet default controls */
.leaflet-control-container {
  display: none !important;
}

.radar-overlay {
  position: absolute;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f1f5f9;
}

.radar-title {
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.radar-title .radar-label {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #22d3ee;
}

.radar-title .radar-time {
  font-size: 32px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #f1f5f9;
}

.radar-legend {
  bottom: 100px;
  right: 20px;
  min-width: 200px;
}

.radar-legend .legend-title {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.radar-legend .legend-bar {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(to right, 
    #00ff00 0%, 
    #32cd32 15%,
    #ffff00 30%, 
    #ffa500 45%, 
    #ff4500 60%, 
    #ff0000 75%, 
    #8b0000 85%,
    #ff00ff 100%
  );
  margin-bottom: 6px;
}

.radar-legend .legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.radar-timestamp {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: #f1f5f9;
}

.radar-timestamp.forecast {
  color: #f59e0b;
}

.radar-location {
  top: 20px;
  left: 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #f1f5f9;
}

/* Location marker pulse animation */
.radar-location-marker {
  position: relative;
}

.radar-location-marker .marker-dot {
  width: 12px;
  height: 12px;
  background: #dc2626;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

.radar-location-marker .marker-pulse {
  width: 30px;
  height: 30px;
  background: rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: radarPulse 2s ease-out infinite;
}

@keyframes radarPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* ============================================
   SURFACE MAP SCREEN - MODERN STYLE
   ============================================ */
.surface-screen-modern {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0e17;
}

.surface-map-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surface-map-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.surface-overlay {
  position: absolute;
  z-index: 100;
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
}

.surface-title-box {
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.surface-title-box .surface-label {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #22d3ee;
}

.surface-title-box .surface-time {
  font-size: 32px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.surface-source-box {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--text-muted);
}

.surface-legend-box {
  bottom: 100px;
  right: 20px;
  min-width: 160px;
}

.surface-legend-box .legend-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.surface-legend-box .front-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}

.surface-legend-box .front-line {
  width: 30px;
  height: 4px;
  border-radius: 2px;
}

.surface-legend-box .front-line.cold {
  background: #3b82f6;
}

.surface-legend-box .front-line.warm {
  background: #ef4444;
}

.surface-legend-box .front-line.stationary {
  background: linear-gradient(90deg, #3b82f6 50%, #ef4444 50%);
}

.surface-legend-box .front-line.occluded {
  background: #a855f7;
}

.surface-info,
.surface-legend,
.pressure-legend {
  padding: 20px;
}

.surface-info h3,
.surface-legend h3,
.pressure-legend h3 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.info-label {
  color: var(--text-secondary);
}

.info-value {
  font-weight: 500;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.front-symbol {
  width: 40px;
  height: 8px;
  border-radius: 2px;
}

.front-symbol.cold-front { background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 100%); }
.front-symbol.warm-front { background: linear-gradient(90deg, #ef4444 0%, #ef4444 100%); }
.front-symbol.stationary-front { background: linear-gradient(90deg, #3b82f6 50%, #ef4444 50%); }
.front-symbol.occluded-front { background: linear-gradient(90deg, #a855f7 0%, #a855f7 100%); }

.pressure-h,
.pressure-l {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}

.pressure-h {
  background: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.pressure-l {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ============================================
   TICKER - NWS STYLE WITH PRIORITY TIERS
   ============================================ */
.ticker {
  height: var(--ticker-height);
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: stretch;
  z-index: 100;
  transition: background 0.3s ease;
}

.ticker.ticker-warning {
  background: rgba(127, 29, 29, 0.95);
  border-color: rgba(220, 38, 38, 0.5);
}

.ticker.ticker-watch {
  background: rgba(124, 45, 18, 0.95);
  border-color: rgba(234, 88, 12, 0.5);
}

.ticker.ticker-advisory {
  background: rgba(113, 63, 18, 0.95);
  border-color: rgba(234, 179, 8, 0.5);
}

.ticker-alert-label {
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3;
}

.ticker-alert-label.warning { 
  background: var(--alert-warning); 
  animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { background: var(--alert-warning); }
  50% { background: #b91c1c; }
}

.ticker-alert-label.watch { background: var(--alert-watch); }
.ticker-alert-label.advisory { background: var(--alert-advisory); color: #000; }
.ticker-alert-label.statement { background: var(--alert-statement); }
.ticker-alert-label.clear { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.ticker-scroll {
  display: flex;
  align-items: center;
  animation: scroll var(--ticker-speed, 30s) linear infinite;
  white-space: nowrap;
  padding: 0 24px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-message {
  color: var(--text-primary);
  font-weight: 500;
}

.ticker-spacer {
  color: var(--accent-cyan);
  padding: 0 24px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-item .separator {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

.ticker-item .condition {
  color: var(--text-primary);
}

.ticker-expires {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 160px;
  background: rgba(10, 14, 23, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 11px 11px 0;
}

.ticker-expires .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker-expires .until-time {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.forecast-card:nth-child(1) { animation-delay: 0.05s; }
.forecast-card:nth-child(2) { animation-delay: 0.1s; }
.forecast-card:nth-child(3) { animation-delay: 0.15s; }
.forecast-card:nth-child(4) { animation-delay: 0.2s; }
.forecast-card:nth-child(5) { animation-delay: 0.25s; }
.forecast-card:nth-child(6) { animation-delay: 0.3s; }
.forecast-card:nth-child(7) { animation-delay: 0.35s; }

/* Hide audio element */
#alert-audio {
  display: none;
}