* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h1 i {
    margin-right: 10px;
    color: #ffd700;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#city-input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    width: 300px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#search-btn, #location-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: #ff6b6b;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#search-btn:hover, #location-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.current-weather {
    text-align: center;
    margin-bottom: 30px;
}

.weather-card {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.city-name {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.temperature {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.weather-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.weather-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.forecast {
    margin-bottom: 30px;
}

.forecast h2 {
    margin-bottom: 20px;
    color: #2d3436;
    text-align: center;
}

.forecast-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.forecast-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
}

.forecast-date {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3436;
}

.forecast-temp {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 10px 0;
}

.forecast-description {
    color: #666;
    text-transform: capitalize;
}

.weather-details h2 {
    margin-bottom: 20px;
    color: #2d3436;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3436;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

.error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: white;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    #city-input {
        width: 250px;
    }
    
    .forecast-cards {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}
