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

:root {
    --bg: #07111f;
    --bg-2: #0e1c30;
    --text: #f7fbff;
    --muted: #9fb0c7;
    --card: rgba(255, 255, 255, 0.09);
    --card-border: rgba(255, 255, 255, 0.14);
    --accent: #6ee7ff;
    --accent-2: #8b7cff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

body.light {
    --bg: #edf5ff;
    --bg-2: #dcecff;
    --text: #102033;
    --muted: #61728a;
    --card: rgba(255, 255, 255, 0.66);
    --card-border: rgba(255, 255, 255, 0.8);
    --shadow: 0 25px 60px rgba(62, 92, 130, 0.18);
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(110, 231, 255, 0.16), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(139, 124, 255, 0.18), transparent 30%),
        linear-gradient(135deg, var(--bg), var(--bg-2));
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.ambient {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .22;
    pointer-events: none;
    animation: float 9s ease-in-out infinite alternate;
}

.ambient-one {
    top: -140px;
    right: -100px;
    background: #5ee7ff;
}

.ambient-two {
    bottom: -170px;
    left: -120px;
    background: #8877ff;
    animation-delay: -3s;
}

@keyframes float {
    to { transform: translate3d(25px, 20px, 0) scale(1.08); }
}

.app-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 30px;
    position: relative;
    z-index: 1;
}

.topbar,
.brand,
.top-actions,
.search-wrap,
.location-line,
.card-topline,
.current-main,
.mini-summary,
.stats-grid,
.sun-row,
.tip-card,
footer {
    display: flex;
}

.topbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 52px;
}

.brand {
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #07111f;
    background: linear-gradient(135deg, var(--accent), #d7fbff);
    box-shadow: 0 10px 30px rgba(110, 231, 255, .2);
}

.brand strong {
    display: block;
    font-size: 1.08rem;
}

.brand small {
    color: var(--muted);
    font-size: .72rem;
}

.top-actions {
    gap: 9px;
}

.icon-button {
    width: 43px;
    height: 43px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text);
    background: var(--card);
    backdrop-filter: blur(18px);
    transition: transform .2s, background .2s;
}

.icon-button:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.15);
}

.hero {
    margin-bottom: 24px;
}

.hero-copy {
    max-width: 690px;
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .68rem;
    font-weight: 800;
}

.hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(2.5rem, 6vw, 5.3rem);
    line-height: .95;
    letter-spacing: -.055em;
}

.hero p {
    color: var(--muted);
    font-size: 1rem;
}

.search-wrap {
    width: min(680px, 100%);
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 7px 8px 7px 20px;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background: rgba(255,255,255,.075);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.search-leading {
    color: var(--muted);
}

#search_inputbox {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 1rem;
}

#search_inputbox::placeholder {
    color: var(--muted);
}

#search_icon_container {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    color: #07111f;
    background: linear-gradient(135deg, var(--accent), #b7f4ff);
    transition: transform .2s, box-shadow .2s;
}

#search_icon_container:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(110,231,255,.24);
}

.status-message {
    min-height: 22px;
    padding: 9px 4px 0;
    color: var(--muted);
    font-size: .82rem;
}

.weather-grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 18px;
}

.glass-card {
    border: 1px solid var(--card-border);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.current-card {
    min-height: 410px;
    padding: 28px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.current-card::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(110,231,255,.11);
    filter: blur(5px);
    pointer-events: none;
}

.card-topline {
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.location-line {
    align-items: center;
    gap: 9px;
    font-size: 1.25rem;
    font-weight: 800;
}

.location-line i {
    color: var(--accent);
}

.muted {
    color: var(--muted);
    font-size: .78rem;
    margin-top: 6px;
}

.weather-badge {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(110,231,255,.1);
    border: 1px solid rgba(110,231,255,.18);
    font-size: .72rem;
    text-transform: capitalize;
}

.current-main {
    min-height: 235px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.weather-visual {
    text-align: center;
}

.weather-icon {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.13), transparent 68%);
}

.weather-icon i {
    font-size: 6rem;
    color: #f9d56e;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,.25));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    50% { transform: translateY(-7px); }
}

.condition {
    color: var(--muted);
    text-transform: capitalize;
    font-size: .9rem;
}

.temperature {
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: .85;
    letter-spacing: -.08em;
    font-weight: 800;
}

.temperature sup {
    font-size: 1.3rem;
    vertical-align: top;
    position: relative;
    top: 10px;
    letter-spacing: 0;
}

.temperature-block > p {
    margin-top: 15px;
    color: var(--muted);
    font-size: .85rem;
}

.temperature-block strong {
    color: var(--text);
}

.mini-summary {
    gap: 10px;
    border-top: 1px solid var(--card-border);
    padding-top: 18px;
}

.mini-summary > div {
    flex: 1;
}

.mini-summary span,
.stat-label {
    display: block;
    color: var(--muted);
    font-size: .7rem;
}

.mini-summary strong {
    display: block;
    margin-top: 5px;
    font-size: .92rem;
}

.stats-card {
    padding: 28px;
    border-radius: 30px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin-top: 4px;
    font-size: 1.25rem;
}

.section-heading > i {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.stat {
    min-height: 115px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
}

.stat-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    margin-bottom: 13px;
    color: var(--accent);
    background: rgba(110,231,255,.1);
}

.stat strong {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
}

.sun-row {
    margin-top: 11px;
    gap: 11px;
}

.sun-row > div {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
}

.sun-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffd76a;
    background: rgba(255,215,106,.1);
}

.sun-icon.sunset {
    color: #a99aff;
    background: rgba(169,154,255,.1);
}

.sun-row small {
    display: block;
    color: var(--muted);
    font-size: .66rem;
}

.sun-row strong {
    display: block;
    margin-top: 2px;
    font-size: .8rem;
}

.tip-card {
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    padding: 17px 20px;
    border-radius: 22px;
}

.tip-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: var(--accent);
    background: rgba(110,231,255,.1);
}

.tip-card strong {
    font-size: .85rem;
}

.tip-card p {
    color: var(--muted);
    margin-top: 3px;
    font-size: .76rem;
}

footer {
    justify-content: space-between;
    margin-top: 20px;
    color: var(--muted);
    font-size: .68rem;
}

@media (max-width: 850px) {
    .weather-grid {
        grid-template-columns: 1fr;
    }

    .current-card {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .app-shell {
        width: min(100% - 22px, 520px);
        padding-top: 18px;
    }

    .topbar {
        margin-bottom: 38px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .current-card,
    .stats-card {
        padding: 20px;
        border-radius: 24px;
    }

    .current-main {
        min-height: 220px;
        gap: 8px;
    }

    .weather-icon {
        width: 110px;
        height: 110px;
    }

    .weather-icon i {
        font-size: 4.5rem;
    }

    .temperature {
        font-size: 5rem;
    }

    .mini-summary strong {
        font-size: .78rem;
    }

    .sun-row {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 410px) {
    .current-main {
        flex-direction: column;
        padding: 20px 0;
    }

    .temperature-block {
        text-align: center;
    }

    .temperature {
        font-size: 4.6rem;
    }
}
/* =========================================
   REALISTIC LIVE WEATHER EFFECTS
   ========================================= */

#weather-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Make sure your actual website stays above effects */
.app-shell {
    position: relative;
    z-index: 5;
}

/* RAIN */
.rain-drop {
    position: absolute;
    top: -30px;
    width: 2px;
    height: 25px;
    background: linear-gradient(
        transparent,
        rgba(180, 225, 255, 0.9)
    );
    animation: rainFall linear infinite;
    transform: rotate(12deg);
}

@keyframes rainFall {
    from {
        transform: translateY(-50px) rotate(12deg);
    }

    to {
        transform: translateY(110vh) rotate(12deg);
    }
}

/* SUNLIGHT */
.sun-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 220, 90, 0.45) 0%,
        rgba(255, 190, 50, 0.18) 35%,
        transparent 70%
    );
    animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

/* CLOUDS */
.weather-cloud {
    position: absolute;
    width: 180px;
    height: 60px;
    background: rgba(220, 235, 245, .18);
    border-radius: 100px;
    filter: blur(2px);
    animation: cloudMove 25s linear infinite;
}

@keyframes cloudMove {
    from {
        transform: translateX(-250px);
    }

    to {
        transform: translateX(120vw);
    }
}

/* SNOW */
.snow-flake {
    position: absolute;
    top: -20px;
    color: white;
    font-size: 18px;
    animation: snowFall linear infinite;
    text-shadow: 0 0 8px white;
}

@keyframes snowFall {
    from {
        transform: translateY(-30px) rotate(0deg);
    }

    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* LIGHTNING */
.lightning-flash {
    position: fixed;
    inset: 0;
    background: rgba(220, 240, 255, .8);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.lightning-active {
    animation: lightningFlash .35s ease;
}

@keyframes lightningFlash {
    0%, 100% {
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    30% {
        opacity: 0;
    }

    45% {
        opacity: .55;
    }

    60% {
        opacity: 0;
    }
}
