* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Dark gradient background */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
}

/* Glass container */
.container {
    width: 95%;
    max-width: 480px;
    padding: 30px 25px;
    text-align: center;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 25px;
    border: 3px solid rgba(255, 255, 255, 0.2);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

h1 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

/* Search section */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;

    background: rgba(255, 255, 255, 0.2);
    color: white;
}

input::placeholder {
    color: #ddd;
}

button {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #000;
    font-weight: bold;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.4);
}

/* Weather card */
.weather-card {
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.weather-card img {
    width: 72px;
    margin: 10px 0;
}

#temperature {
    font-size: 2.2rem;
    margin: 5px 0;
}

#condition {
    font-size: 1.1rem;
    opacity: 0.9;
}

#humidity,
#wind {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Error message */
.error {
    color: #ff6b6b;
    margin-top: 12px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Tablet View ========== */
@media (min-width: 600px) {
    .container {
        max-width: 500px;
        padding: 40px;
    }

    h1 {
        font-size: 2rem;
    }

    #temperature {
        font-size: 2.8rem;
    }
}

/* ========== Desktop View ========== */
@media (min-width: 992px) {
    .container {
        max-width: 550px;
        padding: 50px;
    }

    h1 {
        font-size: 2.2rem;
    }

    #temperature {
        font-size: 3rem;
    }
}

/* ========== Small Mobile View ========== */
@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    h1 {
        font-size: 1.4rem;
    }

    #temperature {
        font-size: 1.8rem;
    }
}