* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #333;
    min-height: 100vh;
    transition: background 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

#search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#search-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

#search-button:hover {
    background: #357abd;
}

.current-weather {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.location-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

#city-name {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

#current-date {
    color: #666;
}

.weather-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.temperature-container {
    text-align: center;
}

#weather-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

#temperature {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
}

.weather-details {
    font-size: 1.1rem;
}

.weather-details p {
    margin: 0.5rem 0;
    color: #555;
}

.sun-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sunrise, .sunset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.forecast {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.forecast h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
}

.forecast-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.forecast-card:hover {
    transform: translateY(-5px);
}

.forecast-card img {
    width: 50px;
    height: 50px;
    margin: 0.5rem 0;
}

.forecast-date {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.forecast-temp {
    font-size: 1.2rem;
    color: #444;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Weather-based themes */
.sunny {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
}

.cloudy {
    background: linear-gradient(135deg, #757F9A, #D7DDE8);
}

.rainy {
    background: linear-gradient(135deg, #373B44, #4286f4);
}

.night {
    background: linear-gradient(135deg, #2C3E50, #3498DB);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .weather-info {
        flex-direction: column;
        text-align: center;
    }

    #temperature {
        font-size: 3rem;
    }

    .forecast-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .sun-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .logo {
        max-width: 200px;
    }
}

/* Autocomplete styles */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}

.autocomplete-item:first-child {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.autocomplete-item:last-child {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.autocomplete-location {
    font-weight: 500;
}

.autocomplete-region {
    color: #666;
    font-size: 0.9rem;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
} 