:root {
    --background: #071218;
    --text: #eef7f4;
    --text-secondary: rgba(238, 247, 244, 0.72);
    --text-muted: rgba(238, 247, 244, 0.48);
    --primary: #CCCCFF;
    --glass: rgba(255, 255, 255, 0.075);
    --glass-light: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.18);
    --radius-large: 28px;
    --radius-medium: 20px;
}


html {
    font-size: 16px;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    background: var(--background);
}


.weather-page {
    position: relative;
    width: min(1200px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 0 70px;
    isolation: isolate;
}


.weather-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    pointer-events: none;
}


.weather-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 15, 18, 0.32);
    z-index: -2;
    pointer-events: none;
}


.weather-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}


.weather-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 190px;
    padding: 38px 42px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(30px) saturate(145%);
    -webkit-backdrop-filter: blur(30px) saturate(145%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-large);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

    .weather-header > div:first-child {
        position: relative;
        z-index: 2;
    }


.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}


.weather-header h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 650;
    letter-spacing: -0.045em;
}


.weather-header p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}


.header-dot {
    margin: 0 5px;
    color: var(--primary);
}


.weather-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.30);
    pointer-events: none;
}


.header-glow {
    position: absolute;
    right: -100px;
    bottom: -150px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(117, 215, 177, 0.12), transparent 70% );
    pointer-events: none;
}


.current-weather {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    margin-top: 28px;
    padding: 42px;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(30px) saturate(145%);
    -webkit-backdrop-filter: blur(30px) saturate(145%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-large);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}


    .current-weather::before {
        content: "";
        position: absolute;
        top: 0;
        left: 30px;
        right: 30px;
        height: 1px;
        background: rgba(255, 255, 255, 0.28);
        pointer-events: none;
    }


.current-label {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}


.current-location {
    color: var(--text-secondary);
    font-size: 1rem;
}


.current-temperature {
    margin-top: 12px;
    color: var(--text);
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.09em;
}


    .current-temperature span {
        color: var(--text-secondary);
        font-size: 3rem;
        vertical-align: top;
    }


.current-description {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}


.current-icon {
    font-size: 1.5rem;
    filter: drop-shadow( 0 3px 8px rgba(0, 0, 0, 0.18) );
}


.current-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 0;
    margin-top: 10px;
}


.current-detail {
    padding: 18px 22px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}


    .current-detail:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.10);
    }


    .current-detail:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }


.detail-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}


.current-detail strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 500;
}


.forecast-day {
    margin-top: 48px;
}


.date-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}


.date-title {
    display: flex;
    align-items: center;
    gap: 10px;
}


.date-header h2 {
    margin: 0;
    padding: 7px 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}


.forecast-resolution {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.date-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}


.hourly-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}


.weather-card {
    position: relative;
    min-width: 0;
    min-height: 225px;
    padding: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-medium);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: none;
}


    .weather-card:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.16);
        transform: none;
    }


.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.time {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.86rem;
    font-weight: 600;
}


.weather-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    filter: drop-shadow( 0 3px 7px rgba(0, 0, 0, 0.16) );
}


.temperature {
    margin-top: 22px;
    color: var(--text);
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.07em;
}


    .temperature span {
        margin-left: 2px;
        color: var(--text-secondary);
        font-size: 1.6rem;
        font-weight: 400;
        vertical-align: top;
    }


.weather-name {
    margin-top: 10px;
    margin-bottom: 22px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}


.weather-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 5px;
    padding: 15px 0 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}


.info-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.info-label {
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}


.info-value {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.card-shine {
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.20), transparent );
    pointer-events: none;
}


.today-section {
    margin-top: 55px;
}


.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px;
}


.section-label {
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}


.section-heading h2 {
    margin: 2px 0 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}


.section-description {
    color: var(--text-muted);
    font-size: 0.8rem;
}


.temperature-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(40px, 1fr));
    height: 220px;
    padding: 25px 20px 15px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-medium);
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.17);
}


.chart-point {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}


.chart-time {
    color: var(--text-muted);
    font-size: 0.68rem;
}


.chart-icon {
    margin-top: 7px;
    font-size: 1rem;
}


.chart-bar-area {
    position: relative;
    flex: 1;
    width: 100%;
    margin: 10px 0;
}


    .chart-bar-area::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background: rgba(255, 255, 255, 0.07);
    }


.chart-dot {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, 50%);
    background: var(--primary);
    border: 2px solid rgba(20, 35, 38, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(117, 215, 177, 0.10);
}


.chart-temperature {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
}


a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.12);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.32);
    }


@media (max-width: 760px) {

    .weather-page {
        width: min(100% - 28px, 600px);
        padding-top: 20px;
    }


    .weather-header {
        min-height: auto;
        padding: 30px;
        border-radius: 22px;
    }


    .current-weather {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }


    .current-temperature {
        font-size: 5rem;
    }


    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}


@media (max-width: 520px) {

    .weather-page {
        width: calc(100% - 20px);
        padding-bottom: 40px;
    }


    .weather-header {
        padding: 25px 22px;
    }


        .weather-header h1 {
            font-size: 2rem;
        }


        .weather-header p {
            font-size: 0.82rem;
        }


    .forecast-day {
        margin-top: 38px;
    }


    .date-header {
        gap: 8px;
    }


    .date-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }


    .date-header h2 {
        font-size: 0.82rem;
    }


    .forecast-resolution {
        font-size: 0.58rem;
    }


    .weather-card {
        min-height: auto;
        padding: 20px;
    }


    .current-weather {
        padding: 25px 22px;
        border-radius: 22px;
    }


    .current-temperature {
        font-size: 4.5rem;
    }


        .current-temperature span {
            font-size: 2rem;
        }


    .current-details {
        gap: 0;
    }


    .current-detail {
        padding: 14px 12px;
    }


    .temperature-chart {
        margin-right: -10px;
        margin-left: -10px;
        border-radius: 14px;
    }
}

@media (max-width: 900px) {
    .future-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 600px) {
    .future-days {
        grid-template-columns: 1fr;
    }
}


@media (prefers-reduced-motion: reduce) {

    .weather-card {
        transition: none;
    }

        .weather-card:hover {
            transform: none;
        }
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.future-day {
    position: relative;
    min-width: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}


.future-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.future-day-name {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.82rem;
    font-weight: 600;
}


.future-day-icon {
    font-size: 1.5rem;
}


.future-day-temperature {
    margin-top: 22px;
    color: white;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.06em;
}


    .future-day-temperature span {
        color: rgba(255, 255, 255, 0.55);
        font-size: 1.3rem;
        vertical-align: top;
    }


.future-day-weather {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}


.future-day-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}


.future-day-detail {
    display: flex;
    flex-direction: column;
}


.future-day-detail-label {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}


.future-day-detail-value {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
}