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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

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

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

.logo {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.search-bar {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    width: 300px;
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
}

.search-bar::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-bar:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}

.current-weather {
    background: rgba(45, 55, 72, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.current-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e0e0e0;
}

.date {
    color: #a0a0a0;
    font-size: 1rem;
}

.weather-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.temperature {
    font-size: 4rem;
    font-weight: bold;
    color: #e0e0e0;
    display: flex;
    align-items: center;
}

.weather-icon {
    font-size: 3rem;
    margin-right: 20px;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weather-condition {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-weight: 500;
}

.weather-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.stat-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e0e0e0;
}

.forecast-section {
    margin-bottom: 30px;
}

.section-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.forecast-card {
    background: rgba(45, 55, 72, 0.8);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.forecast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: rgba(45, 55, 72, 0.9);
}

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

.forecast-icon {
    font-size: 2rem;
    margin: 10px 0;
}

.forecast-temp {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.forecast-desc {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.hourly-forecast {
    background: rgba(45, 55, 72, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.hourly-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.hourly-item {
    min-width: 100px;
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: background 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.hourly-item:hover {
    background: rgba(255,255,255,0.15);
}

.hourly-time {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.hourly-icon {
    font-size: 1.5rem;
    margin: 5px 0;
}

.hourly-temp {
    font-weight: bold;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .weather-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .temperature {
        justify-content: center;
        font-size: 3rem;
    }
    
    .search-bar {
        width: 100%;
        max-width: 300px;
    }
}
