/* ========================================
   RAMADAN SPLASH SCREEN - Lothan Hospital
   ======================================== */

/* Overlay */
.ramadan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #2c3e50 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.ramadan-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.ramadan-overlay.hidden {
    display: none;
}

/* Stars background */
.ramadan-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.ramadan-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: ramadanTwinkle 2s infinite ease-in-out;
}

@keyframes ramadanTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Lanterns */
.ramadan-lanterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.ramadan-lantern {
    position: absolute;
    top: -50px;
    animation: ramadanSwingLantern 3s ease-in-out infinite;
}

.ramadan-lantern:nth-child(1) { left: 8%; animation-delay: 0s; }
.ramadan-lantern:nth-child(2) { left: 25%; animation-delay: 0.5s; }
.ramadan-lantern:nth-child(3) { right: 25%; animation-delay: 1s; }
.ramadan-lantern:nth-child(4) { right: 8%; animation-delay: 1.5s; }

@keyframes ramadanSwingLantern {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.ramadan-lantern-body {
    width: 35px;
    height: 50px;
    background: linear-gradient(180deg, #c9a227 0%, #8b6914 100%);
    border-radius: 5px 5px 18px 18px;
    position: relative;
    margin: 0 auto;
    box-shadow: 
        inset 0 0 15px rgba(255, 200, 100, 0.8),
        0 0 25px rgba(255, 165, 0, 0.5);
}

.ramadan-lantern-body::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 12px;
    background: #8b6914;
    border-radius: 5px 5px 0 0;
}

.ramadan-lantern-body::after {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 25px;
    background: linear-gradient(to bottom, transparent, #8b6914);
}

.ramadan-lantern-glow {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 25px;
    background: radial-gradient(ellipse, rgba(255, 200, 100, 0.9) 0%, transparent 70%);
    animation: ramadanFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes ramadanFlicker {
    0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Decorative elements */
.ramadan-decoration {
    position: absolute;
    font-size: 20px;
    color: rgba(255, 215, 0, 0.3);
    animation: ramadanFloat 6s ease-in-out infinite;
    z-index: 2;
}

.ramadan-decoration:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.ramadan-decoration:nth-child(2) { top: 25%; right: 12%; animation-delay: 1s; }
.ramadan-decoration:nth-child(3) { bottom: 35%; left: 12%; animation-delay: 2s; }
.ramadan-decoration:nth-child(4) { bottom: 30%; right: 8%; animation-delay: 3s; }

@keyframes ramadanFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Main Content */
.ramadan-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 30px;
    animation: ramadanFadeInUp 1s ease-out;
    max-width: 400px;
}

@keyframes ramadanFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Crescent Moon */
.ramadan-moon {
    position: relative;
    margin-bottom: 20px;
    animation: ramadanFloatMoon 4s ease-in-out infinite;
}

@keyframes ramadanFloatMoon {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.ramadan-crescent {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 80px rgba(255, 215, 0, 0.3),
        inset -18px -8px 0 0 #0d1b2a;
    margin: 0 auto;
    position: relative;
}

.ramadan-crescent::after {
    content: '★';
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 22px;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: ramadanStarPulse 1.5s ease-in-out infinite;
}

@keyframes ramadanStarPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* Logo */
.ramadan-logo {
    margin-bottom: 20px;
    animation: ramadanFadeIn 1.5s ease-out 0.3s both;
}

.ramadan-logo img {
    width: 140px;
    height: auto;
    animation: ramadanLogoGlow 3s ease-in-out infinite;
}

@keyframes ramadanLogoGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(91, 164, 181, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(91, 164, 181, 0.8)); }
}

@keyframes ramadanFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Greeting */
.ramadan-greeting {
    animation: ramadanFadeIn 1.5s ease-out 0.5s both;
}

.ramadan-greeting-ar {
    font-size: 42px;
    color: #ffd700;
    font-weight: bold;
    font-family: 'Traditional Arabic', 'Simplified Arabic', 'Arial', serif;
    text-shadow: 
        0 0 25px rgba(255, 215, 0, 0.5),
        0 3px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.ramadan-greeting-en {
    font-size: 22px;
    color: #e8d5b7;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ramadan-subgreeting {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    animation: ramadanFadeIn 1.5s ease-out 0.7s both;
    line-height: 1.6;
}

.ramadan-subgreeting-ar {
    font-size: 16px;
    font-family: 'Traditional Arabic', 'Simplified Arabic', 'Arial', serif;
    color: rgba(255, 215, 0, 0.7);
    margin-top: 5px;
}

/* Iftar Countdown */
.ramadan-iftar {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: ramadanFadeIn 1.5s ease-out 0.9s both;
}

.ramadan-iftar-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ramadan-iftar-label-ar {
    font-family: 'Traditional Arabic', 'Simplified Arabic', 'Arial', serif;
    color: #ffd700;
}

.ramadan-iftar-time {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

.ramadan-iftar-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.ramadan-iftar-status.iftar-time {
    color: #4ade80;
    font-size: 16px;
    font-weight: bold;
    animation: ramadanPulse 1s ease-in-out infinite;
}

@keyframes ramadanPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Continue Button */
.ramadan-btn {
    margin-top: 25px;
    padding: 12px 40px;
    font-size: 16px;
    color: #0d1b2a;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    animation: ramadanFadeIn 1.5s ease-out 1.1s both;
    font-family: inherit;
}

.ramadan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.6);
}

.ramadan-btn:active {
    transform: translateY(0);
}

/* Mosque Silhouette */
.ramadan-mosque {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.ramadan-mosque svg {
    width: 100%;
    height: 100%;
}

/* Skip button */
.ramadan-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 20;
}

.ramadan-skip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 480px) {
    .ramadan-content {
        padding: 20px;
    }
    
    .ramadan-greeting-ar {
        font-size: 32px;
    }
    
    .ramadan-greeting-en {
        font-size: 18px;
    }
    
    .ramadan-crescent {
        width: 60px;
        height: 60px;
    }
    
    .ramadan-logo img {
        width: 120px;
    }
    
    .ramadan-iftar-time {
        font-size: 28px;
    }
    
    .ramadan-lantern-body {
        width: 28px;
        height: 40px;
    }
}

/* ========================================
   IFTAR MODE - Sunset Colors
   ======================================== */

.ramadan-overlay.iftar-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #4a1942 30%, #803d3b 60%, #c96a3d 100%);
}

.ramadan-overlay.iftar-mode .ramadan-crescent {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    box-shadow: 
        0 0 50px rgba(255, 107, 53, 0.7),
        0 0 100px rgba(255, 215, 0, 0.4),
        inset -18px -8px 0 0 #4a1942;
}

.ramadan-overlay.iftar-mode .ramadan-lantern-body {
    box-shadow: 
        inset 0 0 20px rgba(255, 150, 100, 0.9),
        0 0 35px rgba(255, 107, 53, 0.7);
}

.ramadan-overlay.iftar-mode .ramadan-lantern-glow {
    background: radial-gradient(ellipse, rgba(255, 150, 100, 1) 0%, transparent 70%);
}

/* Iftar celebration box */
.ramadan-iftar.iftar-now {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    animation: iftarGlow 2s ease-in-out infinite;
}

@keyframes iftarGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.ramadan-iftar-emoji {
    font-size: 48px;
    margin: 10px 0;
    animation: iftarBounce 1s ease-in-out infinite;
}

@keyframes iftarBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ramadan-overlay.iftar-mode .ramadan-mosque svg path {
    fill: #1a1a2e;
}
