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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

header p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    outline: none;
    border-radius: 50px;
}

.search-box button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.loading {
    text-align: center;
    color: white;
    padding: 40px;
    font-size: 1.2rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.error {
    background: #ff6b6b;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.search-box select {
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: #f0f0f0;
    cursor: pointer;
    outline: none;
}

.source-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.weather-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
}

.weather-card .city {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.weather-card .icon {
    font-size: 5rem;
    color: #667eea;
    margin: 20px 0;
}

.weather-card .temperature {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
}

.weather-card .condition {
    font-size: 1.3rem;
    color: #666;
    margin: 10px 0;
}

.weather-card .details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    color: #888;
}

.weather-card .details span {
    display: flex;
    align-items: center;
    gap: 8px;
}

#weather-container h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.forecast-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.forecast-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.forecast-card .day {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.forecast-card .icon {
    font-size: 2.5rem;
    color: #667eea;
    margin: 10px 0;
}

.forecast-card .temps {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.forecast-card .high {
    color: #e74c3c;
    font-weight: bold;
}

.forecast-card .low {
    color: #3498db;
}

.forecast-card .condition {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .weather-card .temperature {
        font-size: 3rem;
    }
    
    .weather-card .details {
        flex-direction: column;
        gap: 10px;
    }
    
    .forecast-container {
        flex-direction: column;
    }
    
    .forecast-card {
        min-width: auto;
    }
}
