/* Loader Page Styles */
:root {
    --void: #000000;
    --light: #FFFFFF;
    --gold: #C9A962;
    --gold-glow: rgba(201, 169, 98, 0.6);
    --font-heading: 'Cinzel', serif;
    --font-body: 'EB Garamond', serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    color: var(--light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Container */
.loader-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Ambient Background Effect */
.loader-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Welcome Header */
.welcome-header {
    text-align: center;
    margin-bottom: 4rem;
    z-index: 1;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    font-size: 1.3rem;
    opacity: 0.7;
    font-style: italic;
    letter-spacing: 0.1em;
}

/* Button Trinity Layout */
.button-trinity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}

.button-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Trinity Buttons */
.trinity-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 140px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: var(--light);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.trinity-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.trinity-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.trinity-btn:hover .btn-icon {
    filter: grayscale(0);
}

.btn-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
}

/* Glow Effect Element */
.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold), transparent, var(--gold));
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    box-shadow:
        0 0 20px var(--gold-glow),
        0 0 40px var(--gold-glow),
        inset 0 0 20px rgba(201, 169, 98, 0.1);
}

/* Active Glow State */
.trinity-btn.glowing .btn-glow {
    opacity: 1;
}

.trinity-btn.glowing {
    border-color: var(--gold);
}

.trinity-btn.glowing .btn-icon {
    filter: grayscale(0) drop-shadow(0 0 10px var(--gold-glow));
}

/* Listen Button Special Styling */
.listen-btn {
    width: 260px;
    height: 160px;
}

.listen-btn .btn-icon {
    font-size: 3rem;
}

.listen-btn .btn-text {
    font-size: 1rem;
}

/* Footer */
.loader-footer {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    z-index: 1;
}

.verse-quote {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.verse-ref {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.3;
}

/* Glow Animation Keyframes */
@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        letter-spacing: 0.15em;
    }

    .welcome-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .button-trinity {
        gap: 1.5rem;
    }

    .button-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .trinity-btn,
    .listen-btn {
        width: 260px;
        height: 120px;
    }

    .btn-icon {
        font-size: 2rem;
    }

    .listen-btn .btn-icon {
        font-size: 2.5rem;
    }

    .loader-footer {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .welcome-header {
        margin-bottom: 2rem;
    }

    .trinity-btn,
    .listen-btn {
        width: 90vw;
        max-width: 280px;
    }
}