.eryal-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #0f172a 50%, #1e293b 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.eryal-loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.eryal-loading-screen.hidden {
    display: none !important;
}

.eryal-logo-container {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eryal-loading-logo {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.05em;
    animation: 
        eryalLogoScale 2s ease-in-out infinite,
        eryalColorShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    position: relative;
    user-select: none;
    cursor: default;
}

.eryal-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(139, 92, 246, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    animation: eryalGlowPulse 2s ease-in-out infinite;
    filter: blur(20px);
    z-index: -1;
}

.eryal-logo-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
    animation: eryalTextFade 2s ease-in-out infinite;
}

.eryal-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    animation: eryalTextFade 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
    min-height: 1.75rem; 
}

.eryal-progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.eryal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: 
        eryalProgressGradient 1.5s ease-in-out infinite;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    position: relative;
}

.eryal-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: eryalProgressShine 2s ease-in-out infinite;
}

.eryal-loading-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.eryal-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    animation: eryalDotBounce 1.5s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.eryal-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.eryal-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.eryal-loading-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1rem;
    max-width: 300px;
    line-height: 1.4;
}

.eryal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.eryal-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: eryalParticleFloat 6s linear infinite;
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.8);
}

body.loading .main-site-content {
    display: none;
}

body.loading {
    overflow: hidden;
}

@keyframes eryalLogoScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes eryalColorShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes eryalGlowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 0% 0%;
    }
}

@keyframes eryalTextFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes eryalProgressGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes eryalProgressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes eryalDotBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

@keyframes eryalParticleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .eryal-loading-logo {
        font-size: 3rem;
    }
    
    .eryal-loading-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .eryal-progress-container {
        width: 250px;
    }
    
    .eryal-logo-glow {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .eryal-loading-logo {
        font-size: 2.5rem;
    }
    
    .eryal-loading-text {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    .eryal-progress-container {
        width: 200px;
    }
    
    .eryal-logo-glow {
        width: 120px;
        height: 120px;
    }
    
    .eryal-loading-info {
        padding: 0 1.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 320px) {
    .eryal-loading-logo {
        font-size: 2rem;
    }
    
    .eryal-progress-container {
        width: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eryal-loading-logo {
        animation: eryalLogoScaleReduced 3s ease-in-out infinite;
    }
    
    .eryal-logo-glow,
    .eryal-progress-bar,
    .eryal-dot,
    .eryal-particle {
        animation: none;
    }
    
    .eryal-loading-screen {
        animation: none;
        background: #0f172a;
    }
    
    @keyframes eryalLogoScaleReduced {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }
}

@media (prefers-contrast: high) {
    .eryal-loading-screen {
        background: #000000;
    }
    
    .eryal-loading-logo {
        background: linear-gradient(135deg, #ffffff, #60a5fa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .eryal-loading-text {
        color: #ffffff;
    }
    
    .eryal-progress-container {
        background: #333333;
    }
    
    .eryal-progress-bar {
        background: #60a5fa;
    }
}

.eryal-loading-screen.dark-theme {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

.eryal-loading-screen.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
}

.eryal-loading-screen.light-theme .eryal-loading-text {
    color: rgba(0, 0, 0, 0.8);
}

.eryal-loading-screen.light-theme .eryal-progress-container {
    background: rgba(0, 0, 0, 0.1);
}

.eryal-debug .eryal-loading-screen {
    border: 2px solid #ff0000;
}

.eryal-force-loading .main-site-content {
    display: none !important;
}

.eryal-force-loading .eryal-loading-screen {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
}

@media print {
    .eryal-loading-screen {
        display: none !important;
    }
}