/* ===================================================
   FLAVOR WEATHER SAMSUNG PRO v7.0 - CSS
   Samsung Weather-inspired design with glass morphism
   =================================================== */

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

.fws-weather-page,
.fws-archive-page {
    position: relative;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}

.fws-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* ============== DYNAMIC SKY BACKGROUNDS ============== */
.fws-sky-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    transition: background 1.5s ease;
}

/* Clear Day */
.fws-sky-bg[data-weather="clear"][data-day="1"],
.fws-sky-bg[data-weather="clear"]:not([data-day="0"]) {
    background: linear-gradient(180deg, #1565C0 0%, #42A5F5 30%, #64B5F6 50%, #90CAF9 70%, #E3F2FD 100%);
}

/* Clear Night */
.fws-sky-bg[data-weather="clear"][data-day="0"] {
    background: linear-gradient(180deg, #0D1B2A 0%, #1B2838 20%, #1A237E 40%, #283593 60%, #3949AB 100%);
}

/* Cloudy */
.fws-sky-bg[data-weather="cloudy"][data-day="1"],
.fws-sky-bg[data-weather="cloudy"]:not([data-day="0"]) {
    background: linear-gradient(180deg, #546E7A 0%, #78909C 30%, #90A4AE 50%, #B0BEC5 70%, #CFD8DC 100%);
}
.fws-sky-bg[data-weather="cloudy"][data-day="0"] {
    background: linear-gradient(180deg, #263238 0%, #37474F 30%, #455A64 60%, #546E7A 100%);
}

/* Rain */
.fws-sky-bg[data-weather="rain"][data-day="1"],
.fws-sky-bg[data-weather="rain"]:not([data-day="0"]) {
    background: linear-gradient(180deg, #455A64 0%, #607D8B 25%, #78909C 50%, #90A4AE 75%, #B0BEC5 100%);
}
.fws-sky-bg[data-weather="rain"][data-day="0"] {
    background: linear-gradient(180deg, #1A237E 0%, #283593 30%, #37474F 60%, #455A64 100%);
}

/* Snow */
.fws-sky-bg[data-weather="snow"] {
    background: linear-gradient(180deg, #90A4AE 0%, #B0BEC5 25%, #CFD8DC 50%, #E0E0E0 75%, #ECEFF1 100%);
}

/* Storm */
.fws-sky-bg[data-weather="storm"] {
    background: linear-gradient(180deg, #1A1A2E 0%, #16213E 25%, #263238 50%, #37474F 75%, #455A64 100%);
}

/* Fog */
.fws-sky-bg[data-weather="fog"] {
    background: linear-gradient(180deg, #B0BEC5 0%, #CFD8DC 30%, #E0E0E0 60%, #ECEFF1 100%);
}

/* Archive page bg */
.fws-archive-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(180deg, #1565C0 0%, #42A5F5 30%, #64B5F6 60%, #90CAF9 100%);
}

/* ============== WEATHER EFFECTS ============== */
.fws-weather-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Rain drops (created via JS) */
.fws-rain-drop {
    position: absolute;
    width: 1.5px;
    background: linear-gradient(to bottom, transparent, rgba(174, 213, 248, 0.6));
    border-radius: 0 0 2px 2px;
    animation: rainFall linear infinite;
}
@keyframes rainFall {
    0% { transform: translateY(-10vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(105vh); opacity: 0; }
}

/* Snow flakes */
.fws-snow-flake {
    position: absolute;
    width: 6px; height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: snowFall linear infinite;
}
@keyframes snowFall {
    0% { transform: translateY(-5vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateY(50vh) translateX(30px) rotate(180deg); }
    90% { opacity: 0.6; }
    100% { transform: translateY(105vh) translateX(-10px) rotate(360deg); opacity: 0; }
}

/* Stars (night) */
.fws-star {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Lightning */
.fws-lightning {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: lightning 8s infinite;
}
@keyframes lightning {
    0%, 100% { opacity: 0; }
    4% { opacity: 0.15; }
    5% { opacity: 0; }
    6% { opacity: 0.1; }
    7% { opacity: 0; }
}

/* Sun glow */
.fws-sun-glow {
    position: absolute;
    top: -80px; right: -60px;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(255,235,59,0.3) 0%, rgba(255,193,7,0.1) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: sunPulse 4s ease-in-out infinite;
}
@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Moon glow */
.fws-moon-glow {
    position: absolute;
    top: -40px; right: 30px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 20%, rgba(200,200,255,0.2) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* ============== SEARCH BAR ============== */
.fws-search-bar {
    position: relative;
    margin: 16px 0;
    z-index: 100;
}
.fws-search-bar .fws-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    color: white;
    z-index: 2;
}
.fws-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.fws-search-input::placeholder { color: rgba(255,255,255,0.5); }
.fws-search-input:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}
.fws-search-results {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(30,40,60,0.95);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
}
.fws-search-results.active { display: block; }
.fws-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    gap: 10px;
}
.fws-search-result-item:hover { background: rgba(255,255,255,0.1); }
.fws-search-result-name { font-weight: 600; font-size: 14px; }
.fws-search-result-country { font-size: 12px; opacity: 0.6; }

/* ============== HERO SECTION ============== */
.fws-hero-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 0 10px;
    min-height: 300px;
}
.fws-hero-left {
    flex: 1;
    padding-top: 10px;
}
.fws-city-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    line-height: 1.1;
}
.fws-country-name {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0 0 16px;
    font-weight: 400;
}
.fws-temp-display {
    margin: 8px 0 4px;
}
.fws-temp-main {
    font-size: 5.5rem;
    font-weight: 200;
    letter-spacing: -4px;
    line-height: 1;
    text-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.fws-condition-label {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 4px 0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.fws-temp-range {
    font-size: 1rem;
    opacity: 0.85;
    margin: 4px 0;
}
.fws-feels-like {
    font-size: 0.9rem;
    opacity: 0.7;
}
.fws-weather-summary {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 6px;
    max-width: 280px;
}

/* Character */
.fws-hero-right {
    width: 200px;
    min-width: 160px;
    margin-top: -10px;
}
.fws-character-wrap {
    width: 100%;
}
.fws-character-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* ============== GLASS CARD ============== */
.fws-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 14px;
    transition: background 0.3s;
}
.fws-card:hover {
    background: rgba(255,255,255,0.16);
}
.fws-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.fws-card-icon {
    opacity: 0.8;
    display: flex;
    align-items: center;
}
.fws-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

/* Loading animation */
.fws-loading {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}
.fws-loading span {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}
.fws-loading span:nth-child(1) { animation-delay: -0.32s; }
.fws-loading span:nth-child(2) { animation-delay: -0.16s; }
@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ============== ALERTS ============== */
.fws-alerts-container { display: flex; flex-direction: column; gap: 8px; }
.fws-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
.fws-alert-rain { background: rgba(33,150,243,0.25); border: 1px solid rgba(33,150,243,0.3); }
.fws-alert-uv { background: rgba(255,152,0,0.25); border: 1px solid rgba(255,152,0,0.3); }
.fws-alert-wind { background: rgba(156,39,176,0.25); border: 1px solid rgba(156,39,176,0.3); }

/* ============== HOURLY FORECAST ============== */
.fws-hourly-scroll {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fws-hourly-scroll::-webkit-scrollbar { display: none; }
.fws-hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding: 10px 6px;
    border-radius: 16px;
    scroll-snap-align: start;
    transition: background 0.2s;
    gap: 6px;
}
.fws-hourly-item.now {
    background: rgba(255,255,255,0.15);
}
.fws-hourly-time {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}
.fws-hourly-icon { font-size: 1.3rem; }
.fws-hourly-temp {
    font-size: 1rem;
    font-weight: 600;
}
.fws-hourly-precip {
    font-size: 0.65rem;
    opacity: 0.6;
    color: #90CAF9;
}

/* ============== PRECIPITATION CHART ============== */
.fws-precip-chart-container {
    padding: 10px 0;
}
.fws-precip-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 80px;
    padding: 0 4px;
}
.fws-precip-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.fws-precip-bar {
    width: 100%;
    max-width: 30px;
    background: rgba(100,181,246,0.5);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.5s ease;
}
.fws-precip-val {
    font-size: 0.6rem;
    opacity: 0.6;
}
.fws-precip-time {
    font-size: 0.6rem;
    opacity: 0.5;
}
.fws-precip-labels {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px 0;
}

/* ============== 16-DAY FORECAST ============== */
.fws-daily-container { }
.fws-daily-row {
    display: flex;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 8px;
}
.fws-daily-row:last-child { border-bottom: none; }
.fws-daily-day {
    width: 48px;
    font-size: 0.85rem;
    font-weight: 500;
}
.fws-daily-date {
    font-size: 0.65rem;
    opacity: 0.5;
}
.fws-daily-icon { font-size: 1.2rem; width: 30px; text-align: center; }
.fws-daily-precip-prob {
    width: 36px;
    font-size: 0.7rem;
    color: #90CAF9;
    text-align: center;
}
.fws-daily-temp-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fws-daily-temp-low {
    width: 32px;
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: right;
}
.fws-daily-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}
.fws-daily-bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #64B5F6, #FFA726);
    transition: left 0.5s, width 0.5s;
}
.fws-daily-temp-high {
    width: 32px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============== DETAILS GRID ============== */
.fws-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.fws-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: background 0.2s;
}
.fws-detail-item:hover { background: rgba(255,255,255,0.1); }
.fws-detail-icon { font-size: 1.4rem; margin-top: 2px; }
.fws-detail-info { flex: 1; }
.fws-detail-label {
    font-size: 0.72rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.fws-detail-value {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
}
.fws-detail-desc {
    font-size: 0.72rem;
    opacity: 0.5;
    margin-top: 2px;
}

/* ============== AIR QUALITY ============== */
.fws-aqi-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.fws-aqi-circle {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.fws-aqi-circle svg {
    width: 100%;
    height: 100%;
}
.fws-aqi-inner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.fws-aqi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.fws-aqi-label {
    font-size: 0.72rem;
    opacity: 0.6;
    margin-top: 2px;
}
.fws-aqi-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-width: 200px;
}
.fws-aqi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    gap: 2px;
}
.fws-aqi-name { font-size: 0.65rem; opacity: 0.5; text-transform: uppercase; }
.fws-aqi-val { font-size: 1rem; font-weight: 600; }

/* ============== SUNRISE/SUNSET ============== */
.fws-sun-arc-container {
    padding: 10px 0;
}
.fws-sun-arc-svg {
    width: 100%;
    height: 80px;
}
.fws-sun-times {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
}
.fws-sun-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.fws-sun-emoji { font-size: 1.3rem; }
.fws-sunrise-time, .fws-sunset-time, .fws-daylight-duration {
    font-size: 1.1rem;
    font-weight: 600;
}
.fws-sun-label {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============== MAPS ============== */
.fws-map-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}
.fws-map-tabs::-webkit-scrollbar { display: none; }
.fws-map-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.fws-map-tab:hover { background: rgba(255,255,255,0.18); }
.fws-map-tab.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.35);
}
.fws-map-panel {
    display: none;
}
.fws-map-panel.active {
    display: block;
}
.fws-map-frame {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.fws-map-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ============== NEARBY CITIES ============== */
.fws-nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.fws-nearby-city {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}
.fws-nearby-city:hover { background: rgba(255,255,255,0.12); }
.fws-nearby-icon { font-size: 1.2rem; }
.fws-nearby-name { flex: 1; font-size: 0.85rem; font-weight: 500; }
.fws-nearby-temp { font-size: 1.1rem; font-weight: 600; }
.fws-nearby-cond { display: none; }

/* ============== GEOGRAPHIC INFO ============== */
.fws-geo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.fws-geo-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
}
.fws-geo-label { font-size: 0.72rem; opacity: 0.5; }
.fws-geo-value { font-size: 0.9rem; font-weight: 600; }

/* ============== SEO CONTENT ============== */
.fws-seo-content {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
}
.fws-seo-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: white;
}
.fws-seo-content h2:first-child { margin-top: 0; }
.fws-seo-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 22px 0 10px;
    color: rgba(255,255,255,0.95);
}
.fws-seo-content p {
    margin: 0 0 14px;
    font-size: 0.92rem;
}
.fws-seo-content strong { color: white; }

/* ============== BOTTOM NAVIGATION ============== */
.fws-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.fws-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 500;
    transition: color 0.2s;
}
.fws-bottom-nav a:hover,
.fws-bottom-nav a.active { color: white; }
.fws-bottom-nav a svg { width: 20px; height: 20px; }

/* ============== ARCHIVE PAGE ============== */
.fws-archive-header {
    padding: 30px 0 20px;
    text-align: center;
}
.fws-archive-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fws-archive-desc {
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 0 0 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.fws-archive-search {
    max-width: 500px;
    margin: 0 auto;
}

/* Continent Filters */
.fws-continent-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 16px;
    scrollbar-width: none;
    justify-content: center;
    flex-wrap: wrap;
}
.fws-continent-filters::-webkit-scrollbar { display: none; }
.fws-filter-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}
.fws-filter-btn:hover { background: rgba(255,255,255,0.2); }
.fws-filter-btn.active {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.4);
}
.fws-filter-count {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Cities Grid */
.fws-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding-bottom: 20px;
}
.fws-city-card {
    position: relative;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 18px 14px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
}
.fws-city-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.fws-city-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.fws-city-card-country {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 10px;
}
.fws-city-card-temp {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}
.fws-city-card-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.5rem;
}
.fws-city-card-condition {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 4px;
}

.fws-archive-seo {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 24px;
    margin: 20px 0;
}
.fws-archive-seo h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}
.fws-archive-seo p {
    font-size: 0.88rem;
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .fws-hero-section { flex-direction: column; min-height: auto; }
    .fws-hero-right { width: 160px; margin: -20px auto 0; }
    .fws-city-name { font-size: 1.6rem; }
    .fws-temp-main { font-size: 4.5rem; }
    .fws-details-grid { grid-template-columns: 1fr 1fr; }
    .fws-nearby-grid { grid-template-columns: 1fr; }
    .fws-aqi-content { flex-direction: column; align-items: center; }
    .fws-aqi-grid { width: 100%; }
    .fws-cities-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .fws-continent-filters { justify-content: flex-start; flex-wrap: nowrap; }
}

@media (max-width: 480px) {
    .fws-container { padding: 0 12px; }
    .fws-temp-main { font-size: 3.8rem; }
    .fws-card { padding: 14px; border-radius: 16px; }
    .fws-details-grid { grid-template-columns: 1fr; }
    .fws-geo-grid { grid-template-columns: 1fr; }
    .fws-aqi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .fws-hero-section { padding: 30px 0 20px; }
    .fws-hero-right { width: 240px; }
    .fws-temp-main { font-size: 6.5rem; }
}

/* ============== SCROLL ANIMATIONS ============== */
.fws-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}
.fws-card:nth-child(1) { animation-delay: 0s; }
.fws-card:nth-child(2) { animation-delay: 0.05s; }
.fws-card:nth-child(3) { animation-delay: 0.1s; }
.fws-card:nth-child(4) { animation-delay: 0.15s; }
.fws-card:nth-child(5) { animation-delay: 0.2s; }
.fws-card:nth-child(6) { animation-delay: 0.25s; }

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

/* Hero fade in */
.fws-hero-section {
    animation: heroFadeIn 0.8s ease;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   ADDITIONAL STYLES v7.0 - Template Sync
   ======================================== */

/* Precipitation Chart */
.fws-precip-chart-container {
    padding: 12px 0;
}
.precip-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 90px;
    padding: 0 4px;
}
.precip-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.precip-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(to top, rgba(100,181,246,0.4), rgba(100,181,246,0.8));
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.5s ease;
}
.precip-value {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}
.precip-chart-labels {
    display: flex;
    gap: 6px;
    padding: 6px 4px 0;
}
.precip-label {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}
.no-precip {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Pollutants (Air Quality) */
.fws-aqi-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.fws-aqi-circle {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.fws-aqi-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.fws-aqi-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}
.fws-aqi-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    max-width: 80px;
}
.fws-aqi-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    min-width: 200px;
}
.fws-pollutant {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.fws-pollutant-name {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.fws-pollutant-val {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.fws-pollutant-bar-bg {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.fws-pollutant-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease, background 0.3s;
    width: 0;
}

/* SEO Content Toggle */
.fws-seo-content .seo-article {
    max-height: 300px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}
.fws-seo-content .seo-article.expanded {
    max-height: none;
}
.fws-seo-content .seo-article::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
    transition: opacity 0.3s;
}
.fws-seo-content .seo-article.expanded::after {
    opacity: 0;
}
.fws-seo-content .seo-article h2,
.fws-seo-content .seo-article h3,
.fws-seo-content .seo-article h4 {
    color: white;
    margin: 20px 0 10px;
}
.fws-seo-content .seo-article h2 { font-size: 1.3rem; }
.fws-seo-content .seo-article h3 { font-size: 1.1rem; }
.fws-seo-content .seo-article p { margin-bottom: 12px; }
.fws-seo-content .seo-article ul,
.fws-seo-content .seo-article ol {
    margin: 10px 0 10px 20px;
    color: rgba(255,255,255,0.8);
}
.fws-seo-content .seo-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.fws-seo-content .seo-article th,
.fws-seo-content .seo-article td {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    text-align: left;
}
.fws-seo-content .seo-article th {
    background: rgba(255,255,255,0.08);
    font-weight: 600;
}
.fws-seo-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 12px;
    transition: background 0.2s;
}
.fws-seo-toggle:hover {
    background: rgba(255,255,255,0.14);
}

/* Alerts */
.fws-alerts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 0.4s ease;
}
.alert-rain { border-left: 3px solid #42A5F5; }
.alert-uv { border-left: 3px solid #FFA726; }
.alert-wind { border-left: 3px solid #78909C; }
.alert-snow { border-left: 3px solid #B3E5FC; }
.alert-icon { font-size: 1.2rem; }

/* Nearby Cards (JS-rendered) */
.fws-nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.nearby-card {
    display: block;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: background 0.2s, transform 0.2s;
}
.nearby-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}
.nearby-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.nearby-country {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}
.nearby-temp {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Bottom Nav Items */
.bottom-nav-item, .fws-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,0.6);
    font-size: 0.68rem;
    padding: 8px 4px;
    transition: color 0.2s;
    text-decoration: none;
    flex: 1;
}
.bottom-nav-item.active, .fws-bottom-nav a.active {
    color: white;
}
.bottom-nav-item:hover { color: rgba(255,255,255,0.85); opacity: 1; }
.bnav-icon { font-size: 1.2rem; }

/* Sun Times */
.fws-sun-arc-container {
    padding: 12px 0 8px;
}
.fws-sun-times {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}
.fws-sun-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.fws-sun-emoji { font-size: 1.3rem; }
.fws-sun-item span:nth-child(2) {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}
.fws-sun-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

/* Geo Grid */
.fws-geo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.fws-geo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}
.fws-geo-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.fws-geo-value {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Archive: City Card Weather section */
.fws-city-card-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.fws-city-card-weather .city-weather-icon {
    font-size: 1.3rem;
}
.fws-city-card-weather .city-temp {
    font-size: 1.4rem;
    font-weight: 300;
    color: white;
}
.city-condition, .fws-city-card-condition {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* Archive filter bar */
.fws-archive-filter-bar input::placeholder {
    color: rgba(255,255,255,0.5);
}
.fws-archive-filter-bar input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}

/* Map frame responsive */
.fws-map-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.fws-map-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Loading indicator */
#loading-indicator .fws-loading {
    background: rgba(0,0,0,0.5);
    padding: 20px 30px;
    border-radius: 16px;
}

@media (max-width: 480px) {
    .fws-aqi-content { flex-direction: column; align-items: center; }
    .fws-aqi-grid { min-width: 100%; }
    .fws-geo-grid { grid-template-columns: 1fr; }
    .fws-nearby-grid { grid-template-columns: repeat(2, 1fr); }
}
