/* Entrance Page Styles */

.entrance-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--deep-black) 0%, var(--black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.entrance-content {
    text-align: center;
    z-index: 10002;
    animation: fadeInEntrance 1.5s ease-out;
}

@keyframes fadeInEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entrance-logo {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--bright-silver);
    margin-bottom: 2rem;
    line-height: 1.2;
    /* Position text so gate splits between 'e' and 'f' */
    transform: translateX(0.799em);
}

.entrance-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--muted-silver);
    margin-bottom: 4rem;
    font-style: italic;
}

.entrance-button {
    display: inline-block;
    padding: 1.2rem 4rem;
    background-color: transparent;
    color: var(--bright-silver);
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: 2px solid var(--silver);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.entrance-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.3), transparent);
    transition: left 0.6s ease;
}

@media (hover: hover) {
    .entrance-button:hover::before {
        left: 100%;
    }

    .entrance-button:hover {
        background-color: var(--silver);
        border-color: var(--silver);
        color: var(--black);
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(192, 192, 192, 0.25);
    }
}

.entrance-button:active {
    background-color: var(--silver);
    border-color: var(--silver);
    color: var(--black);
    transform: translateY(-1px);
}

/* Gate Animation */
.gate {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100vh;
    background: linear-gradient(to bottom, var(--deep-black) 0%, var(--black) 100%);
    z-index: 10001;
    transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1);
}

.gate::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--silver), transparent);
}

.gate-left {
    left: 0;
    border-right: 1px solid var(--border-color);
}

.gate-left::before {
    right: 0;
}

.gate-right {
    right: 0;
    border-left: 1px solid var(--border-color);
}

.gate-right::before {
    left: 0;
}

/* Gate Opening Animation */
.gate-open .gate-left {
    transform: translateX(-100%);
}

.gate-open .gate-right {
    transform: translateX(100%);
}

.gate-open .entrance-content {
    animation: fadeOutEntrance 1s ease-out forwards;
}

@keyframes fadeOutEntrance {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Decorative elements on gates */
.gate::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3px;
    height: 150px;
    background: var(--silver);
    transform: translateY(-50%);
    opacity: 0.3;
}

.gate-left::after {
    right: 20px;
}

.gate-right::after {
    left: 20px;
}

/* Background pattern */
.entrance-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(192, 192, 192, 0.02) 2px, rgba(192, 192, 192, 0.02) 4px);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entrance-logo {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .entrance-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .entrance-button {
        padding: 1rem 3rem;
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    .gate::after {
        height: 100px;
    }

    .gate-left::after {
        right: 10px;
    }

    .gate-right::after {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .entrance-logo {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }

    .entrance-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        letter-spacing: 0.15em;
    }

    .entrance-button {
        padding: 0.9rem 2.5rem;
        font-size: 0.75rem;
    }

    .gate::after {
        height: 80px;
        width: 2px;
    }
}
