/**
 * SPA Navigation and Splash Screen Styles
 */

/* Splash Screen */
.atheer-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.atheer-splash-screen.hiding {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.splash-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.splash-logo {
    max-width: 200px;
    max-height: 200px;
    height: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.splash-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #0078a0;
    animation: dotPulse 1.5s infinite ease-in-out;
}

.spinner-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.spinner-dot:nth-child(4) {
    animation-delay: 0.6s;
}

.spinner-dot:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(0.5); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
}

/* SPA Navigation States */
body.ajax-loading {
    cursor: wait;
}

body.ajax-loading * {
    pointer-events: none;
}

/* Persistent player styles */
body.player-active .sticky-player {
    display: block !important;
    visibility: visible !important;
    z-index: 1000;
}

/* SPA Link hover effect */
a.spa-link {
    transition: color 0.2s ease-in-out;
}

/* Page Transition Animation */
.content-area {
    animation: fadeInContent 0.3s ease-in-out;
}

@keyframes fadeInContent {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* RTL support for splash screen */
html[dir="rtl"] .splash-spinner {
    flex-direction: row-reverse;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .splash-logo {
        max-width: 150px;
        max-height: 150px;
    }
    
    .spinner-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .atheer-splash-screen {
        background-color: #1a1a1a;
    }
    
    .spinner-dot {
        background-color: #00a0e3;
    }
} 