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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #10091f, #251044, #43176b);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.container {
    width: 100%;
    max-width: 650px;
    text-align: center;
}

header {
    margin-bottom: 30px;
}

header h2 {
    font-size: 32px;
}

header h2 span {
    color: #c084fc;
}

header p {
    color: #c9b9dc;
    margin-top: 8px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 1px solid #76529c;
    background: #211435;
    color: white;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

.search-box input:focus {
    border-color: #d8b4fe;
}

.search-box button,
.location-btn {
    background: #a855f7;
    color: white;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}

.search-box button:hover,
.location-btn:hover {
    background: #9333ea;
    transform: translateY(-2px);
}

.location-btn {
    width: 100%;
    margin-bottom: 20px;
}

#message {
    color: #f0abfc;
    margin: 10px;
    font-size: 14px;
}

.weather-card {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 50px #00000040;
}

.weather-card h2 {
    font-size: 27px;
}

#date {
    color: #c9b9dc;
    margin-top: 5px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.weather-icon {
    font-size: 75px;
}

.weather-main h1 {
    font-size: 65px;
}

#condition {
    font-size: 22px;
    color: #e9d5ff;
}

#feelsLike {
    color: #c9b9dc;
    margin-top: 8px;
}

.details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.detail-box {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
}

.detail-box:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.detail-box span {
    font-size: 28px;
}

.detail-box h3 {
    margin: 8px 0;
    font-size: 22px;
}

.detail-box p {
    color: #c9b9dc;
    font-size: 13px;
}

footer {
    margin-top: 25px;
    color: #c9b9dc;
    font-size: 12px;
    line-height: 2;
}

@media(max-width: 500px) {
    .search-box {
        flex-direction: column;
    }

    .weather-card {
        padding: 20px;
    }

    .weather-main h1 {
        font-size: 48px;
    }

    .weather-icon {
        font-size: 55px;
    }
}
