/*
==========================================================
FunYatra Weather Dashboard
Version : 2.0
Premium UI
Part 1
==========================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{

    --primary:#2563eb;
    --primary-light:#60a5fa;
    --secondary:#38bdf8;
    --success:#22c55e;
    --warning:#f59e0b;
    --danger:#ef4444;
    --purple:#8b5cf6;
    --text:#1e293b;
    --text-light:#64748b;
    --border:#e5e7eb;
    --card:#ffffff;
    --bg:#eef5fb;
    --radius:22px;
    --shadow:       0 12px 30px rgba(15,23,42,.08);
    --shadow-hover:        0 25px 50px rgba(37,99,235,.18);
    --transition:.35s ease;
    --weather-color:#2563eb;
}
/*=======================================================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
/*=======================================================*/
html{
    scroll-behavior:smooth;
}
/*=======================================================*/
body{
    background:
        linear-gradient(
            180deg,
            #edf4fb,
            #f8fbff
        );
    font-family:"Poppins",
        sans-serif;
    color:var(--text);
}
/*=======================================================*/
::-webkit-scrollbar{
    width:10px;
}
::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:50px;
}
::-webkit-scrollbar-thumb:hover{
    background:#94a3b8;
}
/*=======================================================*/
#weather-card{
    max-width:1400px;
    margin:35px auto;
    border-radius:30px;
    overflow:hidden;
    background:
        rgba(255,255,255,.82);
    backdrop-filter:blur(16px);
    border:
        1px solid rgba(255,255,255,.45);
    box-shadow:
        0 30px 70px rgba(15,23,42,.12);
    transition:var(--transition);
}
/*=======================================================*/
.weather-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:30px 35px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );
    color:white;
    position:relative;
    overflow:hidden;
}
/*=======================================================*/
.weather-header::before{
    content:"";
    position:absolute;
    right:-100px;
    top:-100px;
    width:280px;
    height:280px;
    background:
        rgba(255,255,255,.12);
    border-radius:50%;
}
/*=======================================================*/
.weather-header::after{
    content:"";
    position:absolute;
    left:-80px;
    bottom:-80px;
    width:180px;
    height:180px;
    background:    rgba(255,255,255,.08);
    border-radius:50%;
}
/*=======================================================*/
.weather-title{
    font-size:34px;
    font-weight:700;
    letter-spacing:.5px;
}
/*=======================================================*/
.weather-location{
    margin-top:8px;
    font-size:15px;
    color:rgba(255,255,255,.92);
}
/*=======================================================*/
#weather-updated{
    margin-top:8px;
    font-size:14px;
    color:rgba(255,255,255,.85);
}
/*=======================================================*/
button{
    border:none;
    outline:none;
    cursor:pointer;
    border-radius:50px;
    padding:
        14px 28px;
    font-size:15px;
    font-weight:600;

    color:white;

    background:

        linear-gradient(
            135deg,
            #0f172a,
            #334155
        );

    transition:var(--transition);

    box-shadow:

        0 10px 25px rgba(0,0,0,.18);

}

/*=======================================================*/

button:hover{

    transform:

        translateY(-3px);

    box-shadow:

        0 18px 40px rgba(0,0,0,.28);

}

/*=======================================================*/

button:active{

    transform:scale(.97);

}

/*=======================================================*/

.weather-main{

    display:grid;

    grid-template-columns:

        repeat(auto-fit,minmax(320px,1fr));

    gap:25px;

    padding:30px;

}

/*=======================================================*/

.weather-box{

    background:white;

    border-radius:22px;

    padding:25px;

    border:

        1px solid #edf2f7;

    box-shadow:var(--shadow);

    transition:var(--transition);

    position:relative;

    overflow:hidden;

}

/*=======================================================*/

.weather-box::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:5px;

    background:

        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

}

/*=======================================================*/

.weather-box:hover{

    transform:

        translateY(-8px);

    box-shadow:

        var(--shadow-hover);

}

/*=======================================================*/

.weather-box h2{

    font-size:28px;

    font-weight:700;

    color:#1e293b;

}

/*=======================================================*/

#weather-loading{

    display:none;

    justify-content:center;

    align-items:center;

    padding:45px;

}

/*=======================================================*/

.loader{

    width:70px;

    height:70px;

    border-radius:50%;

    border:6px solid #dbeafe;

    border-top-color:var(--primary);

    animation:spin .9s linear infinite;

}

/*=======================================================*/

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/*=======================================================*/

#weather-error{

    display:none;

    margin:25px;

    border-radius:15px;

    padding:18px;

    background:

        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    color:white;

    font-weight:600;

}

/*=======================================================*/
/* Weather Background Themes */
/*=======================================================*/

.clear{

    background:

        linear-gradient(
            180deg,
            #e0f2fe,
            #f8fbff
        );

}

.cloudy{

    background:

        linear-gradient(
            180deg,
            #dbe4ef,
            #f5f7fb
        );

}

.rain{

    background:

        linear-gradient(
            180deg,
            #dbeafe,
            #eff6ff
        );

}

.storm{

    background:

        linear-gradient(
            180deg,
            #c7d2fe,
            #eef2ff
        );

}

.snow{

    background:

        linear-gradient(
            180deg,
            #ecfeff,
            #ffffff
        );

}

.fog{

    background:

        linear-gradient(
            180deg,
            #f1f5f9,
            #ffffff
        );

}

/*=======================================================*/

.online{

    color:var(--success);

    font-weight:700;

}

.offline{

    color:var(--danger);

    font-weight:700;

}

/*==================================================
CURRENT WEATHER CARD
==================================================*/

.weather-box{
    position:relative;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    border-radius:24px;
    padding:28px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.6);
    box-shadow:
        0 12px 35px rgba(15,23,42,.10),
        inset 0 1px 0 rgba(255,255,255,.7);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.weather-box:hover{

    transform:translateY(-8px);

    box-shadow:
        0 22px 45px rgba(0,0,0,.18);

}

.weather-box::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:5px;

    background:linear-gradient(
        90deg,
        #00b4ff,
        #5b86ff,
        #8e54e9
    );

}

.weather-box h2{

    font-size:22px;

    font-weight:700;

    color:#16324f;

    margin-bottom:10px;

}

/*==================================================
WEATHER ICON
==================================================*/

.weather-icon{

    font-size:95px;

    text-align:center;

    margin-bottom:12px;

    animation:floatWeather 4s ease-in-out infinite;

    filter:
        drop-shadow(0 10px 18px rgba(0,0,0,.20));

}

@keyframes floatWeather{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0px);
    }

}

/*==================================================
TEMPERATURE
==================================================*/

.weather-temp{

    text-align:center;

    font-size:74px;

    font-weight:800;

    line-height:1;

    margin-top:10px;

    background:linear-gradient(
        135deg,
        #ff9800,
        #ff5722
    );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

}

.weather-desc{

    text-align:center;

    font-size:18px;

    color:#5b6472;

    margin-top:10px;

}

#weather-feels{

    font-size:16px;

    color:#8892a5;

    margin-top:6px;

}

/*==================================================
WEATHER GRID
==================================================*/

.weather-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

    margin-top:28px;

}

.weather-item{

    position:relative;

    background:linear-gradient(
        180deg,
        #ffffff,
        #f5f9ff
    );

    border-radius:18px;

    padding:18px;

    border:1px solid rgba(60,130,255,.12);

    transition:.30s;

}

.weather-item:hover{

    transform:translateY(-4px);

    background:#ffffff;

    box-shadow:
        0 10px 25px rgba(33,150,243,.15);

}

.weather-item h4{

    font-size:14px;

    font-weight:600;

    color:#64748b;

    margin-bottom:10px;

}

.weather-item span{

    font-size:26px;

    font-weight:700;

    color:#16324f;

}

/*==================================================
DETAIL ROWS
==================================================*/

.activity{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 0;

    border-bottom:1px solid rgba(0,0,0,.06);

    transition:.25s;

}

.activity:last-child{

    border:none;

}

.activity:hover{

    padding-left:10px;

}

.activity span{

    color:#5c6675;

    font-weight:600;

}

.activity strong{

    color:#1d3557;

    font-size:18px;

    font-weight:700;

}

/*==================================================
SECTION HEADINGS
==================================================*/

.weather-box h2{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:22px;

}

/*==================================================
PREMIUM VALUE COLORS
==================================================*/

#weather-pressure,
#weather-rain,
#weather-sunrise,
#weather-sunset,
#wind-direction{

    color:#0066cc;

}

/*==================================================
REFRESH BUTTON
==================================================*/

#refresh-weather{

    background:linear-gradient(
        135deg,
        #2196f3,
        #1565c0
    );

    color:white;

    border:none;

    border-radius:14px;

    padding:13px 22px;

    font-weight:700;

    cursor:pointer;

    transition:.30s;

    box-shadow:
        0 10px 20px rgba(33,150,243,.25);

}

#refresh-weather:hover{

    transform:translateY(-2px);

    box-shadow:
        0 15px 30px rgba(33,150,243,.35);

}

/*==================================================
HEADER
==================================================*/

.weather-header{

    padding:30px;

    background:linear-gradient(
        135deg,
        rgba(255,255,255,.90),
        rgba(240,247,255,.96)
    );

    border-bottom:1px solid rgba(0,0,0,.05);

}

.weather-title{

    font-size:34px;

    font-weight:800;

    color:#17324d;

}

.weather-location{

    margin-top:8px;

    font-size:16px;

    color:#667085;

}

#weather-updated{

    margin-top:12px;

    font-size:14px;

    color:#94a3b8;

}

/*==================================================
AQI CARD
==================================================*/

.aqi-card{

    position:relative;

    overflow:hidden;

    background:linear-gradient(
        145deg,
        #ffffff,
        #eefaf2
    );

    border-left:none;

}

.aqi-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:6px;

    background:linear-gradient(
        90deg,
        #00c853,
        #66bb6a,
        #43a047
    );

}

#aqi-value{

    width:140px;
    height:140px;

    margin:10px auto;

    border-radius:50%;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:54px;

    font-weight:800;

    color:white;

    background:linear-gradient(
        135deg,
        #2ecc71,
        #16a085
    );

    box-shadow:
        0 15px 35px rgba(46,204,113,.35);

}

#aqi-status{

    font-size:24px !important;

    font-weight:700;

    color:#1f2937;

    margin-top:15px;

}

#aqi-badge{

    display:inline-block;

    margin-top:18px;

    padding:10px 24px;

    border-radius:40px;

    background:linear-gradient(
        135deg,
        #2ecc71,
        #27ae60
    );

    color:white;

    font-size:14px;

    font-weight:700;

    letter-spacing:1px;

    box-shadow:
        0 10px 20px rgba(46,204,113,.30);

}

/*==================================================
TRAVEL CARD
==================================================*/

.travel-card{

    position:relative;

    overflow:hidden;

    border-left:none;

    background:linear-gradient(
        145deg,
        #ffffff,
        #eef6ff
    );

}

.travel-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:6px;

    background:linear-gradient(
        90deg,
        #4f8cff,
        #7b5cff,
        #9b59b6
    );

}

#travel-score{

    width:160px;
    height:160px;

    margin:0 auto;

    border-radius:50%;

    display:flex;

    justify-content:center;
    align-items:center;

    font-size:62px;

    font-weight:900;

    color:white;

    background:linear-gradient(
        135deg,
        #4f8cff,
        #5b6cff
    );

    box-shadow:
        0 18px 40px rgba(79,140,255,.35);

}

#travel-grade{

    text-align:center;

    margin-top:18px;

    font-size:38px;

    font-weight:900;

    letter-spacing:5px;

    background:linear-gradient(
        180deg,
        #86efac 0%,
        #22c55e 30%,
        #15803d 65%,
        #14532d 100%
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    filter:
        drop-shadow(0 2px 2px rgba(255,255,255,.4))
        drop-shadow(0 8px 15px rgba(21,128,61,.35));

    transition:.35s ease;

}

#travel-status{

    font-size:24px !important;

    color:#2d3748;

    margin-top:15px;

}

.summary{

    margin-top:20px;

    text-align:center;

    color:#5b6472;

    font-size:16px;

    line-height:1.7;

}

.travel-card:hover #travel-grade{

    transform:scale(1.08);

    filter:
        drop-shadow(0 0 12px rgba(34,197,94,.45))
        drop-shadow(0 12px 22px rgba(21,128,61,.35));

}

/*==================================================
ACTIVITY RATINGS
==================================================*/

.activity strong{

    font-size:23px;

    font-weight:700;

}

#activity-photography,
#activity-trekking,
#activity-cycling,
#activity-roadtrip,
#activity-camping,
#activity-family,
#activity-sunrise,
#activity-sunset{

    font-size:30px;
    font-weight:900;
    letter-spacing:5px;

    background:linear-gradient(
        180deg,
        #bcdcff,
        #4f8cff,
        #163fa8,
        #071f60
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    filter:
        drop-shadow(0 2px 2px rgba(255,255,255,.4))
        drop-shadow(0 6px 10px rgba(37,99,235,.35));

    transition:.35s;
}

.activity:hover strong{

    transform:scale(1.12);

    filter:
        drop-shadow(0 8px 18px rgba(37,99,235,.45));

}

/*==================================================
BADGES
==================================================*/


.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 22px;
    border-radius:50px;
    font-size:14px;
    font-weight:700;
    color:#fff;
}

.badge.good{

    background:#2ecc71;

}

.badge.warning{

    background:#f39c12;

}

.badge.danger{

    background:#e74c3c;

}

/*==================================================
WEATHER ALERTS
==================================================*/

.weather-alert{

    display:flex;

    align-items:center;

    gap:12px;

    padding:16px 18px;

    border-radius:16px;

    color:white;

    font-weight:700;

    font-size:15px;

    box-shadow:

        0 10px 25px rgba(0,0,0,.12);

}

.weather-alert.success{

    background:linear-gradient(
        135deg,
        #2ecc71,
        #27ae60
    );

}

.weather-alert.warning{

    background:linear-gradient(
        135deg,
        #f39c12,
        #d68910
    );

}

.weather-alert.danger{

    background:linear-gradient(
        135deg,
        #e74c3c,
        #c0392b
    );

}

/*==================================================
SYSTEM STATUS
==================================================*/

.online{

    color:#2ecc71;

    font-weight:700;

}

.offline{

    color:#e74c3c;

    font-weight:700;

}

/*==================================================
SMOOTH CARD ANIMATION
==================================================*/

.weather-box{

    animation:fadeCard .5s ease;

}

@keyframes fadeCard{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==========================================================
PREMIUM RESPONSIVE DESIGN
Desktop • Laptop • Tablet • Mobile
==========================================================*/

/* Large Desktop (1600px+) */
@media (min-width:1600px){

    #weather-card{
        max-width:1600px;
    }

    .weather-main{
        grid-template-columns:repeat(3,1fr);
        gap:30px;
    }

    .weather-title{
        font-size:40px;
    }

    .weather-temp{
        font-size:90px;
    }

    #travel-score,
    #aqi-value{
        transform:scale(1.1);
    }

}


/* Desktop */
@media (max-width:1400px){

    #weather-card{
        margin:25px;
    }

}


/* Small Laptop */
@media (max-width:1200px){

    .weather-main{
        grid-template-columns:repeat(2,1fr);
    }

}


/* Tablet Landscape */
@media (max-width:992px){

    .weather-header{

        flex-direction:column;
        text-align:center;
        gap:20px;

    }

    .weather-main{

        grid-template-columns:1fr;

    }

    .weather-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .weather-title{

        font-size:30px;

    }

    .weather-temp{

        font-size:64px;

    }

    .weather-icon{

        font-size:82px;

    }

    #travel-score,
    #aqi-value{

        width:135px;
        height:135px;

        font-size:52px;

    }

}


/* Tablet Portrait */
@media (max-width:768px){

    #weather-card{

        margin:15px;
        border-radius:22px;

    }

    .weather-header{

        padding:22px;

    }

    .weather-main{

        padding:18px;
        gap:18px;

    }

    .weather-box{

        padding:22px;

    }

    .weather-title{

        font-size:28px;

    }

    .weather-location{

        font-size:15px;

    }

    .weather-grid{

        grid-template-columns:1fr 1fr;
        gap:14px;

    }

    .weather-temp{

        font-size:58px;

    }

    .weather-icon{

        font-size:74px;

    }

    .activity{

        padding:12px 0;

    }

    .activity strong{

        font-size:18px;

    }

    #travel-grade{

        font-size:28px;
        letter-spacing:3px;

    }

    button,
    #refresh-weather{

        width:100%;
        padding:14px;

    }

}


/* Large Phones */
@media (max-width:576px){

    #weather-card{

        margin:10px;
        border-radius:18px;

    }

    .weather-header{

        padding:18px;

    }

    .weather-title{

        font-size:24px;

    }

    .weather-location,
    #weather-updated{

        font-size:13px;

    }

    .weather-box{

        padding:18px;

        border-radius:18px;

    }

    .weather-box h2{

        font-size:20px;

    }

    .weather-temp{

        font-size:52px;

    }

    .weather-icon{

        font-size:64px;

    }

    .weather-desc{

        font-size:16px;

    }

    .weather-grid{

        grid-template-columns:1fr;

    }

    .weather-item{

        padding:15px;

    }

    .weather-item span{

        font-size:22px;

    }

    #travel-score,
    #aqi-value{

        width:110px;
        height:110px;

        font-size:42px;

    }

    #travel-grade{

        font-size:24px;
        letter-spacing:2px;

    }

    #aqi-status,
    #travel-status{

        font-size:20px !important;

    }

    .summary{

        font-size:15px;

    }

}


/* Small Phones */
@media (max-width:420px){

    .weather-title{

        font-size:22px;

    }

    .weather-temp{

        font-size:46px;

    }

    .weather-icon{

        font-size:56px;

    }

    .weather-box{

        padding:16px;

    }

    .weather-item h4{

        font-size:13px;

    }

    .weather-item span{

        font-size:20px;

    }

    .activity{

        flex-direction:column;
        align-items:flex-start;
        gap:6px;

    }

    .activity strong{

        font-size:17px;

    }

    #activity-photography,
    #activity-trekking,
    #activity-cycling,
    #activity-roadtrip,
    #activity-camping,
    #activity-family,
    #activity-sunrise,
    #activity-sunset{

        font-size:24px;
        letter-spacing:2px;

    }

}


/* Extra Small Devices */
@media (max-width:340px){

    .weather-title{

        font-size:20px;

    }

    .weather-temp{

        font-size:40px;

    }

    .weather-icon{

        font-size:48px;

    }

    #travel-score,
    #aqi-value{

        width:90px;
        height:90px;

        font-size:34px;

    }

    #travel-grade{

        font-size:20px;

    }

}