/**
 * Text Video Hero Section Styles
 * LCP/FCP Optimized
 * 
 * @package Starter Theme
 * @version 1.0.0
 */

/* ==================== BASE CONTAINER ==================== */
.text-video-hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.text-video-hero-section * {
    box-sizing: border-box;
}

/* ==================== VIDEO BACKGROUND ==================== */
.text-video-hero-section__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
}

.text-video-hero-section__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Poster Image - LCP Optimization */
.text-video-hero-section__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.text-video-hero-section__poster.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Fallback Background Image */
.text-video-hero-section__fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    border-radius: inherit;
}

/* ==================== OVERLAY ==================== */
.text-video-hero-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
}

/* ==================== CONTENT ==================== */
.text-video-hero-section__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
}

/* Main Title */
.text-video-hero-section__title {
    font-family: inherit;
    font-weight: 700;
    margin: 0 0 50px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ==================== SECTIONS ==================== */
.text-video-hero-section__sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.text-video-hero-section__section {
    padding: 30px 0;
}

.text-video-hero-section__section-title {
    font-family: inherit;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.text-video-hero-section__section-text {
    font-family: inherit;
    font-weight: 400;
    margin: 0;
    line-height: 1.7;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== DIVIDER ==================== */
.text-video-hero-section__divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    margin: 0 auto;
    opacity: 0.3;
}

/* ==================== LOADING STATE ==================== */
.text-video-hero-section.is-loading .text-video-hero-section__poster {
    opacity: 1;
}

.text-video-hero-section.is-loaded .text-video-hero-section__poster {
    opacity: 0;
}

/* ==================== PLAY BUTTON (Optional) ==================== */
.text-video-hero-section__play-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.text-video-hero-section__play-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.text-video-hero-section__play-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    margin-left: 3px;
}

.text-video-hero-section__play-btn.is-playing svg {
    margin-left: 0;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 1024px) {
    .text-video-hero-section {
        min-height: 450px;
    }
    
    .text-video-hero-section__content {
        padding: 50px 25px;
    }
    
    .text-video-hero-section__title {
        margin-bottom: 40px;
    }
    
    .text-video-hero-section__sections {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .text-video-hero-section {
        min-height: 400px;
    }
    
    .text-video-hero-section__content {
        padding: 40px 20px;
    }
    
    .text-video-hero-section__title {
        margin-bottom: 30px;
    }
    
    .text-video-hero-section__sections {
        gap: 25px;
    }
    
    .text-video-hero-section__section {
        padding: 20px 0;
    }
    
    .text-video-hero-section__section-title {
        margin-bottom: 15px;
    }
    
    .text-video-hero-section__play-btn {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    
    .text-video-hero-section__play-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 480px) {
    .text-video-hero-section {
        min-height: 350px;
    }
    
    .text-video-hero-section__content {
        padding: 30px 15px;
    }
    
    .text-video-hero-section__title {
        margin-bottom: 25px;
    }
    
    .text-video-hero-section__sections {
        gap: 20px;
    }
    
    .text-video-hero-section__section {
        padding: 15px 0;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    .text-video-hero-section__video {
        display: none;
    }
    
    .text-video-hero-section__poster {
        opacity: 1 !important;
    }
    
    .text-video-hero-section__play-btn {
        display: none;
    }
}

/* ==================== PRINT ==================== */
@media print {
    .text-video-hero-section {
        min-height: auto;
        background: #1a1a1a;
    }
    
    .text-video-hero-section__video-wrapper,
    .text-video-hero-section__play-btn {
        display: none;
    }
    
    .text-video-hero-section__poster {
        position: static;
        max-height: 300px;
    }
}