/* ==================== LOADER ==================== */
.loader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo Text Animation */
.loader-logo {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(180deg, #f0d77e 0%, #d4af37 50%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: logo-pulse 1.5s ease-in-out infinite;
}

.loader-logo::after {
    content: 'JOHNNY';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #f0d77e 0%, #d4af37 50%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes logo-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.02);
        filter: brightness(1.2);
    }
}

/* Circular Spinner */
.loader-spinner {
    margin-top: 40px;
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 8px;
    border-top-color: #f0d77e;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    inset: 16px;
    border-top-color: #b8941f;
    animation-duration: 1.2s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.loader-progress {
    margin-top: 40px;
    width: 200px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b8941f, #d4af37, #f0d77e);
    border-radius: 2px;
    animation: progress-fill 2s ease-out forwards;
}

@keyframes progress-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Loading Text */
.loader-text {
    margin-top: 25px;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* Dots Animation */
.loader-dots {
    display: inline-block;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loader-dots::after {
    content: '';
    animation: dots-content 1.5s steps(4, end) infinite;
}

@keyframes dots-content {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}