/**
 * Full-Page Video Section Styles
 *
 * Styling for the configurable video/image background section
 *
 * @package PNK_Group
 * @since 2.0.0
 */

/* ==========================================
   Full-Page Video Section
   ========================================== */

.full-page-video-section {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm, 1rem);
    box-sizing: border-box;
    overflow: hidden;
}

/* Video/Image Background Wrapper */
.video-background-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Video Background */
.video-background {
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* Static Image Background */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Mobile Fallback Image (hidden by default, shown on mobile) */
.mobile-fallback-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Show fallback image on mobile, hide video */
@media (max-width: 768px) {
    .video-background {
        display: none;
    }

    .mobile-fallback-image {
        display: block;
    }
}

/* Dark Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Content Overlay */
.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

.video-content-inner {
    animation: fadeInUp 1s ease-out;
}

/* Heading */
.video-heading {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Subheading */
.video-subheading {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.video-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--brand-primary-blue);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-cta-button:hover {
    background-color: var(--brand-primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.video-cta-button:active {
    transform: translateY(0);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .video-heading {
        font-size: 3rem;
    }

    .video-subheading {
        font-size: 1.25rem;
    }

    .video-content {
        padding: 0 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .full-page-video-section {
        padding: 0 1rem;
    }

    .video-heading {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .video-subheading {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .video-cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .video-content {
        padding: 0 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .full-page-video-section {
        padding: 0 0.5rem;
    }

    .video-heading {
        font-size: 2rem;
    }

    .video-subheading {
        font-size: 1rem;
    }

    .video-cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.938rem;
    }
}

/* ==========================================
   Performance & Accessibility
   ========================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .video-background {
        animation: none;
    }

    .video-content-inner {
        animation: none;
    }

    .video-cta-button {
        transition: none;
    }

    .video-cta-button:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-heading,
    .video-subheading {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .video-overlay {
        opacity: 0.6 !important;
    }
}

/* Print styles */
@media print {
    .full-page-video-section {
        display: none;
    }
}

/* ==========================================
   Loading State
   ========================================== */

.video-background-wrapper.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   Mute/Unmute Toggle Button
   ========================================== */

.video-mute-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    color: white;
}

.video-mute-toggle:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: white;
    transform: scale(1.1);
}

.video-mute-toggle:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.video-mute-toggle svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-mute-toggle {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .video-mute-toggle svg {
        width: 20px;
        height: 20px;
    }
}
