:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f72585;
    --card-bg: rgba(255, 255, 255, 0.2);
    --text-light: #ffffff;
    --text-dark: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    color: var(--text-light);
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
    transition: opacity 0.8s ease-in-out;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.weather-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#app-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

#search-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
}

#search-container input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    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-container input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

#check {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#check:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.weather-card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weather-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.weather-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

#weatherCountry {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#weatherDescription {
    font-size: 1.1rem;
    text-transform: capitalize;
    opacity: 0.9;
}

#temperature {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

#temperature strong {
    font-size: 2rem;
    color: var(--warning);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

.detail-item span:first-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

.detail-item span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    #container {
        padding: 1.5rem;
    }
    
    #search-container {
        flex-direction: column;
    }
    
    .weather-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    #app-title {
        font-size: 2rem;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
}