/* ==========================================================================
   ATMOSPHERE WEATHER DASHBOARD - ULTRA MODERN GLASSMORPHIC DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Base Typography & Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Base Palette */
    --bg-dark: #0a0f1d;
    --bg-surface: rgba(18, 26, 47, 0.65);
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-glass-bright: rgba(255, 255, 255, 0.25);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-accent: #38bdf8;

    /* Status & Category Accents */
    --accent-blue: #38bdf8;
    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-purple: #a855f7;
    --accent-rose: #f43f5e;
    --accent-yellow: #fbbf24;

    /* Ambient Gradients (Default: Clear/Cloudy) */
    --theme-grad-1: #0f172a;
    --theme-grad-2: #1e293b;
    --theme-glow: rgba(56, 189, 248, 0.15);
    --card-blur: blur(20px);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-glass);
    --shadow-glow: 0 0 25px var(--theme-glow);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   DYNAMIC WEATHER THEMES (Ambient Backgrounds & Accents)
   ========================================================================== */

body.theme-sunny {
    --theme-grad-1: #1a1608;
    --theme-grad-2: #2a200a;
    --theme-glow: rgba(251, 191, 36, 0.2);
    --text-accent: #fbbf24;
}

body.theme-rainy {
    --theme-grad-1: #081624;
    --theme-grad-2: #0f2438;
    --theme-glow: rgba(56, 189, 248, 0.22);
    --text-accent: #38bdf8;
}

body.theme-stormy {
    --theme-grad-1: #110d24;
    --theme-grad-2: #1c143d;
    --theme-glow: rgba(168, 85, 247, 0.25);
    --text-accent: #c084fc;
}

body.theme-snowy {
    --theme-grad-1: #0c1b29;
    --theme-grad-2: #192d3f;
    --theme-glow: rgba(186, 230, 253, 0.25);
    --text-accent: #7dd3fc;
}

body.theme-night {
    --theme-grad-1: #050814;
    --theme-grad-2: #0d1326;
    --theme-glow: rgba(99, 102, 241, 0.2);
    --text-accent: #818cf8;
}

body.theme-cloudy {
    --theme-grad-1: #0f172a;
    --theme-grad-2: #1e293b;
    --theme-glow: rgba(148, 163, 184, 0.18);
    --text-accent: #38bdf8;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 0%, var(--theme-grad-2) 0%, var(--theme-grad-1) 100%);
    transition: background 0.8s ease-in-out;
}

/* Background Canvas & Ambient Layer */
#weatherCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.ambient-glow {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 50vh;
    border-radius: 50%;
    background: var(--theme-glow);
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
    transition: background 1s ease, filter 1s ease;
}

/* App Container */
.app-container {
    position: relative;
    z-index: 2;
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 28px 48px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ==========================================================================
   TOP NAVIGATION & HEADER
   ========================================================================== */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    border: 1px solid var(--border-glass-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
    animation: iconFloat 4s ease-in-out infinite;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-accent);
}

/* Search Bar & Autocomplete */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 520px;
    min-width: 260px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.search-bar:focus-within {
    border-color: var(--text-accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 8px 30px rgba(0, 0, 0, 0.35);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.clear-btn:hover {
    color: var(--text-primary);
}

.search-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text-accent);
    color: #04101e;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.search-action-btn:hover {
    transform: scale(1.08) translateX(2px);
    background: #7dd3fc;
}

/* Autocomplete Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 100;
    display: none;
    max-height: 280px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.active {
    background: rgba(56, 189, 248, 0.15);
}

.suggestion-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-main i {
    color: var(--text-accent);
    font-size: 0.9rem;
}

.suggestion-city {
    font-weight: 600;
    font-size: 0.95rem;
}

.suggestion-country {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Navigation Actions & Controls */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-glass-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.icon-btn:active {
    transform: translateY(0);
}

.favorite-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-amber);
    color: #1a1608;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

/* Unit Switcher Button */
.unit-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 3px;
    height: 44px;
    align-items: center;
}

.unit-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.unit-btn.active {
    background: var(--text-accent);
    color: #051323;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

/* Tooltip on hover */
.btn-tooltip {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
    pointer-events: none;
    z-index: 10;
}

.icon-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   QUICK CITIES CHIPS ROW
   ========================================================================== */

.quick-cities-container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.quick-cities-container::-webkit-scrollbar {
    display: none;
}

.quick-cities-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.quick-cities-label i {
    color: var(--accent-orange);
}

.quick-cities-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.city-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-color: var(--border-glass-bright);
    transform: translateY(-1px);
}

.city-chip.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--text-accent);
    color: var(--text-accent);
    font-weight: 600;
}

/* ==========================================================================
   GLASS CARD BASE & MAIN DASHBOARD LAYOUT
   ========================================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 22px;
    align-items: start;
}

.grid-left-col, .grid-right-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glass-bright);
    background: var(--bg-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.header-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    font-size: 1.15rem;
    color: var(--text-accent);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

/* Status Pills */
.status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-good {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-moderate {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-poor {
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.status-unhealthy {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

/* ==========================================================================
   HERO CURRENT WEATHER CARD
   ========================================================================== */

.hero-weather-card {
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.location-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.location-pin {
    color: var(--accent-rose);
    font-size: 1.25rem;
}

.city-name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.country-tag {
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-primary);
}

.fav-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 6px;
    transition: var(--transition-smooth);
}

.fav-toggle-btn:hover {
    color: var(--accent-amber);
    transform: scale(1.2);
}

.fav-toggle-btn.pinned {
    color: var(--accent-amber);
}

.current-datetime {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 500;
}

.weather-condition-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass-bright);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseDot 2s infinite;
}

.hero-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.temp-display-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-temp-val {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.temp-sub-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feels-like {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.high-low-range {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
}

.high-temp {
    color: #fca5a5;
}

.low-temp {
    color: #93c5fd;
}

.weather-visual-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.weather-3d-icon-box {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.weather-hero-icon {
    font-size: 4rem;
    color: var(--accent-amber);
    filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.6));
    animation: iconFloat 4s ease-in-out infinite;
}

.condition-description {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

/* Hero Stats Ribbon */
.hero-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}

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

.ribbon-item i {
    font-size: 1.25rem;
    color: var(--text-accent);
}

.ribbon-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.ribbon-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ribbon-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
}

/* Smart Advice Banner */
.weather-smart-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
}

.banner-sparkle {
    color: var(--accent-yellow);
    font-size: 1.1rem;
    animation: sparkleSpin 3s infinite ease-in-out;
}

/* ==========================================================================
   24-HOUR HOURLY FORECAST & CANVAS CHART
   ========================================================================== */

.chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.temp-dot {
    background: var(--accent-blue);
    box-shadow: 0 0 6px var(--accent-blue);
}

.rain-dot {
    background: var(--accent-cyan);
}

.chart-wrapper {
    width: 100%;
    height: 110px;
    margin-bottom: 16px;
    position: relative;
}

#hourlyTrendCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hourly Horizontal Scroll */
.hourly-cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.hourly-cards-scroll::-webkit-scrollbar {
    height: 5px;
}

.hourly-cards-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

.hourly-item-card {
    flex: 0 0 88px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: default;
}

.hourly-item-card:hover, .hourly-item-card.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-accent);
    transform: translateY(-3px);
}

.hourly-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hourly-icon {
    font-size: 1.45rem;
    color: var(--accent-amber);
    margin: 2px 0;
}

.hourly-temp {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hourly-pop {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ==========================================================================
   5-DAY EXTENDED FORECAST
   ========================================================================== */

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

.daily-forecast-row {
    display: grid;
    grid-template-columns: 90px 1.2fr 45px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.daily-forecast-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-bright);
}

.daily-day-info {
    display: flex;
    flex-direction: column;
}

.daily-day-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.daily-date {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.daily-condition {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.daily-condition i {
    font-size: 1.3rem;
    color: var(--accent-amber);
    min-width: 24px;
    text-align: center;
}

.daily-rain-chance {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-align: center;
}

.daily-temp-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-low {
    font-size: 0.84rem;
    font-weight: 600;
    color: #93c5fd;
    min-width: 28px;
    text-align: right;
}

.temp-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.temp-bar-range {
    position: absolute;
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #60a5fa 0%, #fbbf24 100%);
}

.daily-high {
    font-size: 0.84rem;
    font-weight: 600;
    color: #fca5a5;
    min-width: 28px;
}

/* ==========================================================================
   METRICS & DEEP DIVE INTELLIGENCE GRID
   ========================================================================== */

/* AQI Card */
.aqi-meter-wrap {
    margin-bottom: 18px;
}

.aqi-score-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}

.aqi-val {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #34d399;
}

.aqi-scale {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.aqi-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.aqi-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    transition: width 0.6s ease;
}

.aqi-health-advice {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pollutants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pollutant-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2px;
}

.pol-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pol-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pol-val small {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* UV Index Card */
.uv-gauge-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uv-score-display {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.uv-number {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent-amber);
}

.uv-max {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.uv-gradient-bar {
    position: relative;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #10b981 0%, #fbbf24 35%, #f97316 65%, #a855f7 100%);
}

.uv-pin {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #0f172a;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.uv-recommendation {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Wind & Direction Compass Card */
.wind-content-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
}

.compass-visual-box {
    width: 90px;
    height: 90px;
    position: relative;
    flex-shrink: 0;
}

.compass-dial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-marker {
    position: absolute;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
}

.marker-n { top: 4px; color: var(--accent-rose); }
.marker-e { right: 6px; }
.marker-s { bottom: 4px; }
.marker-w { left: 6px; }

.compass-arrow-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.compass-arrow-needle {
    width: 4px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent-rose) 50%, var(--accent-blue) 50%);
    border-radius: var(--radius-full);
    position: relative;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.compass-arrow-needle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 10px;
    height: 10px;
    background: var(--accent-rose);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.wind-info-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wind-speed-large {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.wind-speed-large small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.wind-detail-row {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.wind-detail-row strong {
    color: var(--text-primary);
}

/* Sun Cycle Card */
.sun-arc-visualizer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sun-arc-svg {
    width: 100%;
    max-height: 90px;
    overflow: visible;
}

.sun-times-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sun-time-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sun-time-icon.rise {
    color: #f59e0b;
    font-size: 1.3rem;
}

.sun-time-icon.set {
    color: #f97316;
    font-size: 1.3rem;
}

.sun-time-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sun-time-val {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Lifestyle Index */
.lifestyle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lifestyle-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: var(--transition-smooth);
}

.lifestyle-tile:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-glass-bright);
}

.tile-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.icon-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.icon-orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; }

.tile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tile-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tile-badge {
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-great { color: #34d399; }
.badge-not-needed { color: #38bdf8; }
.badge-moderate { color: #fbbf24; }
.badge-caution { color: #fb7185; }

/* ==========================================================================
   SAVED CITIES DRAWER & BOTTOM SHEET MODAL
   ========================================================================== */

.favorites-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 390px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(13, 20, 36, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid var(--border-glass-bright);
    box-shadow: -12px 0 50px rgba(0, 0, 0, 0.7);
    z-index: 1200;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.favorites-drawer.open {
    right: 0;
}

.drawer-handle-bar {
    display: none;
    width: 100%;
    padding: 12px 0 4px;
    justify-content: center;
    align-items: center;
}

.drawer-handle {
    width: 44px;
    height: 5px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.25);
}

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

.drawer-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.drawer-title-row i {
    color: var(--accent-amber);
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg);
}

.drawer-close-btn:active {
    transform: scale(0.92);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.fav-city-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.fav-city-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-accent);
    transform: translateX(-3px);
}

.fav-city-card:active {
    transform: scale(0.98);
}

.fav-info-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.fav-info-col p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fav-temp-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-fav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.remove-fav-btn:hover {
    background: var(--accent-rose);
    color: #ffffff;
}

.empty-fav-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.empty-fav-state i {
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.2);
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION DOCK (Native App Feel)
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 15, 29, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: space-around;
    padding-left: 8px;
    padding-right: 8px;
}

.mobile-nav-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: var(--transition-smooth);
    padding: 6px 12px;
    border-radius: 12px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-icon-wrap {
    position: relative;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-btn.active {
    color: var(--text-accent);
}

.mobile-nav-btn.active .mobile-nav-icon-wrap {
    transform: scale(1.15) translateY(-2px);
    color: var(--text-accent);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7));
}

.mobile-nav-btn:active {
    transform: scale(0.9);
}

.mobile-nav-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent-amber);
    color: #1a1608;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   LOADING SKELETON OVERLAY & TOAST NOTIFICATIONS
   ========================================================================== */

.skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.weather-pulse-loader {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 2px solid var(--text-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-accent);
    animation: loaderPulse 1.5s infinite ease-in-out;
}

.loader-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass-bright);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.error {
    border-color: rgba(244, 63, 94, 0.5);
}

.toast.error i {
    color: var(--accent-rose);
}

.toast.success i {
    color: var(--accent-green);
}

.app-footer {
    text-align: center;
    padding: 24px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-dev {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.portfolio-link {
    display: inline-block;
    color: var(--text-accent);
    font-weight: 700;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    margin-left: 4px;
    transition: var(--transition-smooth);
}

.portfolio-link:hover {
    color: #ffffff;
    background: var(--text-accent);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.footer-credits {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes sparkleSpin {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

@keyframes loaderPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(56, 189, 248, 0.3); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE NATIVE EXPERIENCE
   ========================================================================== */

/* Tablet & Smaller Desktop (max-width: 1080px) */
@media (max-width: 1080px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .top-nav {
        gap: 16px;
    }

    .search-wrapper {
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    .nav-actions {
        order: 2;
    }
}

/* Mobile Devices & Phones (max-width: 768px) - Full Mobile Native UI */
@media (max-width: 768px) {
    /* Mobile App Shell & Spacing */
    .app-container {
        padding: 12px 14px calc(76px + env(safe-area-inset-bottom, 12px)) 14px;
        gap: 16px;
        max-width: 100%;
    }

    /* Show Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Sticky Mobile App Bar */
    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 4px;
    }

    .brand-section {
        justify-content: space-between;
        width: 100%;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .brand-title {
        font-size: 1.35rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .unit-toggle {
        height: 40px;
        border-radius: 10px;
    }

    .unit-btn {
        padding: 4px 10px;
        font-size: 0.82rem;
    }

    .btn-tooltip {
        display: none; /* Disable hover tooltips on mobile touch */
    }

    /* Search Bar on Mobile */
    .search-bar {
        padding: 5px 6px 5px 14px;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-action-btn {
        width: 34px;
        height: 34px;
    }

    /* Popular City Chips Carousel */
    .quick-cities-container {
        gap: 8px;
        padding-bottom: 6px;
        margin-top: -4px;
    }

    .quick-cities-label {
        font-size: 0.78rem;
    }

    .city-chip {
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    /* Glass Cards Base Mobile Styling */
    .glass-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .card-header {
        margin-bottom: 14px;
    }

    .card-title {
        font-size: 0.98rem;
    }

    /* Main Hero Weather Card Mobile Layout */
    .hero-weather-card {
        padding: 20px 18px;
        border-radius: 24px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    }

    .hero-top-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 16px;
    }

    .city-name {
        font-size: 1.55rem;
    }

    .country-tag {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .current-datetime {
        font-size: 0.78rem;
    }

    .weather-condition-pill {
        padding: 5px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .hero-main-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 20px;
    }

    .main-temp-val {
        font-size: 4.2rem;
        letter-spacing: -2px;
    }

    .feels-like {
        font-size: 0.85rem;
    }

    .high-low-range {
        font-size: 0.82rem;
        gap: 8px;
    }

    .weather-3d-icon-box {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .weather-hero-icon {
        font-size: 2.3rem;
    }

    .condition-description {
        font-size: 0.82rem;
        max-width: 100px;
        text-align: center;
    }

    /* Hero Quick Stats Ribbon: 2x2 Grid on Mobile */
    .hero-ribbon {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.25);
    }

    .ribbon-item {
        gap: 10px;
    }

    .ribbon-item i {
        font-size: 1.15rem;
    }

    .ribbon-label {
        font-size: 0.68rem;
    }

    .ribbon-val {
        font-size: 0.88rem;
    }

    .ribbon-divider {
        display: none;
    }

    .weather-smart-banner {
        padding: 10px 14px;
        font-size: 0.8rem;
        border-radius: 14px;
        gap: 8px;
    }

    /* Hourly Forecast Mobile Carousel */
    .hourly-cards-scroll {
        gap: 8px;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .hourly-item-card {
        min-width: 68px;
        padding: 12px 8px;
        border-radius: 14px;
        scroll-snap-align: start;
    }

    .hourly-time {
        font-size: 0.74rem;
    }

    .hourly-icon {
        font-size: 1.35rem;
    }

    .hourly-temp {
        font-size: 0.95rem;
    }

    .hourly-pop {
        font-size: 0.68rem;
    }

    /* 5-Day Forecast Mobile Rows */
    .daily-forecast-list {
        gap: 8px;
    }

    .daily-forecast-row {
        grid-template-columns: 72px 1fr 34px 85px;
        gap: 6px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .daily-day-name {
        font-size: 0.85rem;
    }

    .daily-date {
        font-size: 0.7rem;
    }

    .daily-condition {
        gap: 6px;
        font-size: 0.82rem;
    }

    .daily-condition i {
        font-size: 1rem;
    }

    .daily-rain-chance {
        font-size: 0.72rem;
    }

    .daily-low, .daily-high {
        font-size: 0.82rem;
    }

    .temp-bar-track {
        height: 5px;
    }

    /* Weather Intelligence Cards on Mobile */
    .pollutants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .aqi-val {
        font-size: 2.4rem;
    }

    .uv-number {
        font-size: 2.3rem;
    }

    .wind-content-wrap {
        gap: 16px;
    }

    .compass-visual-box {
        width: 78px;
        height: 78px;
    }

    .wind-speed-large {
        font-size: 1.9rem;
    }

    .sun-arc-visualizer {
        gap: 10px;
    }

    .sun-times-row {
        padding: 8px 12px;
    }

    .lifestyle-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .lifestyle-tile {
        padding: 10px 12px;
        gap: 10px;
    }

    .tile-icon-box {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .tile-title {
        font-size: 0.75rem;
    }

    .tile-badge {
        font-size: 0.72rem;
    }

    /* Native Bottom Sheet Drawer on Mobile */
    .favorites-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        height: auto;
        max-height: 85vh;
        border-radius: 28px 28px 0 0;
        border-left: none;
        border-top: 1px solid var(--border-glass-bright);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
        transform: translateY(105%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }

    .favorites-drawer.open {
        transform: translateY(0);
        right: 0;
    }

    .drawer-handle-bar {
        display: flex;
    }

    .drawer-header {
        padding: 14px 20px 16px;
    }

    /* Mobile Toast Position (Above Bottom Navigation Dock) */
    .toast-container {
        bottom: calc(72px + env(safe-area-inset-bottom, 10px));
        right: 14px;
        left: 14px;
        max-width: calc(100vw - 28px);
    }

    .toast {
        padding: 10px 14px;
        font-size: 0.84rem;
    }

    .app-footer {
        padding: 16px 0 calc(12px + env(safe-area-inset-bottom, 0px));
        margin-bottom: 8px;
    }

    .footer-dev {
        font-size: 0.85rem;
    }

    .footer-credits {
        font-size: 0.72rem;
    }
}

/* Extra Compact Phones (max-width: 420px) */
@media (max-width: 420px) {
    .app-container {
        padding: 10px 10px calc(76px + env(safe-area-inset-bottom, 12px)) 10px;
        gap: 12px;
    }

    .glass-card {
        padding: 16px 12px;
        border-radius: 18px;
    }

    .hero-weather-card {
        padding: 16px 14px;
    }

    .city-name {
        font-size: 1.35rem;
    }

    .main-temp-val {
        font-size: 3.6rem;
    }

    .weather-3d-icon-box {
        width: 62px;
        height: 62px;
    }

    .weather-hero-icon {
        font-size: 2rem;
    }

    .daily-forecast-row {
        grid-template-columns: 60px 1fr 28px 75px;
        padding: 8px 10px;
        font-size: 0.78rem;
    }

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

    .mobile-nav-btn span {
        font-size: 0.65rem;
    }

    .mobile-nav-icon-wrap {
        font-size: 1.05rem;
    }
}