/* ===================================
   VIDEO SHOWCASE SECTION
   Featured videos on home page
   =================================== */

.video-showcase-section {
    padding: 80px 0;
    background: var(--near-black);
    position: relative;
    overflow: hidden;
}

.video-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.02) 10px,
            rgba(212, 175, 55, 0.02) 20px
        );
    pointer-events: none;
    z-index: 1;
}

.video-showcase-section .container {
    position: relative;
    z-index: 2;
}

/* Featured Videos Grid */
.featured-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Featured Video Card */
.featured-video-card {
    background: rgba(42, 42, 42, 0.5);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.featured-video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

/* Video Embed Container */
.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for Shorts */
    height: 0;
    overflow: hidden;
    background: #000;
}

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

/* Video Thumbnail Link */
.video-thumbnail-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-link:hover .video-thumbnail-img {
    transform: scale(1.05);
}

/* Video Play Overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-thumbnail-link:hover .video-play-overlay {
    opacity: 1;
}

/* Play Button */
.play-button {
    background: rgba(212, 175, 55, 0.95);
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.video-thumbnail-link:hover .play-button {
    transform: scale(1);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.7);
}

.play-button i {
    font-size: 2rem;
    color: var(--near-black);
}

.play-button span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--near-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Info */
.featured-video-info {
    padding: 1.5rem;
    background: rgba(26, 50, 9, 0.4);
}

.featured-video-info h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.featured-video-info p {
    color: var(--light-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-showcase-section {
        padding: 60px 0;
    }

    .featured-videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-embed-container {
        padding-bottom: 177.78%; /* Maintain 9:16 for mobile */
    }

    .featured-video-info {
        padding: 1.25rem;
    }

    .featured-video-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .featured-videos-grid {
        gap: 1rem;
    }

    .video-embed-container {
        padding-bottom: 177.78%;
    }

    .featured-video-info {
        padding: 1rem;
    }

    .featured-video-info h3 {
        font-size: 1rem;
    }

    .featured-video-info p {
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.video-embed-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.video-embed-container iframe {
    z-index: 2;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Play Button Hover Effect */
.featured-video-card::after {
    content: '\f04b'; /* Font Awesome play icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.featured-video-card:hover::after {
    opacity: 0.3;
}
