/**
 * Video Gallery Styles
 * Noble Atlas CI - Goldener Play-Button & Video-Integration
 * 
 * @package Noble_Frontend_Display
 * @since 2.6.0
 */

/* ====================================
   Video Main Display
   ==================================== */
.gallery-main-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-main-video-clickable {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Video Play Overlay - Gold (Noble Atlas CI) */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Golden Play Button */
.play-button-gold {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbc16d, #ecd292);
    border-radius: 50%;
    font-size: 32px;
    color: #1c1c1c;
    box-shadow: 0 8px 20px rgba(219, 193, 109, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    padding-left: 5px; /* Optical alignment for play icon */
}

.play-button-gold:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(219, 193, 109, 0.6);
    background: linear-gradient(135deg, #ecd292, #dbc16d);
}

.play-button-gold:active {
    transform: scale(1.05);
}

/* ====================================
   Video Thumbnail Badge (in Gallery)
   ==================================== */
.thumbnail-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.play-icon-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dbc16d, #ecd292);
    border-radius: 50%;
    font-size: 16px;
    color: #1c1c1c;
    box-shadow: 0 4px 12px rgba(219, 193, 109, 0.5);
    padding-left: 3px; /* Optical alignment */
}

.gallery-thumb:hover .play-icon-gold {
    transform: scale(1.1);
}

/* ====================================
   Lightbox Video Styling
   ==================================== */
.lightbox-video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #000;
}

/* Lightbox Thumbnail Video Icon */
.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #dbc16d, #ecd292);
    border-radius: 50%;
    font-size: 12px;
    color: #1c1c1c;
    box-shadow: 0 2px 8px rgba(219, 193, 109, 0.5);
    padding-left: 2px;
    pointer-events: none;
}

/* ====================================
   Responsive Adjustments
   ==================================== */
@media (max-width: 768px) {
    .play-button-gold {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .play-icon-gold {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .lightbox-video {
        max-width: 95vw;
        max-height: 70vh;
    }
}

/* ====================================
   Video Loading State
   ==================================== */
.gallery-main-video-container.loading::after {
    content: '⏳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* ====================================
   Bordell-Specific Gallery
   ==================================== */
.bordell-gallery .video-play-overlay,
.sedcard-gallery .video-play-overlay {
    /* Same styles apply to both */
}

/* ====================================
   Video Controls Customization (optional)
   ==================================== */
.lightbox-video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(28, 28, 28, 0.9), transparent);
}

.lightbox-video::-webkit-media-controls-play-button {
    background: linear-gradient(135deg, #dbc16d, #ecd292);
    border-radius: 50%;
}

