/**
 * Poster Lightbox Styles
 * Simple, lightweight lightbox for movie poster full-size viewing
 */

/* Lightbox Overlay - Full screen dark backdrop */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease-in-out;
}

/* Fade in animation */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Lightbox Image - Centered, responsive */
.lightbox-image {
    max-width: 90vw;
    max-height: 98vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Close Button - Top right corner */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    padding: 0;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close:active {
    transform: scale(0.95);
}

/* Clickable poster cursor */
.poster-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.poster-clickable:hover {
    opacity: 0.9;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .lightbox-image {
        max-width: 95vw;
        max-height: 98vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Loading State (optional enhancement) */
.lightbox-image[src=""] {
    opacity: 0;
}

.lightbox-image:not([src=""]) {
    animation: imageLoad 0.3s ease-in-out;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
