/* Weather Card Styles */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.weather-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}\n.weather-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(5deg);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.2);
}

/* Animated Weather Backgrounds */
.weather-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
    border-radius: 25px;
}

/* Sunny */
.weather-card.sunny::before {
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFA500);
    animation: sunny-pulse 3s ease-in-out infinite;
}

@keyframes sunny-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Cloudy */
.weather-card.cloudy::before {
    background: linear-gradient(135deg, #B0C4DE, #778899);
    animation: cloud-drift 8s ease-in-out infinite;
}

@keyframes cloud-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Rainy */
.weather-card.rainy::before {
    background: linear-gradient(180deg, #4A5568, #2D3748);
    animation: rain-fall 2s linear infinite;
}

.weather-card.rainy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 11px
    );
    animation: rain-fall 0.5s linear infinite;
    z-index: 0;
}

@keyframes rain-fall {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(20px); }
}

/* Snowy */
.weather-card.snowy::before {
    background: linear-gradient(135deg, #E0F7FA, #B2EBF2);
}

.weather-card.snowy::after {
    content: '❄';
    position: absolute;
    top: 20%;
    left: 20%;
    font-size: 3rem;
    opacity: 0.3;
    animation: snow-fall 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes snow-fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(100px) rotate(360deg); opacity: 0; }
}

/* Stormy */
.weather-card.stormy::before {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    animation: storm-flash 3s ease-in-out infinite;
}

@keyframes storm-flash {
    0%, 90%, 100% { opacity: 0.3; }
    92%, 94% { opacity: 0.7; }
}

/* Partly Cloudy */
.weather-card.partly-cloudy::before {
    background: linear-gradient(135deg, #FFD700 0%, #87CEEB 50%, #B0C4DE 100%);
    animation: partly-cloudy-shift 6s ease-in-out infinite;
}

@keyframes partly-cloudy-shift {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Weather Card Content */
.weather-card > * {
    position: relative;
    z-index: 1;
}

.weather-day {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weather-day.today {
    color: #FFD700;
    font-size: 2.3rem;
    font-weight: 700;
}

.weather-date {
    font-size: 1.3rem;
    opacity: 0.85;
    margin-bottom: 25px;
}

.weather-icon {
    font-size: 5rem;
    margin: 20px 0;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.weather-temp {
    font-size: 4rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.weather-high-low {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.weather-high {
    color: #ff6b6b;
}

.weather-low {
    color: #4ecdc4;
}

.weather-condition {
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 15px;
    text-transform: capitalize;
}

.weather-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.3rem;
}

.weather-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.85;
}

.weather-detail-icon {
    margin-right: 8px;
}

/* Loading State */
.weather-card.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 1600px) {
    .weather-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .weather-temp {
        font-size: 3rem;
    }

    .weather-icon {
        font-size: 4rem;
    }
}

@media (max-width: 1200px) {
    .weather-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .weather-grid {
        grid-template-columns: 1fr;
    }
}
