/* 
 * MDJPRO - 2026 ATMOSPHERIC ENGINE 💎🔒
 * Apple Gold Standard: Inmersive Weather Experience
 */

:root {
    --sky-day-top: #3a82f6;
    --sky-day-bottom: #93c5fd;
    --sky-night-top: #0f172a;
    --sky-night-bottom: #1e293b;
    --sky-storm-top: #1e1b4b;
    --sky-storm-bottom: #312e81;
    --glass-blur: 40px;
}

/* 🌌 Sky Engine - Transiciones de 2s */
.weather-card-container {
    transition: background 2s ease-in-out;
    background: var(--sky-day-top) !important;
}

.weather-card-container.is-night {
    background: linear-gradient(180deg, var(--sky-night-top) 0%, var(--sky-night-bottom) 100%) !important;
}

.weather-card-container.is-stormy {
    background: linear-gradient(180deg, var(--sky-storm-top) 0%, var(--sky-storm-bottom) 100%) !important;
}

/* 🏺 Container for all layers */
.weather-master-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    mix-blend-mode: screen;
}

/* ☀️ Sol Volumétrico detras de nubes */
.weather-sunny-glow {
    position: absolute;
    top: -50px;
    right: 70px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 230, 100, 0.45) 0%, rgba(255, 210, 50, 0.1) 60%, rgba(255, 180, 0, 0) 100%);
    filter: blur(20px);
    animation: sun-float 12s infinite alternate ease-in-out;
}

@keyframes sun-float {
    from {
        transform: translate(0, 0);
        opacity: 0.8;
    }

    to {
        transform: translate(-30px, 30px);
        opacity: 1;
    }
}

/* � Lunar Engine */
.weather-moon {
    position: absolute;
    top: 60px;
    right: 80px;
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: none;
}

.weather-moon.crescent::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: inherit;
    /* Should be bg color to mask */
    border-radius: 50%;
}

/* ☁️ Naves de Nubes con Parallax */
.weather-clouds-container {
    position: absolute;
    inset: 0;
}

.cloud-layer {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
}

.cloud-1 {
    width: 300px;
    height: 120px;
    top: 10%;
    left: -100px;
    animation: cloud-drift-slow 40s infinite linear;
}

.cloud-2 {
    width: 400px;
    height: 150px;
    top: 40%;
    left: -200px;
    animation: cloud-drift-fast 25s infinite linear;
    opacity: 0.3;
}

.cloud-3 {
    width: 250px;
    height: 100px;
    bottom: 10%;
    right: -50px;
    animation: cloud-drift-medium 32s infinite linear;
}

@keyframes cloud-drift-slow {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(110vw);
    }
}

@keyframes cloud-drift-medium {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-110vw);
    }
}

@keyframes cloud-drift-fast {
    from {
        transform: translateX(-200px);
    }

    to {
        transform: translateX(110vw);
    }
}

/* �️ Rain Physics */
.rain-drop {
    position: absolute;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6));
    width: 1px;
    height: 20px;
    animation: rain-fall linear infinite;
    opacity: 0.4;
}

/* 💎 Premium Glass Card */
#calendar-master {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border-radius: 24px;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.fc-day-today {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ── CALENDAR ARCHITECTURE STATES ── */
.state-event { background: rgba(52, 199, 89, 0.15) !important; border-color: rgba(52, 199, 89, 0.3) !important; }
.state-resident { background: rgba(0, 122, 255, 0.15) !important; border-color: rgba(0, 122, 255, 0.3) !important; }
.state-vacation { background: rgba(255, 204, 0, 0.15) !important; border-color: rgba(255, 204, 0, 0.3) !important; }
.state-holiday { background: rgba(255, 255, 255, 0.02) !important; }
.state-today { 
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important; 
    box-shadow: inset 0 0 15px rgba(255,255,255,0.1), 0 0 10px rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
}

.apple-status-container {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 4px;
    flex-wrap: wrap;
    max-width: 100%;
}
.apple-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
    display: inline-block;
}