* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e50, #1d2b34);
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 800px;
}

.main-heading {
    font-size: 2.8em;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.weather-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e0e0e0; 
}


.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#city-input {
    flex-grow: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
}

#city-input::placeholder {
    color: #ccc;
}

#search-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    background-color: #4ca1af;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-btn:hover {
    background-color: #2c3e50;
}


.current-weather {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.location-details #city-name {
    font-size: 2.5em;
    font-weight: 600;
    color: #fff;
}

.temperature-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

#weather-icon {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.3));
}


#temperature {
    font-family: 'Playfair Display', serif;
    font-size: 5em;
    font-weight: 700;
    color: #f7b733; 
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}


#weather-description {
    font-size: 1.3em;
    font-style: italic;
    text-transform: capitalize;
    color: #87ceeb; 
}

.extra-details {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
}

.detail-item span {
    font-size: 0.9em;
    color: #ccc;
}
.detail-item p {
    font-size: 1.2em;
    font-weight: 500;
    color: #fff;
}


.forecast-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
}
.forecast-container h3 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    color: #fff;
}
.forecast-cards {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
}
.forecast-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    flex: 1 1 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.forecast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.forecast-card .day {
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.forecast-card img {
    width: 50px;
    height: 50px;
}

.forecast-card .temp {
    font-size: 1.1em;
    margin-top: 5px;
    color: #f7b733;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .main-heading { font-size: 2em; }
    .location-details #city-name { font-size: 2em; }
    #temperature { font-size: 4em; }
    .forecast-cards { justify-content: flex-start; }
}

.forecast-cards::-webkit-scrollbar { display: none; }
.forecast-cards { -ms-overflow-style: none; scrollbar-width: none; }