/* ==========================================================================
   Aether Weather Dashboard Core Stylesheet
   Design Paradigm: Premium Glassmorphism & High-fidelity Dark Mode
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
  --font-primary: 'Pretendard', 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  
  /* HSL Color Tokens */
  --bg-dark: 224, 40%, 8%;
  --bg-card: 222, 35%, 12%;
  --bg-card-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.22);
  
  /* Semantic Text Tokens */
  --text-primary: 211, 33%, 17%;      /* #1E293B (Slate-800) */
  --text-secondary: 212, 19%, 35%;    /* #475569 (Slate-600) */
  --text-muted: 215, 16%, 47%;        /* #64748B (Slate-500) */
  
  /* Accent Colors */
  --accent-orange: 24, 94%, 47%;      /* #EA580C (Orange-600) */
  --accent-orange-rgb: 234, 88, 12;
  --accent-red: 354, 100%, 63%;        /* #FF416C */
  --accent-red-rgb: 255, 65, 108;
  --accent-blue: 200, 98%, 39%;       /* #0284C7 (Sky-600) */
  --accent-blue-rgb: 0, 201, 255;
  --accent-green: 145, 63%, 49%;       /* #2ecc71 */
  --accent-purple: 271, 76%, 53%;      /* #8E2DE2 */
  
  /* Shadows & Blur */
  --card-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
  --neon-glow-orange: 0 0 15px rgba(255, 140, 0, 0.3);
  --neon-glow-blue: 0 0 15px rgba(0, 201, 255, 0.3);
  --neon-glow-red: 0 0 15px rgba(255, 65, 108, 0.4);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-snappy: all 0.15s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: hsl(var(--bg-dark));
  color: hsl(var(--text-primary));
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 2. Background Glow Effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.bg-glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 94, 98, 0.2) 0%, rgba(255, 140, 0, 0.05) 70%);
  top: -100px;
  right: 5%;
  animation: glow-float-1 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 201, 255, 0.18) 0%, rgba(146, 254, 157, 0.03) 70%);
  bottom: -150px;
  left: 5%;
  animation: glow-float-2 30s infinite alternate ease-in-out;
}

.bg-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.15) 0%, rgba(74, 0, 224, 0.02) 70%);
  top: 40%;
  left: 45%;
  animation: glow-float-3 20s infinite alternate ease-in-out;
}

@keyframes glow-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 60px) scale(1.1); }
}
@keyframes glow-float-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-60px, -40px) scale(0.9); }
}
@keyframes glow-float-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(30px, -30px) rotate(180deg); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 3. Helper Utility Classes & Buttons */
.grid-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.grid-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.45);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-icon {
  width: 22px;
  height: 22px;
}

.card-icon.blue { color: hsl(var(--accent-blue)); }
.card-icon.orange { color: hsl(var(--accent-orange)); }
.card-icon.red { color: hsl(var(--accent-red)); }
.card-icon.green { color: hsl(var(--accent-green)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--accent-blue)) 0%, #0096ff 100%);
  color: #050b18;
  box-shadow: var(--neon-glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 201, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: hsl(var(--text-primary));
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

/* 4. Layout: App Container & Header */
.app-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: rgba(13, 20, 35, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px 28px;
  box-shadow: var(--card-shadow);
}

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

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

.logo-icon {
  width: 28px;
  height: 28px;
  color: hsl(var(--accent-orange));
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.6));
  animation: logo-pulse 4s infinite alternate ease-in-out;
}

@keyframes logo-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.4)); }
  100% { transform: scale(1.1) rotate(5deg); filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.8)); }
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0F172A;
}

.logo h1 span {
  font-weight: 400;
  color: hsl(var(--accent-orange));
  -webkit-text-fill-color: hsl(var(--accent-orange));
}

.live-clock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: #334155;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71;
  animation: beacon-pulse 2s infinite ease-in-out;
}

@keyframes beacon-pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px #2ecc71; }
  50% { transform: scale(1.5); opacity: 0.4; box-shadow: 0 0 14px #2ecc71; }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px #2ecc71; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Search Box Container */
.search-box {
  position: relative;
  width: 280px;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 16px 10px 42px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: #fff;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: hsl(var(--accent-orange));
  box-shadow: var(--neon-glow-orange);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: hsl(var(--text-muted));
  transition: var(--transition-smooth);
}

.search-box input:focus + .search-icon {
  color: hsl(var(--accent-orange));
}

.search-suggestions {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #0f1524;
  border: 1px solid var(--border-glass-hover);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  z-index: 100;
  overflow: hidden;
  max-height: 250px;
  display: none;
}

.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-snappy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: hsl(var(--accent-orange));
}

.suggestion-item .province {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

/* Quick selector */
.quick-city-selector {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.city-btn {
  background: transparent;
  border: none;
  color: hsl(var(--text-secondary));
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-snappy);
}

.city-btn:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.05);
}

.city-btn.active {
  color: #FFFFFF;
  background: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* 5. Layout: 3-Column Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}

/* LEFT SIDEBAR: Interactive map */
.left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-controls-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.active-layer-indicator {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.control-toggle-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.control-toggle-slider input {
  display: none;
}

.control-toggle-slider input:checked + .slider {
  background-color: hsl(var(--accent-blue));
  border-color: rgba(0, 201, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 201, 255, 0.3);
}

.control-toggle-slider input:checked + .slider::before {
  transform: translateX(18px);
}

.slider-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: hsl(var(--text-secondary));
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Custom Checkbox Toggle Switch */
.control-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.control-toggle input {
  display: none;
}

.slider {
  position: relative;
  width: 36px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-glass);
}

.slider::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.control-toggle input:checked + .slider {
  background-color: hsl(var(--accent-blue));
  border-color: rgba(0, 201, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 201, 255, 0.3);
}

.control-toggle input:checked + .slider::before {
  transform: translateX(18px);
}

.label-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--text-secondary));
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-snappy);
}

.control-toggle:hover .label-text {
  color: #fff;
}

.mini-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Map Graphics styling */
/* Map Graphics styling */
.map-container {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  height: 460px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#korea-leaflet-map {
  width: 100%;
  height: 100%;
}

/* Leaflet control overrides for light/color map theme */
.leaflet-container {
  background: #ffffff !important;
  font-family: var(--font-primary) !important;
}

.leaflet-control-zoom {
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #1e293b !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 16px !important;
  font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.leaflet-attribution-flag { display: none !important; }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  color: #64748b !important;
  font-size: 9px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* Region Color Legend UI */
.region-legend-container {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.region-legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.region-legend-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  font-size: 12px;
}

.region-legend-hint {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.region-legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3.5px 9px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--reg-bg, rgba(255,255,255,0.8));
  color: var(--reg-color, #1e293b);
  border: 1.5px solid var(--reg-border, #cbd5e1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  user-select: none;
}

.region-badge:hover, .region-badge.active {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px var(--reg-color, rgba(0,0,0,0.2)), 0 0 0 1px var(--reg-color);
  background: var(--reg-color, #3b82f6);
  color: #ffffff !important;
  border-color: var(--reg-color, #3b82f6);
}

/* City map markers - Colored Region Theme on White Map */
.city-map-marker {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.city-map-marker:hover, .city-map-marker.active {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000 !important;
}

.marker-region-badge, .marker-content, .marker-city-name, .marker-temp {
  display: none;
}

.marker-content {
  padding: 3px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.marker-city-name {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.marker-temp {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--reg-color, #2563eb);
}

.city-map-marker:hover {
  border-color: var(--reg-color, #2563eb);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), 0 0 16px var(--reg-color, #2563eb);
  transform: scale(1.12) translateY(-4px);
  z-index: 1000 !important;
}

.city-map-marker.active {
  border-width: 2.5px;
  border-color: var(--reg-color, #2563eb);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--reg-bg), 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px var(--reg-color, #2563eb);
  transform: scale(1.15) translateY(-4px);
  z-index: 1000 !important;
}

.region-path {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2px;
  transition: fill-opacity 0.3s, stroke 0.3s, stroke-width 0.3s, filter 0.3s;
  cursor: pointer;
}

.region-path:hover {
  fill-opacity: 0.65;
  stroke: #fff;
  stroke-width: 2px;
  filter: url(#glow);
}

.region-path.active {
  fill-opacity: 0.9;
  stroke: #fff;
  stroke-width: 2.5px;
  filter: url(#glow);
}

/* Map Label Hotspots */
.map-label {
  pointer-events: none;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
}

.map-label rect {
  fill: rgba(10, 16, 29, 0.8);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.map-label text {
  fill: #fff;
  font-size: 8px;
  font-weight: 600;
}

.region-path:hover + .map-label,
.region-path.active + .map-label {
  transform: scale(1.1);
}

/* Map layers SVG FX animations */
.wind-flow-line {
  fill: none;
  stroke: rgba(0, 201, 255, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 10, 15;
  animation: map-wind 5s linear infinite;
}

@keyframes map-wind {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.cloud-shadow {
  fill: rgba(255, 255, 255, 0.05);
  filter: blur(6px);
  animation: map-clouds 25s linear infinite alternate;
}

@keyframes map-clouds {
  0% { transform: translate(-15px, -5px); }
  100% { transform: translate(15px, 5px); }
}

.dust-particle {
  opacity: 0.65;
  animation: dust-pulse 3s infinite ease-in-out alternate;
}

.dust-particle.green { fill: #2ecc71; filter: drop-shadow(0 0 3px #2ecc71); }
.dust-particle.yellow { fill: #f1c40f; filter: drop-shadow(0 0 3px #f1c40f); }
.dust-particle.orange { fill: #e67e22; filter: drop-shadow(0 0 3px #e67e22); }
.dust-particle.red { fill: #e74c3c; filter: drop-shadow(0 0 3px #e74c3c); }

@keyframes dust-pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.8; }
}

.typhoon-spiral-line {
  fill: none;
  stroke: rgba(231, 76, 60, 0.5);
  stroke-width: 2;
  stroke-dasharray: 4,4;
  animation: spin 6s linear infinite;
  transform-origin: 180px 290px;
}

.typhoon-eye {
  fill: #e74c3c;
  filter: drop-shadow(0 0 4px #e74c3c);
}

.typhoon-warning-zone {
  fill: rgba(231, 76, 60, 0.05);
  stroke: rgba(231, 76, 60, 0.2);
  stroke-width: 1;
  stroke-dasharray: 2,4;
  animation: pulse-ring 4s infinite ease-in-out;
  transform-origin: 180px 290px;
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(0.85); opacity: 0.3; }
}

.lightning-strike {
  fill: #f1c40f;
  filter: drop-shadow(0 0 6px #f1c40f);
  animation: flash-strike 4s infinite ease-out;
}

@keyframes flash-strike {
  0%, 94%, 100% { opacity: 0; }
  95%, 97% { opacity: 1; }
  96% { opacity: 0.3; }
}

/* Map Glassmorphic Tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(13, 20, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass-hover);
  border-radius: 10px;
  padding: 8px 12px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.9);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 50;
  width: 140px;
}

.map-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.tooltip-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.tooltip-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tooltip-body .temp {
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--accent-orange));
}

.tooltip-body .condition {
  font-size: 0.75rem;
  color: hsl(var(--text-secondary));
}

.tooltip-extra {
  font-size: 0.65rem;
  color: hsl(var(--text-muted));
  margin-top: 4px;
}


/* 6. CENTER COLUMN PANEL */
.center-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
}

/* Tabs Card */
.view-tabs-card {
  padding: 8px;
  border-radius: 16px;
  position: relative;
}

.tabs-container {
  display: flex;
  gap: 6px;
  width: calc(100% - 240px);
}

/* Weather Coordinator (Character avatar & speech bubble) */
.weather-coordinator {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.speech-bubble {
  background: rgba(13, 20, 35, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass-hover);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.72rem;
  color: #fff;
  line-height: 1.45;
  width: 190px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: absolute;
  right: 48px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  font-weight: 500;
}

.weather-coordinator:hover .speech-bubble,
.weather-coordinator .speech-bubble.active {
  opacity: 1;
  transform: translateX(0);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(13, 20, 35, 0.9);
  border-right: 1px solid var(--border-glass-hover);
  border-top: 1px solid var(--border-glass-hover);
}

.character-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.character-avatar:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.avatar-icon {
  font-size: 1.15rem;
}

.avatar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  animation: beacon-pulse 2s infinite ease-in-out;
  pointer-events: none;
}

.view-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.view-tab:hover {
  background: rgba(15, 23, 42, 0.02);
  color: #1E293B;
}

.tab-icon {
  width: 16px;
  height: 16px;
}

.view-tab.active {
  color: hsl(var(--accent-orange));
  font-weight: 600;
  background: rgba(15, 23, 42, 0.05);
  box-shadow: inset 0 0 0 1px var(--border-glass-hover);
}

.view-tab.active[data-tab="weather"] {
  border-bottom: 2px solid hsl(var(--accent-orange));
  color: hsl(var(--accent-orange));
}

.view-tab.active[data-tab="rain"] {
  border-bottom: 2px solid hsl(var(--accent-blue));
  color: hsl(var(--accent-blue));
}

.view-tab.active[data-tab="dust"] {
  border-bottom: 2px solid hsl(var(--accent-purple));
  color: hsl(var(--accent-purple));
}

/* Current Weather Large Card */
.current-status-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  position: relative;
  overflow: hidden;
}

.status-main-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.status-left h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #0F172A;
}

.status-left h2 span {
  font-weight: 400;
}

/* Orange text helper for white-to-orange replacement */
.orange-text {
  color: #ff6b00 !important;
  font-weight: 800;
}

/* Outlined text for '현재 날씨' */
.outline-text {
  color: transparent !important;
  -webkit-text-stroke: 1.8px #ff6b00 !important;
  text-shadow: 0 0 14px rgba(255, 107, 0, 0.4);
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  display: inline-block;
  margin: 0 2px;
}

.weather-brief {
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-large-icon {
  width: 48px;
  height: 48px;
  color: hsl(var(--accent-orange));
  filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.5));
}

.animate-spin-slow {
  animation: spin 20s infinite linear;
}

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

.weather-text-group {
  display: flex;
  flex-direction: column;
}

.weather-status-desc {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
}

.weather-update-time {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  margin-top: 2px;
}

.status-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.main-temperature {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ff6b00 10%, #ff9e00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 107, 0, 0.3));
}

.main-temperature .temp-unit {
  font-size: 2.2rem;
  font-weight: 400;
  margin-left: 2px;
}

.humidity-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 201, 255, 0.08);
  border: 1px solid rgba(0, 201, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  color: hsl(var(--accent-blue));
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 201, 255, 0.05);
}

.humidity-icon {
  width: 12px;
  height: 12px;
}

/* Metrics grid */
.weather-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-snappy);
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.metric-label {
  font-size: 13px;
  color: hsl(var(--text-secondary));
  font-weight: 500;
}

.metric-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
}

/* Interactive SVG Trend Chart */
.chart-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 220px;
  margin-top: 10px;
  overflow: hidden;
}

/* Center Chart Watermark Overlay (60% Opacity) */
.graph-watermark-overlay {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  text-align: center;
  transition: opacity 0.5s ease;
}

.watermark-emoticon {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
}

.watermark-temp {
  font-size: 2.2rem;
  font-weight: 800;
  color: #EA580C;
  letter-spacing: -0.04em;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chart-grid-lines line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 2,4;
}

/* Floating Chart Tooltip styling */
.chart-tooltip-floating {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass-hover);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  font-family: var(--font-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 20;
  transform: translate(-50%, -100%) translateY(-10px);
  transition: opacity 0.15s, left 0.1s, top 0.1s;
}

.chart-tooltip-floating .time {
  font-size: 0.65rem;
  color: hsl(var(--text-secondary));
  font-weight: 500;
}

.chart-tooltip-floating .value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

/* Hourly Forecast Carousel */
.forecast-card {
  display: flex;
  flex-direction: column;
}

.forecast-carousel-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
}

.forecast-carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  flex: 1 1 0;
  padding: 10px 12px 10px 0;
}

.forecast-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: hsl(var(--text-secondary));
  transition: var(--transition-smooth);
  z-index: 10;
  flex-shrink: 0;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hourly forecast card inside carousel */
.hourly-card {
  flex: 0 0 74px;
  flex-shrink: 0;
  min-width: 0;
  width: 74px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.hourly-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hourly-card.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: hsl(var(--accent-orange));
  box-shadow: inset 0 0 0 1px hsl(var(--accent-orange));
}

.hourly-card .time {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--text-secondary));
}

.hourly-card .hourly-icon {
  width: 22px;
  height: 22px;
  transition: var(--transition-smooth);
}

.hourly-card:hover .hourly-icon {
  transform: scale(1.2);
}

.hourly-card .temp {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
}


/* 7. RIGHT SIDEBAR: Safety Alert Feed */
.alerts-card {
  display: flex;
  flex-direction: column;
  max-height: 800px;
}

.alerts-feed-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 520px;
  padding-right: 4px;
}

/* Safety Alert card */
.alert-card-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.alert-card-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.alert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.alert-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.alert-tag.red {
  background: rgba(255, 65, 108, 0.12);
  color: hsl(var(--accent-red));
  border: 1px solid rgba(255, 65, 108, 0.2);
}
.alert-tag.orange {
  background: rgba(255, 140, 0, 0.12);
  color: hsl(var(--accent-orange));
  border: 1px solid rgba(255, 140, 0, 0.2);
}
.alert-tag.blue {
  background: rgba(0, 201, 255, 0.12);
  color: hsl(var(--accent-blue));
  border: 1px solid rgba(0, 201, 255, 0.2);
}

.alert-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.alert-tag.red + .alert-beacon { background: hsl(var(--accent-red)); box-shadow: 0 0 6px hsl(var(--accent-red)); animation: beacon-pulse-red 2.5s infinite; }
.alert-tag.orange + .alert-beacon { background: hsl(var(--accent-orange)); box-shadow: 0 0 6px hsl(var(--accent-orange)); }
.alert-tag.blue + .alert-beacon { background: hsl(var(--accent-blue)); box-shadow: 0 0 6px hsl(var(--accent-blue)); }

@keyframes beacon-pulse-red {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.3; }
}

.alert-card-header .time {
  font-size: 0.7rem;
  color: hsl(var(--text-muted));
}

.alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #B91C1C;
  margin-top: 10px;
}

.alert-body-brief {
  font-size: 0.78rem;
  color: #334155;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

.alert-chevron {
  width: 14px;
  height: 14px;
  color: hsl(var(--text-muted));
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-left: auto;
}

.alert-card-item.expanded .alert-chevron {
  transform: rotate(180deg);
  color: #fff;
}

/* Accordion expand block */
.alert-expand-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.alert-card-item.expanded .alert-expand-content {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.alert-detail-text {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.6;
}

.alert-guide-list {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 8px;
}

.alert-guide-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.alert-guide-item {
  font-size: 0.75rem;
  color: hsl(var(--text-secondary));
  list-style: none;
  padding-left: 10px;
  position: relative;
  margin-top: 4px;
}

.alert-guide-item::before {
  content: "•";
  color: hsl(var(--accent-orange));
  position: absolute;
  left: 0;
}


/* Ad Banners Layout */
.right-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ad-banner-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ad-banner-left {
  margin-top: auto;
}

.ad-container {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.ad-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  border: 1px solid #CBD5E1;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

.ad-compact-left {
  border-radius: 12px;
  padding: 10px 14px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}
.ad-compact-left:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}
.ad-compact-left .ad-badge {
  position: static;
  font-size: 9px;
  padding: 1px 4px;
}
.ad-compact-left .ad-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1E293B;
  flex: 1;
  text-align: left;
}

/* 8. BOTTOM AREA: Weather Community Section */
.community-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.community-header .header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-header .header-title h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Community Post Card */
.community-post-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
  transition: var(--transition-smooth);
}

.community-post-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.post-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-tag-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 2px 8px;
  border-radius: 6px;
  color: hsl(var(--text-secondary));
}

.post-tag-badge.tag-sunny { border-color: rgba(255, 140, 0, 0.2); color: hsl(var(--accent-orange)); }
.post-tag-badge.tag-rainy { border-color: rgba(0, 201, 255, 0.2); color: hsl(var(--accent-blue)); }
.post-tag-badge.tag-windy { border-color: rgba(142, 45, 226, 0.2); color: hsl(var(--accent-purple)); }

.post-time {
  font-size: 0.65rem;
  color: #64748B;
}

.post-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-excerpt {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.post-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

.post-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
}

.post-interactions {
  display: flex;
  gap: 10px;
  color: #64748B;
}

.interaction-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  color: hsl(var(--text-secondary));
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-snappy);
}

.interaction-btn i {
  width: 14px;
  height: 14px;
  color: hsl(var(--text-muted));
  transition: var(--transition-snappy);
}

.interaction-btn:hover {
  color: #fff;
}

.interaction-btn.like-btn:hover i {
  color: hsl(var(--accent-red));
  filter: drop-shadow(0 0 3px rgba(255, 65, 108, 0.6));
  transform: scale(1.15);
}

.interaction-btn.comment-btn:hover i {
  color: hsl(var(--accent-blue));
  filter: drop-shadow(0 0 3px rgba(0, 201, 255, 0.6));
  transform: scale(1.15);
}

.interaction-btn.liked {
  color: hsl(var(--accent-red)) !important;
}

.interaction-btn.liked i {
  color: hsl(var(--accent-red)) !important;
  fill: hsl(var(--accent-red)) !important;
}

/* Burst Like Heart Particles FX */
.like-particle-burst {
  position: absolute;
  pointer-events: none;
  font-size: 14px;
  color: hsl(var(--accent-red));
  animation: heart-explode 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 1000;
}

@keyframes heart-explode {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.2); opacity: 0; }
}


/* 9. Premium Modals (Overlay glass panels) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0f1524;
  border: 1px solid var(--border-glass-hover);
  border-radius: 20px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay:not(.hidden) .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: hsl(var(--text-muted));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-snappy);
}

.modal-close-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.modal-close-btn i {
  width: 20px;
  height: 20px;
}

/* Forms styling */
form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--text-secondary));
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: #fff;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: hsl(var(--accent-blue));
  box-shadow: var(--neon-glow-blue);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* Comments Modal Special style */
.comment-modal-card {
  width: 550px;
  height: 480px;
}

.modal-body-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.post-preview-in-comment {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}

.post-preview-in-comment .author-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: hsl(var(--accent-orange));
  margin-bottom: 4px;
  display: block;
}

.post-preview-in-comment .body-text {
  font-size: 0.8rem;
  color: #fff;
}

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

.comment-item {
  background: rgba(255, 255, 255, 0.01);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
}

.comment-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
  margin-bottom: 4px;
}

.comment-item-header .name {
  color: hsl(var(--text-secondary));
}

.comment-item .comment-body {
  font-size: 0.8rem;
  color: hsl(var(--text-primary));
}

.comment-write-bar {
  display: flex;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
  background: rgba(255, 255, 255, 0.01);
}

.comment-write-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: #fff;
}

.comment-write-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: hsl(var(--accent-blue));
}


/* 10. Responsive Design Adaptability */

/* 넓은 화면 축소 - 컬럼 너비 약간 줄이기 */
@media (max-width: 1300px) {
  .dashboard-grid {
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    gap: 16px;
  }
  .search-box {
    width: 220px;
  }
}

/* 중간 화면 - 단일 컬럼 스택 */
@media (max-width: 1100px) {
  .app-container {
    padding: 16px;
    gap: 16px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .left-sidebar {
    grid-column: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    align-items: start;
  }
  .left-sidebar .map-container {
    height: 320px;
  }
  .center-panel {
    grid-column: 1;
  }
  .right-sidebar-container {
    grid-column: 1;
    max-height: none;
  }
  .alerts-feed-wrapper {
    max-height: 400px;
  }
  .community-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-box {
    width: 200px;
  }
  .quick-city-selector {
    flex-wrap: wrap;
    gap: 4px;
  }
  .city-btn {
    padding: 5px 9px;
    font-size: 0.75rem;
  }
}

/* 작은 화면 */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    grid-column: 1;
    display: flex;
    flex-direction: column;
  }
  .center-panel, .right-sidebar-container {
    grid-column: 1;
  }
  .main-header {
    flex-direction: column;
    align-items: stretch;
  }
  .header-left {
    justify-content: space-between;
  }
  .header-right {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
  .quick-city-selector {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
  .weather-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-trend-layout {
    flex-direction: column;
    height: auto;
  }
  .trend-outfit-section {
    flex: none;
    height: 120px;
  }
}

/* ==========================================================================
   11. Dynamic Weather-reactive Themes (Bright Colorful Skins)
   ========================================================================== */

/* A. 화창함 / 맑음 테마 (Sunny Theme - Positive Warm Sunrise) */
body.theme-sunny {
  --bg-dark: 36, 100%, 96%;
  background: linear-gradient(135deg, #e0f2fe 0%, #fef9c3 50%, #ffe4e6 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: 24, 100%, 40%;     /* Deep Burnt Orange (#C2410C) */
  --text-secondary: 24, 95%, 32%;    /* Rust Orange (#9A3412) */
  --text-muted: 28, 90%, 28%;        /* Dark Amber (#78350F) */
  --card-shadow: 0 12px 40px 0 rgba(148, 163, 184, 0.25);
  transition: background 1s ease, var(--transition-smooth);
}
body.theme-sunny .bg-glow-1 { background: radial-gradient(circle, rgba(253, 186, 116, 0.5) 0%, rgba(253, 186, 116, 0) 70%); }
body.theme-sunny .bg-glow-2 { background: radial-gradient(circle, rgba(244, 63, 94, 0.3) 0%, rgba(244, 63, 94, 0) 70%); }
body.theme-sunny .bg-glow-3 { background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%); }
body.theme-sunny .region-path { stroke: rgba(15, 23, 42, 0.12); }
body.theme-sunny .map-container { background: radial-gradient(circle, #f0f9ff 0%, #e0f2fe 100%); border-color: rgba(15, 23, 42, 0.1); }
body.theme-sunny .chart-grid-lines line { stroke: rgba(15, 23, 42, 0.08); }
body.theme-sunny .metric-card { background: rgba(15, 23, 42, 0.02); border-color: rgba(15, 23, 42, 0.04); }
body.theme-sunny .metric-card:hover { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
body.theme-sunny .suggestion-item { background: #fff; color: #0f172a; border-bottom: 1px solid rgba(15, 23, 42, 0.05); }
body.theme-sunny .suggestion-item:hover { background: #f1f5f9; color: #ff8c00; }
body.theme-sunny .search-suggestions { background: #ffffff; border-color: rgba(15, 23, 42, 0.1); }
body.theme-sunny .hourly-card { background: rgba(255, 255, 255, 0.3); border-color: rgba(15, 23, 42, 0.05); }
body.theme-sunny .hourly-card:hover { background: rgba(255, 255, 255, 0.6); }
body.theme-sunny .alert-card-item { background: rgba(255, 255, 255, 0.3); border-color: rgba(15, 23, 42, 0.05); }
body.theme-sunny .alert-card-item:hover { background: rgba(255, 255, 255, 0.6); }
body.theme-sunny .community-post-card { background: rgba(255, 255, 255, 0.35); border-color: rgba(15, 23, 42, 0.05); }
body.theme-sunny .community-post-card:hover { background: rgba(255, 255, 255, 0.65); }
body.theme-sunny .modal-card { background: #ffffff; border-color: rgba(15, 23, 42, 0.15); color: #0f172a; }
body.theme-sunny .form-group input, body.theme-sunny .form-group select, body.theme-sunny .form-group textarea { background: #f8fafc; border: 1px solid #cbd5e1; color: #0f172a; }
body.theme-sunny .quick-city-selector { background: rgba(15, 23, 42, 0.04); }
body.theme-sunny .city-btn.active { background: #0f172a; color: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2); }
body.theme-sunny .search-box input { background: rgba(255,255,255,0.7); color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.15); }
body.theme-sunny .search-box input:focus { border-color: #ff8c00; box-shadow: 0 0 10px rgba(255, 140, 0, 0.2); }
body.theme-sunny .main-header { background: rgba(255, 255, 255, 0.45); }
body.theme-sunny .view-tab.active { background: rgba(15, 23, 42, 0.04); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08); }
body.theme-sunny .comment-write-bar { background: rgba(15, 23, 42, 0.02); }
body.theme-sunny .comment-write-bar input { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
body.theme-sunny .post-tag-badge { background: rgba(15, 23, 42, 0.04); }
body.theme-sunny .post-preview-in-comment { background: rgba(15, 23, 42, 0.02); border-color: rgba(15, 23, 42, 0.04); }
body.theme-sunny .post-preview-in-comment .body-text { color: #0f172a; }
body.theme-sunny .comment-item { border-left-color: rgba(15, 23, 42, 0.1); }
body.theme-sunny .weather-large-icon { filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.3)); }

/* B. 비오면 테마 (Rainy Theme - Soft Sky Blue/Precipitation Ocean) */
body.theme-rainy {
  --bg-dark: 200, 70%, 96%;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #93c5fd 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: 24, 100%, 40%;     /* Deep Burnt Orange (#C2410C) */
  --text-secondary: 24, 95%, 32%;    /* Rust Orange (#9A3412) */
  --text-muted: 28, 90%, 28%;        /* Dark Amber (#78350F) */
  --card-shadow: 0 12px 40px 0 rgba(148, 163, 184, 0.25);
  transition: background 1s ease, var(--transition-smooth);
}
body.theme-rainy .bg-glow-1 { background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, rgba(14, 165, 233, 0) 70%); }
body.theme-rainy .bg-glow-2 { background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(56, 189, 248, 0) 70%); }
body.theme-rainy .bg-glow-3 { background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, rgba(13, 148, 136, 0) 70%); }
body.theme-rainy .region-path { stroke: rgba(15, 23, 42, 0.12); }
body.theme-rainy .map-container { background: radial-gradient(circle, #e0f2fe 0%, #bae6fd 100%); border-color: rgba(15, 23, 42, 0.1); }
body.theme-rainy .chart-grid-lines line { stroke: rgba(15, 23, 42, 0.08); }
body.theme-rainy .metric-card { background: rgba(15, 23, 42, 0.02); border-color: rgba(15, 23, 42, 0.04); }
body.theme-rainy .metric-card:hover { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
body.theme-rainy .suggestion-item { background: #fff; color: #0f172a; border-bottom: 1px solid rgba(15, 23, 42, 0.05); }
body.theme-rainy .suggestion-item:hover { background: #f1f5f9; color: #00c9ff; }
body.theme-rainy .search-suggestions { background: #ffffff; border-color: rgba(15, 23, 42, 0.1); }
body.theme-rainy .hourly-card { background: rgba(255, 255, 255, 0.3); border-color: rgba(15, 23, 42, 0.05); }
body.theme-rainy .hourly-card:hover { background: rgba(255, 255, 255, 0.6); }
body.theme-rainy .alert-card-item { background: rgba(255, 255, 255, 0.3); border-color: rgba(15, 23, 42, 0.05); }
body.theme-rainy .alert-card-item:hover { background: rgba(255, 255, 255, 0.6); }
body.theme-rainy .community-post-card { background: rgba(255, 255, 255, 0.35); border-color: rgba(15, 23, 42, 0.05); }
body.theme-rainy .community-post-card:hover { background: rgba(255, 255, 255, 0.65); }
body.theme-rainy .modal-card { background: #ffffff; border-color: rgba(15, 23, 42, 0.15); color: #0f172a; }
body.theme-rainy .form-group input, body.theme-rainy .form-group select, body.theme-rainy .form-group textarea { background: #f8fafc; border: 1px solid #cbd5e1; color: #0f172a; }
body.theme-rainy .quick-city-selector { background: rgba(15, 23, 42, 0.04); }
body.theme-rainy .city-btn.active { background: #0f172a; color: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2); }
body.theme-rainy .search-box input { background: rgba(255,255,255,0.7); color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.15); }
body.theme-rainy .search-box input:focus { border-color: #00c9ff; box-shadow: 0 0 10px rgba(0, 201, 255, 0.2); }
body.theme-rainy .main-header { background: rgba(255, 255, 255, 0.45); }
body.theme-rainy .view-tab.active { background: rgba(15, 23, 42, 0.04); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08); }
body.theme-rainy .comment-write-bar { background: rgba(15, 23, 42, 0.02); }
body.theme-rainy .comment-write-bar input { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
body.theme-rainy .post-tag-badge { background: rgba(15, 23, 42, 0.04); }
body.theme-rainy .post-preview-in-comment { background: rgba(15, 23, 42, 0.02); border-color: rgba(15, 23, 42, 0.04); }
body.theme-rainy .post-preview-in-comment .body-text { color: #0f172a; }
body.theme-rainy .comment-item { border-left-color: rgba(15, 23, 42, 0.1); }
body.theme-rainy .weather-large-icon { filter: drop-shadow(0 0 8px rgba(0, 201, 255, 0.3)); }

/* C. 흐리면 테마 (Cloudy Theme - Soft Pastel Misty Grey) */
body.theme-cloudy {
  --bg-dark: 220, 20%, 96%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: 24, 100%, 40%;     /* Deep Burnt Orange (#C2410C) */
  --text-secondary: 24, 95%, 32%;    /* Rust Orange (#9A3412) */
  --text-muted: 28, 90%, 28%;        /* Dark Amber (#78350F) */
  --card-shadow: 0 12px 40px 0 rgba(148, 163, 184, 0.25);
  transition: background 1s ease, var(--transition-smooth);
}
body.theme-cloudy .bg-glow-1 { background: radial-gradient(circle, rgba(203, 213, 225, 0.5) 0%, rgba(203, 213, 225, 0) 70%); }
body.theme-cloudy .bg-glow-2 { background: radial-gradient(circle, rgba(148, 163, 184, 0.4) 0%, rgba(148, 163, 184, 0) 70%); }
body.theme-cloudy .bg-glow-3 { background: radial-gradient(circle, rgba(100, 116, 139, 0.2) 0%, rgba(100, 116, 139, 0) 70%); }
body.theme-cloudy .region-path { stroke: rgba(15, 23, 42, 0.12); }
body.theme-cloudy .map-container { background: radial-gradient(circle, #f8fafc 0%, #f1f5f9 100%); border-color: rgba(15, 23, 42, 0.1); }
body.theme-cloudy .chart-grid-lines line { stroke: rgba(15, 23, 42, 0.08); }
body.theme-cloudy .metric-card { background: rgba(15, 23, 42, 0.02); border-color: rgba(15, 23, 42, 0.04); }
body.theme-cloudy .metric-card:hover { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
body.theme-cloudy .suggestion-item { background: #fff; color: #0f172a; border-bottom: 1px solid rgba(15, 23, 42, 0.05); }
body.theme-cloudy .suggestion-item:hover { background: #f1f5f9; color: #708090; }
body.theme-cloudy .search-suggestions { background: #ffffff; border-color: rgba(15, 23, 42, 0.1); }
body.theme-cloudy .hourly-card { background: rgba(255, 255, 255, 0.3); border-color: rgba(15, 23, 42, 0.05); }
body.theme-cloudy .hourly-card:hover { background: rgba(255, 255, 255, 0.6); }
body.theme-cloudy .alert-card-item { background: rgba(255, 255, 255, 0.3); border-color: rgba(15, 23, 42, 0.05); }
body.theme-cloudy .alert-card-item:hover { background: rgba(255, 255, 255, 0.6); }
body.theme-cloudy .community-post-card { background: rgba(255, 255, 255, 0.35); border-color: rgba(15, 23, 42, 0.05); }
body.theme-cloudy .community-post-card:hover { background: rgba(255, 255, 255, 0.65); }
body.theme-cloudy .modal-card { background: #ffffff; border-color: rgba(15, 23, 42, 0.15); color: #0f172a; }
body.theme-cloudy .form-group input, body.theme-cloudy .form-group select, body.theme-cloudy .form-group textarea { background: #f8fafc; border: 1px solid #cbd5e1; color: #0f172a; }
body.theme-cloudy .quick-city-selector { background: rgba(15, 23, 42, 0.04); }
body.theme-cloudy .city-btn.active { background: #0f172a; color: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2); }
body.theme-cloudy .search-box input { background: rgba(255,255,255,0.7); color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.15); }
body.theme-cloudy .search-box input:focus { border-color: #708090; box-shadow: 0 0 10px rgba(112, 128, 144, 0.2); }
body.theme-cloudy .main-header { background: rgba(255, 255, 255, 0.45); }
body.theme-cloudy .view-tab.active { background: rgba(15, 23, 42, 0.04); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08); }
body.theme-cloudy .comment-write-bar { background: rgba(15, 23, 42, 0.02); }
body.theme-cloudy .comment-write-bar input { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
body.theme-cloudy .post-tag-badge { background: rgba(15, 23, 42, 0.04); }
body.theme-cloudy .post-preview-in-comment { background: rgba(15, 23, 42, 0.02); border-color: rgba(15, 23, 42, 0.04); }
body.theme-cloudy .post-preview-in-comment .body-text { color: #0f172a; }
body.theme-cloudy .comment-item { border-left-color: rgba(15, 23, 42, 0.1); }
body.theme-cloudy .weather-large-icon { filter: drop-shadow(0 0 8px rgba(112, 128, 144, 0.3)); }

/* D. 밤/달 테마 (Default Deep Dark Indigo Space) */
body.theme-night {
  --bg-dark: 224, 40%, 8%;
  background: linear-gradient(135deg, #0B0F19 0%, #1E2640 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  --text-primary: 28, 100%, 55%;     /* Vivid Deep Orange (#FF8C00) */
  --text-secondary: 38, 95%, 60%;    /* Golden Amber (#FBBF24) */
  --text-muted: 45, 90%, 65%;        /* Bright Gold (#FDE047) */
  --card-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
  transition: background 1s ease, var(--transition-smooth);
}

/* E. 봄 테마 (Spring Theme - Cherry Blossom Pink & Fresh Meadow Green) */
body.theme-spring {
  --bg-dark: 340, 60%, 96%;
  background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 50%, #ecfdf5 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: 240, 29%, 14%;     /* #1A1A2E */
  --text-secondary: 215, 17%, 35%;    /* #4A5568 */
  --text-muted: 215, 14%, 52%;        /* #718096 */
  --card-shadow: 0 12px 40px 0 rgba(244, 114, 182, 0.25);
  transition: background 1s ease, var(--transition-smooth);
}
body.theme-spring .bg-glow-1 { background: radial-gradient(circle, rgba(244, 114, 182, 0.45) 0%, rgba(244, 114, 182, 0) 70%); }
body.theme-spring .bg-glow-2 { background: radial-gradient(circle, rgba(52, 211, 153, 0.35) 0%, rgba(52, 211, 153, 0) 70%); }
body.theme-spring .bg-glow-3 { background: radial-gradient(circle, rgba(251, 113, 133, 0.25) 0%, rgba(251, 113, 133, 0) 70%); }
body.theme-spring .map-container { background: radial-gradient(circle, #fff1f2 0%, #fce7f3 100%); border-color: rgba(244, 114, 182, 0.2); }

/* F. 여름 테마 (Summer Theme - Tropical Ocean Aqua & Refreshing Emerald) */
body.theme-summer {
  --bg-dark: 190, 80%, 96%;
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 50%, #d1fae5 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: 211, 62%, 13%;     /* #0D2137 */
  --text-secondary: 215, 17%, 35%;    /* #4A5568 */
  --text-muted: 215, 14%, 52%;        /* #718096 */
  --card-shadow: 0 12px 40px 0 rgba(6, 182, 212, 0.25);
  transition: background 1s ease, var(--transition-smooth);
}
body.theme-summer .bg-glow-1 { background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, rgba(6, 182, 212, 0) 70%); }
body.theme-summer .bg-glow-2 { background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%); }
body.theme-summer .bg-glow-3 { background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%); }
body.theme-summer .map-container { background: radial-gradient(circle, #ecfeff 0%, #cffafe 100%); border-color: rgba(6, 182, 212, 0.2); }

/* G. 가을 테마 (Autumn Theme - Golden Maple Amber & Crimson Fall Sunset) */
body.theme-autumn {
  --bg-dark: 30, 80%, 96%;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fee2e2 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: 30, 62%, 10%;      /* #2A1A0A */
  --text-secondary: 215, 17%, 35%;    /* #4A5568 */
  --text-muted: 215, 14%, 52%;        /* #718096 */
  --card-shadow: 0 12px 40px 0 rgba(249, 115, 22, 0.25);
  transition: background 1s ease, var(--transition-smooth);
}
body.theme-autumn .bg-glow-1 { background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, rgba(249, 115, 22, 0) 70%); }
body.theme-autumn .bg-glow-2 { background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(239, 68, 68, 0) 70%); }
body.theme-autumn .bg-glow-3 { background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, rgba(234, 179, 8, 0) 70%); }
body.theme-autumn .map-container { background: radial-gradient(circle, #fff7ed 0%, #ffedd5 100%); border-color: rgba(249, 115, 22, 0.2); }

/* H. 겨울 테마 (Winter Theme - Frosty Silver Snow & Aurora Glacier Blue) */
body.theme-winter {
  --bg-dark: 210, 60%, 96%;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #e2e8f0 100%) !important;
  --bg-card-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: 213, 51%, 12%;     /* #0F1D2E */
  --text-secondary: 215, 17%, 35%;    /* #4A5568 */
  --text-muted: 215, 14%, 52%;        /* #718096 */
  --card-shadow: 0 12px 40px 0 rgba(186, 230, 253, 0.35);
  transition: background 1s ease, var(--transition-smooth);
}
body.theme-winter .bg-glow-1 { background: radial-gradient(circle, rgba(186, 230, 253, 0.5) 0%, rgba(186, 230, 253, 0) 70%); }
body.theme-winter .bg-glow-2 { background: radial-gradient(circle, rgba(203, 213, 225, 0.4) 0%, rgba(203, 213, 225, 0) 70%); }
body.theme-winter .bg-glow-3 { background: radial-gradient(circle, rgba(125, 211, 252, 0.3) 0%, rgba(125, 211, 252, 0) 70%); }
body.theme-winter .map-container { background: radial-gradient(circle, #f0f9ff 0%, #e0f2fe 100%); border-color: rgba(186, 230, 253, 0.3); }

/* ==========================================================================
   7. Main Trend Tile Layout (3:1 Refactor)
   ========================================================================== */
.main-trend-card {
  padding: 32px;
}

.main-trend-layout {
  display: flex;
  gap: 24px;
  height: 280px;
  min-width: 0;
}

.trend-graph-section {
  flex: 3;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trend-outfit-section {
  flex: 1; /* 25% */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.main-weather-bg-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.main-weather-bg-icon i {
  width: 140px;
  height: 140px;
  color: hsl(var(--accent-orange));
  filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.5));
}

#interactive-chart-box {
  position: relative;
  z-index: 1;
  height: 100%;
}

.outfit-character-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.outfit-character {
  font-size: 6rem;
  line-height: 1;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.outfit-info {
  margin-top: 16px;
}

.outfit-title {
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
  font-weight: 500;
  margin-bottom: 8px;
}

.outfit-desc {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
}

.outfit-skeleton.hidden {
  display: none;
}

.skeleton-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: skeleton-pulse 1.5s infinite;
  margin-bottom: 24px;
}

.skeleton-text {
  width: 100px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s infinite;
  margin: 0 auto 12px;
}

.skeleton-text.small {
  width: 140px;
  height: 14px;
}

@keyframes skeleton-pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Section 14 Chromatic Overrides removed for sophisticated design */
