/* =========================================
   Ramadan Decorations Styles
   ========================================= */

.ramadan-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    /* Ensures it doesn't block clicks */
    z-index: 9999;
    pointer-events: none;
    /* Allows clicking through */
}

/* --- Hanging Lantern (Fanous) --- */
.lantern-container {
    position: absolute;
    top: 0;
    left: 100px;
    /* Position from left */
    width: 60px;
    height: 300px;
    transform-origin: top center;
    animation: swing 3s ease-in-out infinite alternate;
    z-index: 10000;
}

.lantern-rope {
    width: 2px;
    height: 100px;
    /* Rope length */
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    margin: 0 auto;
    position: relative;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.fanous {
    position: relative;
    width: 60px;
    height: 120px;
}

.fanous-ring {
    width: 16px;
    height: 16px;
    border: 3px solid #d4af37;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    top: -8px;
    box-shadow: 0 0 5px #d4af37;
}

.fanous-top {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 25px solid #d4af37;
    margin: -10px auto 0;
    position: relative;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.fanous-glob {
    width: 50px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 223, 0, 0.9), rgba(255, 140, 0, 0.8));
    margin: 0 auto;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 165, 0, 0.6);
    border: 2px solid #b8860b;
}

.fanous-light {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    animation: glow 2s ease-in-out infinite alternate;
}

.fanous-icon {
    font-size: 24px;
    color: rgba(139, 69, 19, 0.6);
    z-index: 2;
    transform: rotate(-15deg);
}

.fanous-base {
    width: 30px;
    height: 15px;
    background: #d4af37;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fanous-bottom-ring {
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
    margin: 2px auto 0;
}

/* --- Decoration String (Zeina) --- */
.decoration-string {
    position: absolute;
    top: -10px;
    right: 0;
    left: 200px;
    /* Leave space for lantern? Or span full width */
    height: 100px;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    pointer-events: none;
}

.decoration-string::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -10%;
    width: 120%;
    height: 80px;
    border-bottom: 3px solid rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    z-index: -1;
}

.ornament {
    position: relative;
    top: 35px;
    /* Adjust based on curve */
    animation: sway 3s ease-in-out infinite alternate;
    transform-origin: top center;
}

.ornament i {
    font-size: 24px;
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

.ornament.star i {
    color: #87ceeb;
    filter: drop-shadow(0 0 5px rgba(135, 206, 235, 0.8));
}

.ornament.moon i {
    color: #f0e68c;
}

.ornament.lamp i {
    color: #ff69b4;
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.8));
}

.ornament:nth-child(odd) {
    animation-duration: 3.5s;
    top: 45px;
}

.ornament:nth-child(even) {
    animation-duration: 2.8s;
    top: 25px;
}

/* --- Animations --- */
@keyframes swing {
    0% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

@keyframes sway {
    0% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(-10deg);
    }
}

@keyframes glow {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .lantern-container {
        left: 20px;
        transform: scale(0.8);
    }

    .decoration-string {
        left: 80px;
    }
}