/* ==========================================
   PAGE LOADER - JIOCOIN BLACK & GOLD THEME
   ========================================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

/* Logo Animation */
.loader-logo {
    margin-bottom: 30px;
    position: relative;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    /* Removed rotation - logo stays static */
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: logoSpin 2s linear infinite;
}

.logo-circle::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid transparent;
    border-bottom: 3px solid #B8860B;
    border-radius: 50%;
    animation: logoSpin 2s linear infinite reverse;
}

.logo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 2s ease-in-out infinite;
    padding: 8px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: logoGlow 2s ease-in-out infinite;
}

/* Text Animation */
.loader-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 50%, #FFD700 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: textShimmer 3s ease-in-out infinite;
}

.loader-text p {
    color: #E5E5E5;
    font-size: 1.1rem;
    margin: 0;
    animation: textFade 2s ease-in-out infinite;
}

/* Progress Bar */
.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 2px;
    margin: 30px auto 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #B8860B 50%, #FFD700 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: progressFill 3s ease-in-out infinite;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progressShine 2s ease-in-out infinite;
}

/* Floating Particles */
.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
    animation-duration: 4s;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 3.5s;
}

.particle:nth-child(4) {
    bottom: 35%;
    right: 10%;
    animation-delay: 1.5s;
    animation-duration: 4.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 2s;
    animation-duration: 3s;
}

.particle:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: 2.5s;
    animation-duration: 4s;
}

.particle:nth-child(7) {
    bottom: 50%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 3.5s;
}

.particle:nth-child(8) {
    top: 25%;
    left: 50%;
    animation-delay: 3.5s;
    animation-duration: 4.5s;
}

/* Animations */
/* logoRotate removed - logo stays static */

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

@keyframes textShimmer {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

@keyframes textFade {
    0%, 100% { 
        opacity: 0.7;
    }
    50% { 
        opacity: 1;
    }
}

@keyframes progressFill {
    0% { 
        width: 0%;
        background-position: 0% 50%;
    }
    50% { 
        width: 70%;
        background-position: 100% 50%;
    }
    100% { 
        width: 100%;
        background-position: 0% 50%;
    }
}

@keyframes progressShine {
    0% { 
        transform: translateX(-100%);
    }
    100% { 
        transform: translateX(100%);
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .logo-inner {
        width: 70px;
        height: 70px;
        padding: 6px;
    }
    
    .logo-image {
        width: 100%;
        height: 100%;
    }
    
    .loader-text h2 {
        font-size: 2rem;
    }
    
    .loader-progress {
        width: 250px;
    }
    
    .loader-particles .particle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .logo-inner {
        width: 60px;
        height: 60px;
        padding: 5px;
    }
    
    .logo-image {
        width: 100%;
        height: 100%;
    }
    
    .loader-text h2 {
        font-size: 1.8rem;
    }
    
    .loader-text p {
        font-size: 1rem;
    }
    
    .loader-progress {
        width: 200px;
    }
}
