/**
 * Landing 2.0 - Videos Block (Product Story & Videos)
 * 2-column layout: Video card (left) + Title/body (right)
 * Bottom: Progress track + navigation arrows
 */

/* CSS Custom Properties */
.landing-2-videos {
    --videos-bg: #FFFFFF;
    --videos-title-color: #434343;
    --videos-text-color: #666;
    --videos-text-light: #888;
    --videos-radius: 20px;
    --videos-radius-sm: 16px;
    --videos-section-padding: 80px;
    --videos-content-gap: 60px;
    --videos-track-bg: #E8E8E8;
    --videos-track-active: #434343;
    --videos-btn-bg: #FFFFFF;
    --videos-btn-border: #E8E8E8;
    --videos-btn-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --videos-overlay-bg: rgba(0, 0, 0, 0.4);
}

/* Section Container */
.landing-2-videos {
    background-color: var(--videos-bg);
    padding: var(--videos-section-padding) 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.landing-2-videos__wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 2-Column Content Grid */
.landing-2-videos__content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--videos-content-gap);
    align-items: center;
    margin-bottom: 60px;
}

/* ============================================
   Left Column: Video Card
   ============================================ */
.landing-2-videos__video-col {
    position: relative;
}

.landing-2-videos__video-card {
    position: relative;
    width: 100%;
    border-radius: var(--videos-radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

/* Video/Image Element */
.landing-2-videos__video,
.landing-2-videos__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pause/Play Button Overlay - Bottom Right */
.landing-2-videos__control-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
}

.landing-2-videos__pause-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--videos-overlay-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.landing-2-videos__pause-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.landing-2-videos__pause-btn svg {
    width: 16px;
    height: 16px;
}

/* Play icon (hidden when playing) */
.landing-2-videos__pause-btn .icon-play {
    display: none;
}

.landing-2-videos__video-card.is-paused .landing-2-videos__pause-btn .icon-pause {
    display: none;
}

.landing-2-videos__video-card.is-paused .landing-2-videos__pause-btn .icon-play {
    display: block;
}

/* ============================================
   Right Column: Text Content
   ============================================ */
.landing-2-videos__text-col {
    max-width: 520px;
}

.landing-2-videos__title {
    font-size: 42px;
    font-weight: 500;
    color: var(--videos-title-color);
    margin: 0 0 24px 0;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.landing-2-videos__description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--videos-text-color);
    margin: 0;
}

/* ============================================
   Bottom Navigation Row
   ============================================ */
.landing-2-videos__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
}

/* Progress Track Line */
.landing-2-videos__track {
    flex: 1;
    height: 2px;
    background-color: var(--videos-track-bg);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.landing-2-videos__track-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--videos-track-active);
    border-radius: 1px;
    width: 25%; /* Will be updated by JS based on current slide */
    transition: width 0.3s ease;
}

/* Arrow Buttons Container */
.landing-2-videos__arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Arrow Buttons */
.landing-2-videos__arrow-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--videos-btn-border);
    background: var(--videos-btn-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--videos-title-color);
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: var(--videos-btn-shadow);
}

.landing-2-videos__arrow-btn:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.landing-2-videos__arrow-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.landing-2-videos__arrow-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ============================================
   Video Thumbnails (for multiple videos)
   ============================================ */
.landing-2-videos__thumbnails {
    display: none; /* Hidden for single video, shown when multiple */
}

.landing-2-videos--has-multiple .landing-2-videos__thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.landing-2-videos__thumb {
    width: 80px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-2-videos__thumb:hover {
    transform: scale(1.05);
}

.landing-2-videos__thumb.is-active {
    border-color: var(--videos-track-active);
}

.landing-2-videos__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Responsive - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .landing-2-videos {
        --videos-section-padding: 60px;
        --videos-content-gap: 40px;
    }

    .landing-2-videos__wrapper {
        padding: 0 30px;
    }

    .landing-2-videos__content {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 50px;
    }

    .landing-2-videos__title {
        font-size: 36px;
    }

    .landing-2-videos__video-card {
        border-radius: var(--videos-radius-sm);
    }
}

/* ============================================
   Responsive - Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
    .landing-2-videos {
        --videos-section-padding: 50px;
        --videos-content-gap: 32px;
    }

    .landing-2-videos__wrapper {
        padding: 0 20px;
    }

    .landing-2-videos__content {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .landing-2-videos__text-col {
        max-width: 100%;
        order: 2;
    }

    .landing-2-videos__video-col {
        order: 1;
    }

    .landing-2-videos__title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .landing-2-videos__description {
        font-size: 15px;
    }

    .landing-2-videos__video-card {
        border-radius: 14px;
    }

    .landing-2-videos__control-overlay {
        bottom: 12px;
        right: 12px;
    }

    .landing-2-videos__pause-btn {
        width: 36px;
        height: 36px;
    }

    .landing-2-videos__pause-btn svg {
        width: 14px;
        height: 14px;
    }

    .landing-2-videos__nav {
        gap: 16px;
    }

    .landing-2-videos__arrow-btn {
        width: 40px;
        height: 40px;
    }

    .landing-2-videos__arrow-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Responsive - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    .landing-2-videos {
        --videos-section-padding: 40px;
    }

    .landing-2-videos__title {
        font-size: 26px;
    }

    .landing-2-videos__video-card {
        border-radius: 12px;
    }

    .landing-2-videos__pause-btn {
        width: 32px;
        height: 32px;
    }

    .landing-2-videos__arrow-btn {
        width: 36px;
        height: 36px;
    }

    .landing-2-videos__arrow-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   Hidden State for Carousel
   ============================================ */
.landing-2-videos__video-card.is-hidden {
    display: none;
}

/* ============================================
   Empty/Placeholder State
   ============================================ */
.landing-2-videos__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
    font-size: 14px;
}

.landing-2-videos__placeholder-icon {
    width: 64px;
    height: 64px;
    color: #bbb;
}

.landing-2-videos__placeholder-icon svg {
    width: 100%;
    height: 100%;
}
