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

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    color: #184ba3;
    /* background: linear-gradient(to bottom, #4a90e2, #87ceeb); */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../assets/mountain.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* background-color: white; */
     background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(30px) saturate(140%);
    border-radius: 10px;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#city-input {
    padding: 12px;
    width: 300px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 400;
}

#search-btn {
    padding: 12px 30px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#search-btn:hover {
    background-color: #3a7bc8;
}

.main-content  {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.saved-cities{
     display: flex;
    flex-direction: column;
        gap: 30px;


}

.current-weather {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: #f5f5f5; */
     background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(30px) saturate(140%);
    padding: 30px;
    border-radius: 10px;
}

.location h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
}

.location p {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #323032;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
}

.temperature h1 {
    font-size: 64px;
    color: #4a90e2;
}

.temperature p {
    font-size: 20px;
    color: #666;
}

.weather-icon img {
    width: 230px;
    height: 230px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.detail-card {
    /* background-color: #f9f9f9; */
     background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(30px) saturate(140%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.detail-card h3 {
    font-size: 17px;
    color: #1861c1;
    margin-bottom: 10px;
}

.detail-card p {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.sun-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sun-card {
    /* background-color: #fff3cd; */
     background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(30px) saturate(140%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffd700;
    position: relative;
}
.sun-img{
    position: absolute;
    left:30px;
    top:25px;
    height: 60px;
}
.sun-card h3 {
    font-size: 24px;
    color: #1981cb;
    margin-bottom: 10px;
}

.sun-card p {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.extra-features {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.feature-btn {
    padding: 12px 25px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.feature-btn:hover {
    background-color: #e0e0e0;
}

.saved-cities {
    /* background-color: #f5f5f5; */
    margin-top: 20px;
     background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(30px) saturate(140%);
    padding: 20px;
    border-radius: 8px;
}

.saved-cities h3 {
    margin-bottom: 15px;
    color: #333;
}

#saved-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saved-city-item {
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.saved-city-item:hover {
    background-color: #e8f4ff;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .header h1 {
        font-size: 24px;
    }

    .search-box {
        flex-direction: flex;
        align-items: center;
    }

    #city-input {
        width: 80%;
    }

    .current-weather {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .sun-info {
        grid-template-columns: 1fr;
    }

    .extra-features {
        flex-direction: column;
    }

    .temperature h1 {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .detail-card p {
        font-size: 20px;
    }
}

