/* ramadan-effect.css - Refined Version */

:root {
    --re-amber-light: #fff5d6;
    --re-amber-main: #fbbf24;
    --re-amber-dark: #b45309;
    --re-amber-deep: #78350f;
    --re-glow: rgba(251, 191, 36, 0.6);
}

.re-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Keep height to viewport for particles, but scrolls away */
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(11, 16, 38, 0.7) 0%, rgba(15, 23, 42, 0.4) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 2s ease;
}

.re-overlay-container.re-active {
    opacity: 1;
}

.re-bloom {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    mix-blend-mode: soft-light;
    animation: re-pulse-bloom 10s infinite alternate ease-in-out;
}

@keyframes re-pulse-bloom {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

/* Moon Styles - Box shadow trick like reference */
.re-moon-container {
    position: absolute;
    top: 40px;
    right: 50px;
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(252, 211, 77, 0.3));
    animation: re-fade-in 2s ease-out;
}

.re-moon-crescent {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: -20px 10px 0 10px #FCD34D;
    transform: rotate(-15deg);
    opacity: 0.9;
}

@keyframes re-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-20deg);
    }

    to {
        opacity: 0.9;
        transform: scale(1) rotate(-15deg);
    }
}

/* Lantern Styles - Rich detailed SVG */
.re-lanterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 5%;
    pointer-events: none;
}

.re-lantern-wrapper {
    position: absolute;
    top: 0;
    transform-origin: top center;
    animation: re-sway 5s ease-in-out infinite alternate;
}

.re-lantern-string {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--re-amber-dark));
    margin: 0 auto;
}

.re-lantern-svg {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

@keyframes re-sway {
    from {
        transform: rotate(-4deg);
    }

    to {
        transform: rotate(4deg);
    }
}

/* Star Styles */
.re-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Banner Styles - Arabic Typography */
.re-banner {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}

.re-arabic {
    font-size: 32px;
    color: var(--re-amber-main);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    font-family: serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.re-latin {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.re-banner.re-show .re-arabic,
.re-banner.re-show .re-latin {
    opacity: 1;
    transform: translateY(0);
}

/* Canvas fix */
.re-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .re-moon-container {
        width: 80px;
        height: 80px;
        top: 20px;
        right: 20px;
    }

    .re-banner {
        bottom: 20px;
        left: 20px;
    }

    .re-arabic {
        font-size: 24px;
    }

    .re-latin {
        font-size: 14px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .re-lantern-wrapper,
    .re-moon-container {
        animation: none !important;
    }

    .re-overlay-container {
        transition: none !important;
    }
}