* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: #3498db;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.weather-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.current-conditions {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-input {
    width: 300px;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.search-button {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.example {
    margin-top: 1rem;
    font-size: 1rem;
}

.example a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.example a:hover {
    text-decoration: underline;
}

.weather-result {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.weather-result.visible {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.result-city {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.result-temp {
    font-size: 4rem;
    font-weight: bold;
    margin: 1rem 0;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.detail-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.loading {
    display: none;
    margin: 2rem 0;
}

.loading.visible {
    display: block;
    animation: spin 1s linear infinite;
}

.error-message {
    display: none;
    color: #ff6b6b;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
}

.error-message.visible {
    display: block;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
    }

    .search-input,
    .search-button {
        width: 100%;
        max-width: 300px;
    }

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

.signature {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
} 