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

/* Body */
body{
    font-family: 'Space Grotesk', sans-serif;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:30px;

    background:
    radial-gradient(circle at top left,#7c3aed 0%,transparent 35%),
    radial-gradient(circle at bottom right,#06b6d4 0%,transparent 35%),
    linear-gradient(135deg,#08131f,#0b1e2d,#08131f);

    color:white;
}

.app{
    width:100%;
    max-width:1300px;

    padding:45px;

    border-radius:35px;

    background: linear-gradient(
    180deg,
    rgba(255,255,255,.12),
    rgba(255,255,255,.05)
);

border: 1px solid rgba(255,255,255,.12);

    
    border:1px solid rgba(255,255,255,.10);

    box-shadow:

    0 20px 60px rgba(0,0,0,.35),

    inset 0 1px 1px rgba(255,255,255,.08);
}

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

.header h1{
    font-size:2rem;
}

.location-info{
    text-align:right;
}

.location-info p:first-child{
    font-weight:600;
    font-size:1rem;
}

.location-info p:last-child{
    font-size:.9rem;
    opacity:.8;
    margin-top:4px;
}
    .hero{
    text-align:center;
    padding:60px 20px;
}

.weather-icon{
    display:flex;
    justify-content:center;
    margin-bottom:20px;
}

.weather-icon svg{
    width:70px;
    height:70px;
    stroke-width:1.8;
    color:#FFD54A;
}

.temperature{
    font-size:6rem;
    font-weight:700;
    line-height:1;
}

.condition{
    font-size:1.6rem;
    margin-top:12px;
    font-weight:500;
}

.feels-like{
    margin-top:8px;
    opacity:.75;
    font-size:1rem;
}

    #aqi {
    margin-top: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);

}

.stat-card{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    padding:25px;
    text-align:center;
    background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.06)
);

border:1px solid rgba(255,255,255,.10);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-6px);
    background:rgba(255,255,255,.12);
}

.stat-card h3{
    font-size:1.8rem;
    margin-bottom:20px;
}

.stat-card p{
    opacity:.75;
    font-size:.95rem;
}
.hourly,
.weekly{
    margin-top:50px;
}

.hourly h2,
.weekly h2{
    font-size:1.5rem;
    margin-bottom:20px;
}
/* Hourly Forecast */

.hourly{
    margin-top:60px;
}

.hourly h2{
    margin-bottom:20px;
}

.hourly-scroll{
    display:flex;
    gap:22px;
    overflow-x:auto;
    padding:10px 0;
    scrollbar-width:none;
}

.hourly-scroll::-webkit-scrollbar{
    display:none;
}

.hour-card{
    min-width: 125px;
    height:160px;

    display:flex;
    flex-direction:column;
    justify-content:space-evenly;
    align-items:center;

    background:rgba(255,255,255,0.10);
    background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.06)
);

border:1px solid rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,0.08);
    border-radius:22px;

    flex-shrink:0;
}

.hour-time{
    font-size:0.95rem;
    font-weight:600;
    opacity:.9;
}

.hour-icon{
    font-size:2.4rem;
}

.hour-temp{
    font-size:1.45rem;
    font-weight:700;
}

.hour-card:hover{
    transform:translateY(-6px);
}

.hour-card svg{
    width:32px;
    height:32px;
    margin:15px auto;
    color:#FFD54A;
}

.hour-card h3{
    margin-top:10px;
    font-size:1.5rem;
}
/* Divider */

.divider{
    border:none;
    height:1px;
    background:rgba(255,255,255,.08);
    margin:45px 0;
}
.top-section{
    display:grid;
    grid-template-columns:1.3fr .9fr;
    gap:50px;
    align-items:center;

    min-height:520px;
}

.hero{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
    align-content:center;
}

.stat-card{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);

    background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.06)
);

border:1px solid rgba(255,255,255,.10);

    border-radius:22px;

    padding:24px;

    text-align:center;

    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-5px);

    background:rgba(255,255,255,.12);
}
#weather-updated{
    margin-top:4px;
    font-size:.85rem;
    opacity:.8;
    cursor:pointer;
    transition:.25s;
    user-select:none;
}

#weather-updated:hover{
    opacity:1;
    color:#8fd3ff;
}
/* Weekly Forecast */

.weekly{
    margin-top:60px;
}

.weekly-scroll{

    display:flex;

    gap:22px;

    overflow-x:auto;

    padding:10px 0;

    scrollbar-width:none;

}

.weekly-scroll::-webkit-scrollbar{

    display:none;

}

.week-card{

    min-width:135px;

    height: 195px;

    display:flex;

    flex-direction:column;

    justify-content:space-evenly;

    align-items:center;

    background:rgba(255,255,255,.10);

    background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.06)
);

border:1px solid rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    flex-shrink:0;

    transition:.3s;

}

.week-card:hover{

    transform:translateY(-6px);

}

.week-day{

    font-size: 1rem;

    font-weight: 700;

}

.week-icon svg{

    width:40px;

    height:34px;

    color:#FFD54A;

}

.week-temp{

    font-size:1.15rem;

    font-weight:600;

}

.week-date{
    font-size: .96rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    margin-bottom: 10px;
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.swipe-hint{
    display:none;
}


@media (max-width: 768px) {



.app{
    padding:20px;
    border-radius:24px;
}
.header{
    flex-direction:column;
    gap:15px;
    align-items:flex-start;
}

.location-info{
    text-align:left;
}

.header h1{
    font-size:2rem;
}

.top-section{
    grid-template-columns:1fr;
    gap:35px;
    min-height:auto;
}

.hero{
    padding:20px 0;
}

.stats{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}

.swipe-hint{
    display:block;
    font-size:.8rem;
    color:rgba(255,255,255,.55);
}

.hour-card{
    min-width:100px;
    height:145px;
}

.week-card{
    min-width:110px;
    height:180px;
}
}

.footer{
    margin-top:70px;
    padding-top:28px;

    border-top:1px solid rgba(255,255,255,.08);

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

.footer-left{
    font-size:.95rem;
    color:rgba(255,255,255,.75);
}

.developer strong{
    color:white;
}

.footer-center{
    display:flex;
    gap:20px;
}

.footer-center a{
    width:48px;
    height:48px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:white;

    transition:.25s;
}

.footer-center a:hover{
    background:#7c3aed;
    transform:translateY(-3px);
}

.footer-center svg{
    width:40px;
    height:40px;
}

.footer-right{
    font-size:.9rem;
    color:rgba(255,255,255,.6);
}
.tagline{
    font-size:.9rem;
    color:rgba(255,255,255,.65);
    margin-top:6px;
    font-weight:500;
}