/* Ramadan Kareem - أنماط وتأثيرات رمضان */

/* تزيين كامل الصفحة - فوانيس وهلال ونجوم */
.ramadan-page-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.float-moon {
    position: absolute;
    width: 36px;
    height: 36px;
    opacity: 0.45;
    color: #ffd700;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
    animation: float-glow 3s ease-in-out infinite;
}

.float-moon .icon-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* فوانيس ذهبية أنيقة */
.float-lantern {
    position: absolute;
    width: 32px;
    height: 44px;
    opacity: 0.4;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    animation: lantern-sway 4s ease-in-out infinite;
}

.float-lantern .icon-svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes lantern-sway {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

/* تأثير بوكيه - أضواء دائرية ناعمة */
.ramadan-bokeh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0) 70%);
    animation: bokeh-pulse 4s ease-in-out infinite;
}

.bokeh-dot:nth-child(1) { width: 80px; height: 80px; animation-delay: 0s; }
.bokeh-dot:nth-child(2) { width: 60px; height: 60px; left: auto; animation-delay: 0.5s; }
.bokeh-dot:nth-child(3) { width: 100px; height: 100px; animation-delay: 1s; }
.bokeh-dot:nth-child(4) { width: 70px; height: 70px; left: auto; animation-delay: 1.5s; }
.bokeh-dot:nth-child(5) { width: 90px; height: 90px; animation-delay: 2s; }
.bokeh-dot:nth-child(6) { width: 50px; height: 50px; left: auto; animation-delay: 2.5s; }

@keyframes bokeh-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 0.7; transform: scale(1.1); }
}


.float-crescent {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.5;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
    animation: float-glow 3s ease-in-out infinite;
}

.float-crescent .icon-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.float-crescent:nth-of-type(1) { animation-delay: 0s; }
.float-crescent:nth-of-type(2) { animation-delay: 0.8s; }
.float-crescent:nth-of-type(3) { animation-delay: 1.2s; }
.float-crescent:nth-of-type(4) { animation-delay: 0.4s; }

@keyframes float-glow {
    0%, 100% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 0.35; transform: scale(1.1); }
}

.float-star {
    position: absolute;
    width: 20px;
    height: 20px;
    color: #ffd700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    animation: float-twinkle 2.5s ease-in-out infinite;
}

.float-star .star-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.float-star:nth-of-type(1) { animation-delay: 0s; }
.float-star:nth-of-type(2) { animation-delay: 0.4s; }
.float-star:nth-of-type(3) { animation-delay: 0.8s; }
.float-star:nth-of-type(4) { animation-delay: 0.2s; }
.float-star:nth-of-type(5) { animation-delay: 1s; }
.float-star:nth-of-type(6) { animation-delay: 0.6s; }

@keyframes float-twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

@media (max-width: 768px) {
    .float-moon { width: 28px; height: 28px; opacity: 0.35; }
    .float-crescent { width: 30px; height: 30px; opacity: 0.4; }
    .float-lantern { width: 24px; height: 33px; opacity: 0.3; }
    .float-star { width: 14px; height: 14px; }
    .bokeh-dot:nth-child(1), .bokeh-dot:nth-child(3), .bokeh-dot:nth-child(5) { width: 50px; height: 50px; }
    .bokeh-dot:nth-child(2), .bokeh-dot:nth-child(4), .bokeh-dot:nth-child(6) { width: 40px; height: 40px; }
}

/* أيقونات البانر */
.ramadan-icon .icon-svg-banner {
    width: 28px;
    height: 28px;
    display: block;
    color: #ffd700;
}
.ramadan-icon.ramadan-moon .icon-svg-banner { width: 28px; height: 28px; }
.ramadan-icon.crescent .icon-svg-banner { width: 32px; height: 32px; }

/* بانر رمضان - خلفية كحلية مع التأثيرات */
.ramadan-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 14px 20px;
    text-align: center;
    z-index: 999;
    border-bottom: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ramadan-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
    animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.ramadan-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ramadan-icon {
    font-size: 1.8rem;
    animation: sway 2s ease-in-out infinite;
}

.ramadan-icon:nth-child(2) { animation-delay: 0.3s; }
.ramadan-icon:nth-child(4) { animation-delay: 0.6s; }

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.ramadan-text {
    color: #ffd700;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Cairo', 'Almarai', sans-serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@media (max-width: 576px) {
    .ramadan-text { font-size: 0.9rem; }
    .ramadan-icon { font-size: 1.4rem; }
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); }
}

.ramadan-subtext {
    color: #c9a227;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* قمر متحرك في البانر */
.ramadan-moon {
    display: inline-block;
    animation: moon-glow 2.5s ease-in-out infinite;
}

@keyframes moon-glow {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* نجوم متلألئة */
.ramadan-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700;
    animation: star-twinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { left: 8%; top: 30%; animation-delay: 0s; }
.star:nth-child(2) { left: 25%; top: 20%; animation-delay: 0.3s; }
.star:nth-child(3) { left: 50%; top: 25%; animation-delay: 0.6s; }
.star:nth-child(4) { left: 70%; top: 15%; animation-delay: 0.2s; }
.star:nth-child(5) { left: 85%; top: 30%; animation-delay: 0.5s; }
.star:nth-child(6) { left: 90%; top: 20%; animation-delay: 0.8s; }

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* هلال متحرك */
.crescent {
    font-size: 1.5rem;
    animation: crescent-pulse 2s ease-in-out infinite;
}

@keyframes crescent-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* ===== شريط رمضان المتحرك فوق خدماتنا ===== */
.ramadan-services-strip {
    position: relative;
    overflow: hidden;
    padding: 12px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 215, 0, 0.08);
}

/* خلفية إسلامية - نمط هندسي */
.ramadan-strip-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255, 215, 0, 0.08) 8px, rgba(255, 215, 0, 0.08) 16px),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255, 215, 0, 0.06) 8px, rgba(255, 215, 0, 0.06) 16px);
    pointer-events: none;
}

/* ماركوي رمضان - نسختان من المحتوى = تفاف سلس بدون انتهاء */
.ramadan-services-strip .marquee-wrapper {
    animation: ramadan-strip-scroll 25s linear infinite;
}

@keyframes ramadan-strip-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ramadan-services-strip .marquee-child-item {
    padding-left: 12px;
    padding-right: 12px;
    color: inherit;
}

.ramadan-services-strip .initial-child-container.ramadan-strip-row {
    flex-shrink: 0;
}

.ramadan-strip-item {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', 'Almarai', sans-serif;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    white-space: nowrap;
}

.ramadan-strip-icon {
    display: inline-flex;
    align-items: center;
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
}

.ramadan-strip-icon svg {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .ramadan-services-strip { padding: 10px 0; }
    .ramadan-strip-item { font-size: 0.9rem; }
    .ramadan-services-strip .marquee-child-item { padding-left: 8px; padding-right: 8px; }
}
