* {
    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: 800px;
    margin: 0 auto;
}

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

header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

.search-input {
    padding: 12px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    width: 250px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-btn {
    padding: 12px 24px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

main {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Weather Card */
.weather-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.city-info h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.city-info p {
    font-size: 1rem;
    color: #666;
}

.weather-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.temperature-section {
    text-align: center;
    margin: 30px 0;
}

.temp-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

#temperature {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
}

.degree {
    font-size: 2rem;
    color: #667eea;
    margin-top: 10px;
}

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

.detail {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.detail .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail .value {
    display: block;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
}

/* Forecast Section */
.forecast-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.forecast-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.forecast-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.forecast-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.forecast-card .day {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.forecast-card .icon {
    font-size: 2.5rem;
    margin: 10px 0;
    display: block;
}

.forecast-card .forecast-temp {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
}

.forecast-card .forecast-desc {
    font-size: 0.85rem;
    opacity: 0.85;
}

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

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

    .search-input {
        width: 100%;
    }

    .weather-header {
        flex-direction: column;
        text-align: center;
    }

    .weather-icon {
        margin-top: 15px;
    }

    .temp-display {
        margin: 20px 0;
    }

    #temperature {
        font-size: 3rem;
    }

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

    .forecast-cards {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .forecast-card {
        padding: 15px;
    }

    .forecast-card .icon {
        font-size: 2rem;
    }
}