/* Menu Item Video Gallery Styles - Extracted from menu/item.blade.php */
/* ============================================= */

/* Modern Video Gallery Styles */
.modern-video-section {
    margin: 30px 0;
    position: relative;
}

.video-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8fafc;
}

.video-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #011166;
    font-size: 24px;
    font-weight: 700;
}

.video-title i {
    color: #dc2626;
    font-size: 20px;
}

.video-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    margin-left: 8px;
}

.modern-video-container {
    position: relative;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.modern-video-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.modern-video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.video-item-inner {
    position: relative;
}

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 16px 16px 0 0;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-video-item:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-video-item:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(220,38,38,0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modern-video-item:hover .play-button {
    transform: scale(1);
    background: rgba(220,38,38,1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 15px 20px;
}

.video-info h6 {
    margin: 0;
    color: #011166;
    font-size: 16px;
    font-weight: 600;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-modal-title {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.video-modal-close {
    background: rgba(220,38,38,0.2);
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.video-modal-close:hover {
    background: rgba(220,38,38,0.3);
    transform: scale(1.05);
}

.video-modal-content {
    padding: 0;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design for Videos */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-modal-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .video-modal-header {
        padding: 15px 20px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .video-title {
        font-size: 20px;
    }
    
    .video-modal-container {
        margin: 10px auto;
    }
    
    .video-modal-header {
        padding: 12px 15px;
    }
    
    .video-modal-title {
        font-size: 16px;
    }
}
