/* ================================
   PASSWORD GATE STYLES
   ================================ */

.password-protected {
    position: relative;
}

.password-gate {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    min-height: 500px;
}

/* Password gate with background image for Haarausfall section */
#haarausfall-section .password-gate {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('../images/haarausfall-bg.jpg') center/cover no-repeat;
    backdrop-filter: blur(2px);
}

.password-gate.unlocked {
    animation: fadeOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.password-gate-content {
    max-width: 400px;
    text-align: center;
    padding: var(--menst-s-8);
}

.lock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--menst-s-5);
    color: var(--menst-accent);
}

.password-gate-content h3 {
    color: var(--menst-ink);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--menst-s-3);
}

.password-gate-content > p {
    color: var(--menst-steel);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--menst-s-6);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: var(--menst-s-4);
}

.password-input {
    padding: var(--menst-s-4);
    border: 2px solid var(--menst-stone);
    border-radius: var(--menst-r-md);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.1em;
}

.password-input:focus {
    outline: none;
    border-color: var(--menst-accent);
    box-shadow: 0 0 0 3px rgba(99, 155, 229, 0.1);
}

.password-input.error {
    border-color: var(--menst-danger);
    animation: shake 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.password-error {
    color: var(--menst-danger);
    font-size: 0.875rem;
    margin-top: var(--menst-s-2);
}

.protected-content.unlocked {
    filter: none !important;
    pointer-events: auto !important;
    animation: unblur 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes unblur {
    from {
        filter: blur(20px);
        opacity: 0.5;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Before/After Images */
.real-before-after-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--menst-r-lg);
    overflow: hidden;
    background: var(--menst-frost);
}

.ba-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    padding: var(--menst-s-4);
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
}

.overlay-labels {
    display: flex;
    gap: var(--menst-s-3);
    width: 100%;
}

.overlay-before,
.overlay-after {
    padding: var(--menst-s-2) var(--menst-s-4);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--menst-r-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--menst-ink);
}

/* Responsive */
@media (max-width: 767px) {
    .password-gate-content {
        padding: var(--menst-s-6);
    }

    .lock-icon {
        width: 48px;
        height: 48px;
    }

    .password-gate-content h3 {
        font-size: 1.25rem;
    }
}
