﻿
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;600;700&display=swap');

/* ── Pagina wrapper ── */
.wx-page {
    font-family: 'Outfit', sans-serif;
    min-height: 520px;
    margin-top: 50px;
    background: linear-gradient(160deg, #0a1f44 0%, #0d3a6e 35%, #0e4d8f 65%, #1a6bb5 100%);
    padding: 28px 24px 36px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 50px;
}

    /* Ambient glow */
    .wx-page::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(ellipse 70% 55% at 80% 10%, rgba(100,200,255,0.18), transparent), radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0,120,212,0.22), transparent);
    }

    /* Dot pattern */
    .wx-page::after {
        margin-top: 10px;
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
        background-size: 28px 28px;
        
    }

/* ── City bar ── */
.wx-city-bar {
    margin-top: 50px;
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.wx-city-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 5px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

    .wx-city-btn:hover {
        background: rgba(255,255,255,0.13);
        color: #fff;
    }

    .wx-city-btn.active {
        background: rgba(255,255,255,0.18);
        border-color: rgba(255,255,255,0.35);
        color: #fff;
    }

/* ── Main card ── */
.wx-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.wx-location {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    margin-bottom: 3px;
    letter-spacing: 0.04em;
}

.wx-city-name {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 2px;
}

.wx-date {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    margin-bottom: 16px;
}

.wx-temp-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.wx-temp-big {
    font-size: 72px;
    font-weight: 200;
    color: #fff;
    line-height: 1;
}

.wx-temp-unit {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    align-self: flex-start;
    margin-top: 14px;
}

.wx-desc {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.72);
    margin-top: 8px;
    text-transform: capitalize;
}

/* Condition tag */
.wx-cond-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(100,200,255,0.1);
    border: 1px solid rgba(100,200,255,0.22);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 11px;
    color: rgba(180,230,255,0.8);
    margin-top: 8px;
}

.wx-cond-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #64c8ff;
    animation: wxCondPulse 2s infinite;
}

@keyframes wxCondPulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: 0.35
    }
}

/* ── Detail pills ── */
.wx-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.wx-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 7px 13px;
}

.wx-pill-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wx-pill-val {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.wx-pill-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.42);
}

/* ── Icon wrap ── */
.wx-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}

.wx-icon-big {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .wx-icon-big svg {
        width: 80px;
        height: 80px;
    }

/* ── 5-day forecast ── */
.wx-forecast-section {
    position: relative;
    z-index: 2;
}

.wx-forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.wx-day {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    cursor: default;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    outline: none;
}

    .wx-day:hover,
    .wx-day:focus {
        background: rgba(255,255,255,0.13);
        border-color: rgba(255,255,255,0.25);
        transform: translateY(-2px);
    }

.wx-day-lbl {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wx-day-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
}

    .wx-day-icon svg {
        width: 34px;
        height: 34px;
    }

.wx-day-hi {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.wx-day-lo {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.38);
}

.wx-day-bar {
    height: 3px;
    border-radius: 2px;
    margin-top: 9px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
}

.wx-day-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(100,200,255,0.6), rgba(100,200,255,0.85));
    animation: wxBarReveal 0.8s ease both;
}

@keyframes wxBarReveal {
    from {
        width: 0
    }

    to {
    }
}

/* ── Error panel ── */
.wx-error-panel {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
}

.wx-error-icon {
    width: 64px;
    height: 64px;
    background: rgba(100,200,255,0.08);
    border: 1px solid rgba(100,200,255,0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wx-error-panel h3 {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 8px;
}

.wx-error-panel p {
    font-size: 13px;
    color: rgba(255,255,255,0.48);
    line-height: 1.6;
    margin-bottom: 24px;
}

.wx-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(0,120,212,0.65);
    border: 1px solid rgba(0,150,255,0.4);
    border-radius: 12px;
    padding: 11px 24px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

    .wx-btn:hover {
        background: rgba(0,120,212,0.9);
        transform: translateY(-1px);
    }

/* ── Responsive ── */
@media (max-width: 700px) {
    .wx-main {
        grid-template-columns: 1fr;
    }

    .wx-icon-wrap {
        display: none;
    }

    .wx-forecast {
        grid-template-columns: repeat(5, minmax(0,1fr));
        gap: 6px;
    }

    .wx-day {
        padding: 10px 6px;
    }

    .wx-day-hi {
        font-size: 14px;
    }

    .wx-temp-big {
        font-size: 54px;
    }
}

@media (max-width: 480px) {
    .wx-forecast {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .wx-page {
        padding: 20px 16px 28px;
    }
}
