/* Corrected Google Fonts import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /*  corrected (min-width → min-height) */
    background: url('https://wallpaperbat.com/img/369595-foggy-weather1920x1200-photography-guide-beautiful-nature.jpg') no-repeat center center/cover;
}

/* ---------------- Container ---------------- */
.container {
    position: relative;
    top: 34px;
    width: 400px;
    min-height: 555px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ---------------- Search Box ---------------- */
.search-box {
    position: relative;
    width: 100%;
    height: 55px;
    background: slateblue;
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.search-box i {
    position: absolute;
    left: 10px;
    font-size: 24px;
    color: #fff;
}

.search-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 20px;
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
    padding: 0 45px 0 40px;
}

.search-box input::placeholder {
    color: #ddd;
    font-weight: 400;
}

.search-box button {
    position: absolute;
    right: 0;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 22px;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
}

/* ---------------- Weather Box ---------------- */
.weather-box {
    text-align: center;
    margin: 30px 0;
}

.weather-box img {
    width: 60%;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
}

.weather-box .temperature {
    position: relative;
    font-size: 58px;
    line-height: 1;
    font-weight: 700;
    margin: 15px 0 6px;
}

.weather-box .temperature span {
    position: absolute;
    font-size: 20px;
    margin-left: 5px;
}

.weather-box .description {
    font-size: 20px;
    font-weight: 500;
    text-transform: capitalize;
}

/* ---------------- Weather Details ---------------- */
.weather-details {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.weather-details .humidity,
.weather-details .wind {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-details i {
    font-size: 32px;
    color: #fff;
}

.weather-details span {
    font-size: 18px;
    font-weight: 500;
}

.weather-details p {
    font-size: 14px;
    font-weight: 400;
    color: #ddd;
}

/* ---------------- Responsive Design ---------------- */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    .weather-box .temperature {
        font-size: 44px;
    }

    .weather-box .description {
        font-size: 18px;
    }

    .weather-details {
        flex-direction: column;
        gap: 10px;
        bottom: 20px;
    }

    .weather-details .humidity,
    .weather-details .wind {
        justify-content: center;
    }
}
