@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600&display=swap');

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, #1a1a2e, #16213e, #0f3460);
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
}

.main-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 20px;
    width: 100%;
    max-width: 950px;
}

.weather-card, .currency-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-align: center;
    flex: 1;
    min-width: 320px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.weather-card:hover, .currency-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-card {
    padding: 40px;
}

.currency-card {
    padding: 30px;
    display: flex;
    flex-direction: column;  
    justify-content: center; 
    align-items: center;
}

h2#cityName {
    font-size: 1.8rem; 
    font-weight: 600; 
    margin: 10px 0;
    letter-spacing: -0.5px;
}

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

.search input {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    outline: none;
    width: 70%;
    transition: 0.3s;
}

.search input:focus {
    border-color: #4db8ff;
    background: rgba(0, 0, 0, 0.3);
}

.search button {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4db8ff, #007acc);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search button:hover { 
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(77, 184, 255, 0.4);
}

.temp { 
    font-size: 4.5rem; 
    margin: 15px 0; 
    font-weight: 200;
    color: #fff;
}

.meta { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 35px; 
    font-size: 0.9rem; 
    color: rgba(255, 255, 255, 0.6); 
}

.meta b {
    color: #4db8ff;
}

.rate-item {
    font-size: 1.15rem;
    margin: 15px 0;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}

.rate-item span {
    color: #4db8ff;
}

.rate-item small {
    font-size: 0.85rem;
    opacity: 0.5;      
    font-weight: 400;  
    color: #ffffff;
}

.hidden { 
    display: none; 
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }
    .weather-card, .currency-card {
        min-width: 100%;
    }
}