/* Premium Ramadan Theme */
:root {
    --ramadan-gold: #FFD700;
    --ramadan-green: #006400;
}

/* Background Watermark - Crescent & Star */
body::before {
    content: "\f6a1";
    /* fa-mosque (or moon \f186) - user asked for Crescent & Star */
    /* FontAwesome 6 has moon-star \f6a1 is mosque? let's stick to moon \f186 or star-and-crescent \f699 */
    content: "\f699";
    /* fa-star-and-crescent */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: fixed;
    bottom: -50px;
    right: -20px;
    font-size: 25rem;
    color: var(--ramadan-gold);
    opacity: 0.04;
    /* Ultra subtle */
    z-index: 1;
    /* Behind content which is usually higher, but user said z-index 1 for watermark */
    pointer-events: none;
    transform: rotate(-15deg);
}

/* Secondary Watermark (Mosque) - Bottom Left */
body::after {
    content: "\f678";
    /* fa-mosque */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: fixed;
    bottom: -30px;
    left: -20px;
    font-size: 20rem;
    color: var(--ramadan-green);
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    transform: rotate(10deg);
}

/* Header Lanterns */
/* Assuming header has class .main-header or just header tag */
header {
    position: relative;
    z-index: 10;
    /* Ensure header content is above lanterns if they overlap */
}

header::before,
header::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    /* Match SVG width */
    height: 100px;
    /* Match SVG height */
    background-image: url('../../images/lantern.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 11;
    /* Above header background, below content if needed */
    transform-origin: top center;
    animation: swing 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    /* Golden glow */
}

/* Right Lantern */
header::before {
    right: 30px;
    animation-delay: 0s;
}

/* Left Lantern */
header::after {
    left: 30px;
    animation-delay: 1s;
    /* Offset swing */
}

@keyframes swing {
    0% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {

    /* Hide left lantern on mobile */
    header::after {
        display: none;
    }

    /* Reduce watermark size */
    body::before {
        font-size: 12.5rem;
        /* 50% of 25rem */
        bottom: -25px;
        right: -10px;
    }
}

/* Theme Button Overrides */
.btn-premium,
.btn-glow {
    background: linear-gradient(45deg, #004d00, #d4af37) !important;
    border: 1px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
    color: #fff !important;
}

.btn-premium:hover,
.btn-glow:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6) !important;
    transform: translateY(-2px);
}

.custom-cursor {
    border-color: #FFD700 !important;
}

/* Category Cards */
.category-card {
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.category-card:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
}

.category-card i {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Particles as Golden Stars & Crescents */
.particle {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 0.8 !important;
    /* Higher opacity for visibility */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    /* Disable JS mouse interaction override */
    transform: none !important;
    animation: floatUpSwing 15s infinite linear !important;
    /* Continuous smooth flow */
}

/* Stagger animations for natural look */
.particle:nth-child(odd) {
    animation-duration: 18s !important;
    animation-delay: -5s !important;
}

.particle:nth-child(even) {
    animation-duration: 22s !important;
    animation-delay: -9s !important;
}

.particle:nth-child(3n) {
    animation-duration: 25s !important;
    animation-delay: -2s !important;
}

.particle::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.5rem;
    /* Larger default size */
    color: var(--ramadan-gold);
    display: block;
    animation: twinkle 4s ease-in-out infinite alternate;
}

/* Default to Star */
.particle::before {
    content: "\f005";
}

/* Mix in some Crescents */
.particle:nth-child(even)::before {
    content: "\f186";
    font-size: 1.2rem;
}

/* Mix in some Mosques */
.particle:nth-child(3n)::before {
    content: "\f678";
    font-size: 1.1rem;
}

/* Gentle Floating Animation (Autonomous) */
@keyframes floatUpSwing {
    0% {
        transform: translateY(110vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(20px);
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 1));
    }
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {

    /* Adjust primary watermark (Moon) */
    body::before {
        font-size: 12rem;
        bottom: -20px;
        right: -10px;
        opacity: 0.05;
    }

    /* Adjust secondary watermark (Mosque) */
    body::after {
        font-size: 10rem;
        bottom: -15px;
        left: -10px;
        opacity: 0.04;
    }

    /* Ensure particles are visible on mobile */
    .particle {
        opacity: 0.9 !important;
    }

    .particle::before {
        font-size: 1rem !important;
        /* Readable size on mobile */
    }

    /* Center header background decoration for mobile */
    header::after {
        display: block !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 50px !important;
        height: 80px !important;
        background-image: url('../../images/lantern.svg');
        background-size: contain;
        background-repeat: no-repeat;
        animation: swingMobile 3s ease-in-out infinite alternate !important;
    }

    /* Mobile Bottom Dock Theming */
    .mobile-dock-container {
        border: 1px solid rgba(255, 215, 0, 0.3) !important;
        background: rgba(0, 50, 0, 0.85) !important;
        /* Deep Green Glass */
        box-shadow: 0 -5px 20px rgba(255, 215, 0, 0.15) !important;
        backdrop-filter: blur(15px) !important;
    }

    .dock-item i {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .dock-item.active {
        background: rgba(255, 215, 0, 0.2) !important;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
        border: 1px solid rgba(255, 215, 0, 0.3) !important;
        transform: translateY(-5px);
    }

    .dock-item.active i {
        color: #FFD700 !important;
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    }
}

@keyframes swingMobile {
    0% {
        transform: translateX(-50%) rotate(5deg);
    }

    100% {
        transform: translateX(-50%) rotate(-5deg);
    }
}