/* Fullscreen Overlay System */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.fullscreen-overlay.active {
    opacity: 1;
}

.fullscreen-overlay-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    animation: overlay-content-appear 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes overlay-content-appear {
    0% {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Close hint for users */
.fullscreen-overlay::before {
    content: 'Click outside to close';
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    pointer-events: none;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.fullscreen-overlay:not(.active)::before {
    opacity: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fullscreen-overlay {
        padding: 1rem;
    }
    
    .fullscreen-overlay::before {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fullscreen-overlay,
    .fullscreen-overlay-content {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
    
    @keyframes overlay-content-appear {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }
}

