﻿/* ========================================
   LOADING SCREEN — _loading_screen.css
   Replace the .loading-screen block in
   landing.css with this file.
   ======================================== */


/* ── Fullscreen overlay ─────────────────── */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(145deg, var(--dark-burgundy) 0%, var(--burgundy) 60%, var(--wine) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .loading-screen.fade-out {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }


/* ── Radial glow ────────────────────────── */
.ls-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(212, 175, 55, 0.12) 0%, rgba(107, 44, 62, 0.06) 55%, transparent 100%);
    pointer-events: none;
}


/* ── Diamond pattern ────────────────────── */
.ls-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polygon points="12,2 22,12 12,22 2,12" fill="none" stroke="%23D4AF37" stroke-width="0.35" opacity="0.12"/></svg>');
    background-size: 56px 56px;
    pointer-events: none;
}

@keyframes ls-pan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 56px 56px;
    }
}


/* ── Content column ─────────────────────── */
.ls-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}


/* ════════════════════════════════════════
   GEM ICON + ORBIT RINGS
   ════════════════════════════════════════ */

.ls-gem {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.2rem;
}

    .ls-gem i {
        font-size: 2.4rem;
        background: linear-gradient(135deg, var(--gold), var(--light-gold), var(--champagne));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.55));
        position: relative;
        z-index: 2;
    }

/* Orbit rings */
.ls-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    animation: ls-spin linear infinite;
}

.ls-orbit--1 {
    width: 64px;
    height: 64px;
    border-top-color: rgba(212, 175, 55, 0.7);
    animation-duration: 1.8s;
}

.ls-orbit--2 {
    width: 82px;
    height: 82px;
    border-right-color: rgba(212, 175, 55, 0.4);
    animation-duration: 3s;
    animation-direction: reverse;
}

@keyframes ls-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ════════════════════════════════════════
   BRAND NAME — letter-by-letter entrance
   ════════════════════════════════════════ */

.ls-brand {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.ls-brand__word {
    display: flex;
}

    .ls-brand__word span {
        display: inline-block;
        color: var(--champagne);
        opacity: 0;
        transform: translateY(18px);
        animation: ls-letter-in 0.5s ease forwards;
        /* stagger: base 0.1s + 0.06s per letter index */
        animation-delay: calc(0.1s + var(--i) * 0.06s);
    }

/* "Vault" word in gold */
.ls-brand__word--gold span {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes ls-letter-in {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    60% {
        opacity: 1;
        transform: translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Tagline ────────────────────────────── */
.ls-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(245, 230, 211, 0.55); /* champagne at 55% */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.8rem;
    opacity: 0;
    animation: ls-fade-in 0.5s ease forwards;
    animation-delay: 0.85s;
}

@keyframes ls-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Progress shimmer bar ───────────────── */
.ls-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    animation: ls-fade-in 0.4s ease forwards;
    animation-delay: 1s;
}

.ls-bar__fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--light-gold), var(--gold), transparent);
    background-size: 200% 100%;
    animation: ls-bar-grow 1.6s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards, ls-bar-shimmer 1.4s linear 1s infinite;
}

@keyframes ls-bar-grow {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes ls-bar-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
