:root {
    --bg-gradient-1: #4facfe;
    --bg-gradient-2: #00f2fe;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: var(--text-color);
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box {
    position: relative;
    width: 60%;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
    transition: background 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.3);
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.8;
}

.main-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.weather-info h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.weather-info #date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.temp-container {
    display: flex;
    align-items: flex-start;
}

#temperature {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
}

.degree {
    font-size: 1.5rem;
    margin-top: 10px;
}

#condition {
    margin-top: 5px;
    font-size: 1.1rem;
}

.weather-icon-large {
    font-size: 5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: float 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.glass-card i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.glass-card p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.glass-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

.forecast-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: background 0.3s;
}

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.forecast-day {
    width: 60px;
    font-weight: 600;
}

.forecast-icon {
    font-size: 1.2rem;
}

.forecast-temp {
    font-weight: 600;
}