/* =============================
   Video Layout Variants - All 10 Styles
   ============================= */

.video-variant {
    padding: 60px 0;
}

/* ===== Variant 1: Masonry Grid ===== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
    margin-top: 40px;
}

.masonry-item--tall {
    grid-row: span 2;
}

.masonry-item--wide {
    grid-column: span 2;
}

.video-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: scale(1.03);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    padding: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

/* Always visible overlay */
.video-card__overlay--visible {
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover .video-card__overlay--visible {
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.3) 100%);
    padding-bottom: 25px;
}

.video-card__overlay h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-card__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-card__desc {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 8px;
}

/* Hint tooltip */
.video-card__hint {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(243, 205, 118, 0.95);
    color: var(--color-bg);
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.hint-icon {
    font-size: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.video-card:hover .video-card__hint {
    opacity: 0;
    transform: translateY(-10px);
}

.hint-text {
    white-space: nowrap;
}

/* ===== Variant 2: Carousel ===== */
.carousel-container {
    position: relative;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-video {
    text-align: center;
}

.carousel-video video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.carousel-video h3 {
    margin-top: 20px;
    color: var(--color-title);
    font-size: 24px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(243, 205, 118, 0.2);
    border: 2px solid var(--color-title);
    color: var(--color-title);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--color-title);
    color: var(--color-bg);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-title);
    transform: scale(1.3);
}

/* ===== Variant 3: Accordion ===== */
.accordion {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(243, 205, 118, 0.15);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--color-title);
    box-shadow: 0 5px 20px rgba(243, 205, 118, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(243, 205, 118, 0.05);
}

.accordion-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(90deg);
}

.accordion-title {
    flex: 1;
    text-align: left;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content video {
    width: 100%;
    display: block;
}

/* ===== Variant 4: Tabs ===== */
.video-tabs {
    margin-top: 40px;
}

.video-tabs__nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-tab {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(243, 205, 118, 0.2);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-tab:hover {
    background: rgba(243, 205, 118, 0.1);
    border-color: rgba(243, 205, 118, 0.4);
}

.video-tab.active {
    background: var(--color-title);
    border-color: var(--color-title);
    color: var(--color-bg);
    font-weight: 600;
}

.video-tabs__content {
    max-width: 900px;
    margin: 0 auto;
}

.video-tab-panel {
    display: none;
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-tab-panel.active {
    display: block;
}

.video-tab-panel video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-tab-panel h3 {
    margin-top: 20px;
    color: var(--color-title);
    font-size: 24px;
}

/* ===== Variant 5: Grid 3x2 ===== */
.video-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.grid-video-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grid-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(243, 205, 118, 0.2);
}

.grid-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-video-item:hover .grid-video-overlay {
    opacity: 1;
}

.grid-video-overlay h3 {
    color: #fff;
    font-size: 16px;
    margin: 0;
}

/* ===== Variant 6: Vertical Scroll Snap ===== */
.scroll-snap-container {
    height: 70vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    margin-top: 40px;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-title) rgba(255,255,255,0.1);
}

.snap-item {
    height: 70vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.snap-item video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.snap-item h3 {
    margin-top: 20px;
    color: var(--color-title);
    font-size: 28px;
}

/* ===== Variant 7: Overlapping Cards ===== */
.card-stack {
    position: relative;
    height: 500px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(243, 205, 118, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(100px) scale(0.9);
}

.stack-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
}

.stack-card video {
    width: 100%;
    height: calc(100% - 60px);
    object-fit: cover;
    border-radius: 12px;
}

.stack-card h3 {
    margin-top: 15px;
    color: var(--color-title);
    font-size: 24px;
    text-align: center;
}

.stack-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 30px auto 0;
    gap: 20px;
}

.stack-btn {
    padding: 12px 24px;
    background: rgba(243, 205, 118, 0.2);
    border: 2px solid var(--color-title);
    border-radius: 8px;
    color: var(--color-title);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stack-btn:hover {
    background: var(--color-title);
    color: var(--color-bg);
}

.stack-counter {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
}

/* ===== Variant 8: Split Screen Optimized ===== */
.split-screen-compact {
    margin-top: 40px;
}

.split-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    min-height: 300px;
}

.split-item--reverse {
    direction: rtl;
}

.split-item--reverse > * {
    direction: ltr;
}

.split-video {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.split-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-text h3 {
    color: var(--color-title);
    font-size: 24px;
    margin-bottom: 10px;
}

.split-text p {
    color: var(--color-muted);
    font-size: 16px;
}

/* ===== Variant 9: Video Wall ===== */
.video-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.wall-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wall-video:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(243, 205, 118, 0.3);
}

.wall-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wall-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wall-video:hover .wall-overlay {
    opacity: 1;
}

.wall-overlay h3 {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

/* ===== Variant 11: Full-width Accordion Cards ===== */
.update-accordion {
    margin-top: 40px;
    max-width: 100%;
}

.update-card {
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(243, 205, 118, 0.15);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgb(29, 16, 15);
}

.update-card.active {
    height: 640px;
    border-color: var(--color-title);
}

.update-card__header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    height: 100px;
    gap: 20px;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.update-card.active .update-card__header {
    opacity: 0;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.update-card__video-container {
    width: 120px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.update-card__video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-card__static-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.update-card__title-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.update-card__title {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.update-card__icon {
    font-size: 24px;
    color: var(--color-title);
    transition: transform 0.4s ease;
}

.update-card.active .update-card__icon {
    transform: rotate(180deg);
}

.update-card__content {
    /* max-height: 0; */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.update-card.active .update-card__content {
    /* max-height: 540px; */
    opacity: 1;
    transition-delay: 0.1s;
}

.update-card__expanded-title {
    display: none;
    color: #fff;
    font-size: 24px;
    margin: 0;
    padding: 20px 30px 10px 30px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.update-card.active .update-card__expanded-title {
    display: block;
}

.update-card__full-video {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.update-card__full-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-card__full-image {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.update-card__expanded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-card__description {
    padding: 20px 30px 10px 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
}

.update-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.update-feature-item {
    background: rgb(32 32 32 / 60%);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgb(0 0 0 / 30%), inset 0 -1px 3px rgb(0 0 0 / 30%);
}

.update-feature-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.feature-icon-inline {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0px;
    object-fit: contain;
    border-radius: 4px;
}

.update-card__description p {
    margin: 0 0 15px 0;
}

.update-card__description p:last-child {
    margin-bottom: 0;
}

/* Responsive for accordion cards */
@media (max-width: 768px) {
    .update-card.active {
        height: auto;
        min-height: 400px;
    }
    
    .update-card__full-video {
        height: 280px;
    }
    
    .update-card__full-image {
        height: 280px;
    }
    
    .update-card.active .update-card__content {
        max-height: none;
    }
    
    .update-card__header {
        padding: 12px 15px;
    }
    
    .update-card__video-container {
        width: 100px;
        height: 60px;
    }
    
    .update-card__title {
        font-size: 18px;
    }
    
    .update-card__expanded-title {
        font-size: 20px;
        padding: 15px 15px 8px 15px;
    }
    
    .update-card__description {
        padding: 15px;
        font-size: 14px;
    }
    
    .update-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .update-feature-item {
        padding: 12px 15px;
    }
}

/* ===== Variant 10: Horizontal Timeline ===== */
.timeline-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(243, 205, 118, 0.3);
    z-index: 0;
}

.timeline-dot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(243, 205, 118, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot.active {
    background: var(--color-title);
    border-color: var(--color-title);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(243, 205, 118, 0.5);
}

.dot-number {
    color: var(--color-text);
    font-size: 20px;
    font-weight: 600;
}

.timeline-dot.active .dot-number {
    color: var(--color-bg);
}

.timeline-video-display {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 500px;
}

.timeline-video {
    display: none;
    text-align: center;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline-video.active {
    display: block;
}

.timeline-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.timeline-video h3 {
    margin-top: 20px;
    color: var(--color-title);
    font-size: 28px;
}

/* Responsive for all variants */
@media (max-width: 992px) {
    /* V1 */
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-item--wide {
        grid-column: span 1;
    }
    
    /* V5 */
    .video-grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* V8 */
    .split-item {
        grid-template-columns: 1fr;
    }
    
    .split-item--reverse {
        direction: ltr;
    }
    
    /* V9 */
    .video-wall {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* V1 */
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-item--tall {
        grid-row: span 1;
    }
    
    /* V2 */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    /* V5 */
    .video-grid-3x2 {
        grid-template-columns: 1fr;
    }
    
    /* V7 */
    .card-stack {
        height: 400px;
    }
    
    /* V9 */
    .video-wall {
        grid-template-columns: 1fr;
    }
    
    /* V10 */
    .timeline-nav {
        gap: 10px;
    }
    
    .timeline-dot {
        width: 45px;
        height: 45px;
    }
    
    .dot-number {
        font-size: 16px;
    }
}
