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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

#zipInput {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

#zipInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#searchBtn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#searchBtn:active {
    transform: translateY(0);
}

.error {
    display: none;
    background: #fee;
    color: #c33;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.error.show {
    display: block;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #667eea;
}

.loading.show {
    display: block;
}

.current-weather {
    display: none;
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.current-weather.show {
    display: block;
}

.location {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.temperature {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.condition {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 20px;
}

.details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: #718096;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.detail-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0aec0;
}

.detail-value {
    font-weight: 600;
    color: #2d3748;
}

.hourly-forecast {
    display: none;
}

.hourly-forecast.show {
    display: block;
}

.hourly-forecast h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
}

.hourly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.hour-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hour-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
}

.hour-temp {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.hour-condition {
    font-size: 0.8rem;
    color: #718096;
}

@media (max-width: 640px) {
    .weather-card {
        padding: 24px;
    }

    .title {
        font-size: 2rem;
    }

    .temperature {
        font-size: 3rem;
    }

    .search-box {
        flex-direction: column;
    }

    .hourly-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
}
