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

body {
    color: #fff;
    background: url(../images/bg.jpg);
    background-size: cover;
    background-position: center;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    z-index: -1;
}

/* ================= SEARCH ================= */
.input-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    padding: 10px 16px;
    margin-top: 12px;
}

.input-container input {
    flex: 1;
    border: none;
    background: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-container button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ================= WEATHER CONTAINER ================= */
#weatherData {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
}

/* ================= WEATHER CARD ================= */
.weather-card {
    width: 100%;
    max-width: 10000px;
    height: 160px;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #7da2c8, #567aa3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.weather-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.35);
}


/* Dark variant */
.weather-card.dark {
    background: linear-gradient(135deg, #2e405f, #1f2f47);
}

/* ================= CARD CONTENT ================= */
.weather-card .left,
.weather-card .right {
    position: relative;
    z-index: 2;
}

.weather-card .left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.weather-card .location {
    font-size: 15px;
    opacity: 0.9;
}

.weather-card .temp {
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
}

.weather-card .condition {
    font-size: 14px;
    opacity: 0.85;
}

.weather-card img {
    width: 48px;
}

/* Badge */
.badge {
    background: #22c55e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    display: inline-block;
    margin-top: 6px;
}

/* Divider */
.weather-card .divider {
    width: 1px;
    height: 70%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    z-index: 2;
}

/* Right side */
.weather-card .right {
    text-align: center;
}

.weather-card .day {
    font-size: 14px;
    opacity: 0.85;
}

.weather-card .range {
    font-size: 15px;
    margin-top: 6px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .weather-card {
        flex-direction: column;
        height: auto;
        gap: 15px;
        text-align: center;
    }

    .weather-card .divider {
        width: 80%;
        height: 1px;
    }

    .weather-card .left {
        flex-direction: column;
    }

    .weather-card .temp {
        font-size: 52px;
    }
}
