/**
 * Loading Screen Styles
 * Loading screen, overlay, content, enter button and animations
 */

/* Loading Screen - Minimalist Design */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

/* Loading Overlay - Moves up as loading progresses */
#loading-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 1001;
    transition: transform 2s ease;
    will-change: transform;
}

.loading-content {
    text-align: center;
    z-index: 1002;
    position: relative;
    padding: 20px;
    max-width: 90%;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 240px;
    max-height: 240px;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
}

.tagline-text {
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    color: #2e7d32;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.subtitle-text {
    max-width: 500px;
    margin: 0 auto 40px;
    color: #9D9D9D;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
}

.enter-button {
    position: relative;
    background: white;
    color: #0a0a0a;
    border: 1px solid rgba(10, 10, 10, 0.15);
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.08);
    transition: opacity 2s ease-in-out, visibility 2s ease-in-out, box-shadow 0.25s ease-in-out;
    margin-bottom: 60px;
    font-family: inherit;
    transform: translateY(0px) scale(1);
    will-change: transform, box-shadow, opacity;
    overflow: hidden;
    z-index: 1;
}

/* Black fill background - rises from bottom */
.enter-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #0a0a0a;
    transition: height 0.25s ease-in-out;
    z-index: -1;
}

/* Text + Arrow container for synchronized animation */
.enter-button > span {
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Arrow styling */
.enter-button .arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.25s ease-in-out;
}

/* Cursor approach - subtle lift */
@media (hover: hover) {
    .enter-button:not(:disabled):hover {
        box-shadow: 0 8px 20px rgba(10, 10, 10, 0.12), 0 3px 8px rgba(10, 10, 10, 0.08);
        border-color: rgba(10, 10, 10, 0.25);
    }

    /* Black fill rises up on hover */
    .enter-button:not(:disabled):hover::before {
        height: 100%;
    }

    /* Text animation: black goes DOWN, white drops from TOP to center */
    .enter-button:not(:disabled):hover > span {
        animation: textDropIn 0.25s ease-in-out forwards;
    }

    /* Arrow shifts right during hover */
    .enter-button:not(:disabled):hover .arrow {
        transform: translateX(2px);
    }
}

/* Hover exit animation: white goes UP, black comes from BOTTOM to center */
.enter-button:not(:disabled):not(:hover) > span {
    animation: textDropOut 0.25s ease-in-out forwards;
}

/* HOVER IN: Black text drops down, white text drops from top to center */
@keyframes textDropIn {
    0% {
        transform: translateY(0);
        color: #0a0a0a;
    }

    49% {
        transform: translateY(50px);
        color: #0a0a0a;
    }

    50% {
        transform: translateY(-50px);
        color: white;
    }

    100% {
        transform: translateY(0);
        color: white;
    }
}

/* HOVER OUT: White text goes up, black text rises from bottom to center */
@keyframes textDropOut {
    0% {
        transform: translateY(0);
        color: white;
    }

    49% {
        transform: translateY(-50px);
        color: white;
    }

    50% {
        transform: translateY(50px);
        color: #0a0a0a;
    }

    100% {
        transform: translateY(0);
        color: #0a0a0a;
    }
}

/* Active/Click state - only shadow change */
.enter-button:not(:disabled):active {
    box-shadow: 0 3px 10px rgba(10, 10, 10, 0.1), 0 1px 4px rgba(10, 10, 10, 0.06);
    transition: all 0.1s ease-in-out;
}

/* Arrow nudges forward on click */
.enter-button:not(:disabled):active .arrow {
    transform: translateX(4px);
    transition: transform 0.1s ease-in-out;
}

/* Disabled state */
.enter-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(0px) scale(1);
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.05);
}

/* Disabled state - prevent animations */
.enter-button:disabled > span {
    animation: none !important;
}

/* Focus state for accessibility */
.enter-button:focus-visible {
    outline: 2px solid rgba(10, 10, 10, 0.4);
    outline-offset: 3px;
}

.bottom-link {
    display: block;
    font-size: 11px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 2s ease-in-out, visibility 2s ease-in-out, color 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bottom-link:hover {
    color: #666;
}
