* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f0f0f;
    transition: background-color 0.8s ease;
    overflow: hidden;
    color: #ffffff;
}

.container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    padding: 30px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dot {
    color: #FF416C;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    width: 200px;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-container button {
    background: #fff;
    color: #333;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.search-container button:hover {
    transform: scale(1.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.weather-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    flex: 1;
}

.left-panel {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#cityName {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

#date {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-temp {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

#temp {
    font-size: 6.5rem;
    font-weight: 800;
}

.condition-text {
    font-size: 1.8rem;
    font-weight: 500;
}

.weather-icon-big {
    width: 120px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) brightness(2.5) grayscale(100%);
}

.right-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-content: start;
}

.detail-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.detail-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        height: auto;
        padding: 20px;
        overflow-y: auto;
    }

    .main-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
        justify-content: space-between;
    }

    .input-wrapper input {
        width: 100%;
    }

    .weather-grid {
        grid-template-columns: 1fr;
    }

    #temp {
        font-size: 5rem;
    }
}

.error {
    color: #ffadad;
    text-align: center;
    font-weight: 600;
    min-height: 20px;
}

.pop-in {
    animation: popIn 0.5s ease-out backwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
