/* YouTube Mode Transition Overlay */
.youtube-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.youtube-transition-overlay.active {
    display: flex;
    opacity: 1;
}

.transition-content {
    text-align: center;
    color: white;
}

.transition-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.transition-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

/* Intro-to-Card Transition Overlay */
.intro-to-card-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99998; /* Below youtube-transition-overlay but above everything else */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.intro-to-card-transition.fade-in {
    opacity: 1;
}

.intro-to-card-transition.fade-out {
    opacity: 0;
}

/* Frosted Glass Zoom Handoff Transition */
.frosted-glass-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99997; /* Above intro/card, below black transition */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;

    /* Frosted glass effect with gradient */
    background: linear-gradient(
        135deg,
        rgba(255, 251, 245, 0.15) 0%,
        rgba(255, 228, 181, 0.12) 50%,
        rgba(255, 251, 245, 0.08) 100%
    );
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.frosted-glass-transition-overlay.visible {
    opacity: 1;
}

/* Zoom animation for intro (zoom out) */
@keyframes introZoomOut {
    from {
        transform: scale(1.0);
    }
    to {
        transform: scale(0.95);
    }
}

/* Zoom animation for card (zoom in) */
@keyframes cardZoomIn {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1.0);
    }
}

.intro-zoom-out {
    animation: introZoomOut 0.5s ease-in-out forwards;
}

.card-zoom-in {
    animation: cardZoomIn 0.5s ease-in-out forwards;
}
