/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top, #0b1d51, #020617);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Weather App Card */
.weather-app {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem 2rem;
    border-radius: 25px;
    background-image: radial-gradient(rgb(80, 49, 151) , rgb(8, 8, 165) );
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    max-height: 7rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.weather-app-show {
    max-height: 65rem;
}

/* Weather-show */
.show-weather {
    display: none;
}
.show-weather-show {
    display: block;
}

/* Search Bar */
.search-city {
    width: 100%;
    border-radius: 20px;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1rem;
    overflow: hidden;
}

.search-city input {
    width: 100%;
    padding: 0.9rem 1rem;
    outline: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    background: transparent;
}

.search-city i {
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: 0.3s;
}

.search-city i:hover {
    color: #0017ff;
    transform: scale(1.2);
}

.search-city i:active {
    scale: 0.8;
}

/* City Name */
.name {
    margin-top: 2rem;
    text-align: center;
}

.name #name {
    color: #ffffff;
    font-size: clamp(24px, 6vw, 42px);
    font-weight: bold;
}

/* Day */
.day {
    text-align: center;
    margin-top: 0.5rem;
}

.day #day {
    color: #cbd5f5;
    font-size: clamp(14px, 3vw, 18px);
}

/* Temperature */
.temp {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.temp img {
    width: 80px;
}

.temp #temp {
    color: white;
    font-size: clamp(50px, 12vw, 90px);
    font-weight: bold;
    text-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

/* Humidity, AQI, Wind */
.humidity-aqi {
    margin-top: 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
}

.humidity-aqi span {
    text-align: center;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #dfe6ff);
    color: #000;
    font-size: clamp(12px, 3vw, 18px);
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.humidity-aqi span:hover {
    transform: translateY(-6px);
    background: linear-gradient(145deg, #dfe6ff, #ffffff);
}

/* Error */
.wrong-search {
    padding: 2rem 0;
    display: none;
    text-align: center;
}

.wrong-search span {
    color: #ffb3b3;
    font-size: clamp(14px, 3vw, 20px);
    font-weight: bold;
}

.wrong-search-show {
    display: block;
}

/* Mobile */
@media (max-width: 480px) {
    .weather-app {
        padding: 1.2rem 1.2rem;
    }

    .temp img {
        width: 65px;
    }

    .search-city input {
        font-size: 0.9rem;
    }
}