/**
 * Video Carousel Lite - Main Styles
 * Version: 1.4.0
 */

:root {
    --vcl-card-radius: 16px;
    --vcl-gap: 16px;
    --vcl-shadow: 0 12px 36px rgba(0, 0, 0, .15);
    --vcl-overlay: rgba(0, 0, 0, .45);
    --vcl-overlay-hover: rgba(0, 0, 0, .65);
    --vcl-play-size: 54px;
    --vcl-aspect: 9/16;  /* Vertical optimal */
    --vcl-zoom: 1.02;
    --vcl-zoom-speed: .3s;
}

/* Container */
.vcl-wrap {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0 100px 0;  /* Alt için daha fazla boşluk */
}

.vcl-swiper {
    padding: 20px 60px;
    overflow: visible;
}

.vcl-slide {
    height: auto;
    max-height: 600px;
}

/* Card */
.vcl-card {
    position: relative;
    background: #0a0a0a;
    border-radius: var(--vcl-card-radius);
    overflow: hidden;
    box-shadow: var(--vcl-shadow);
    aspect-ratio: var(--vcl-aspect);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform var(--vcl-zoom-speed) ease-out, box-shadow .25s ease;
    isolation: isolate;
}

.vcl-card:hover {
    transform: translateY(-2px) scale(var(--vcl-zoom));
    box-shadow: 0 18px 52px rgba(0, 0, 0, .24);
}

/* Media Elements */
.vcl-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    z-index: 1;
    filter: saturate(0.98) contrast(1.05);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.vcl-video,
.vcl-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    z-index: 10;
    pointer-events: auto;
}

/* YouTube branding/overlay tamamen gizle */
.vcl-iframe {
    overflow: hidden;
}

/* Hide thumbnail when video is playing */
.vcl-card.vcl-playing .vcl-thumb {
    opacity: 0;
    pointer-events: none;
}

/* Overlay */
.vcl-dim {
    position: absolute;
    inset: 0;
    background: var(--vcl-overlay);
    transition: background .22s ease;
    z-index: 2;
}

.vcl-card:hover .vcl-dim {
    background: var(--vcl-overlay-hover);
}

/* Play Button */
.vcl-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--vcl-play-size);
    height: var(--vcl-play-size);
    border-radius: 50%;
    background: #ffffff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    transition: transform .2s ease, opacity .2s ease;
    opacity: .96;
}

.vcl-play::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, .6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2) inset;
}

.vcl-card:hover .vcl-play {
    transform: translate(-50%, -50%) scale(1.06);
}

.vcl-play svg {
    width: 24px;
    height: 24px;
}

/* Title */
.vcl-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 4;
    color: #fff;
    font: 700 14px/1.25 system-ui, -apple-system, Segoe UI, Roboto;
    letter-spacing: .1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
    pointer-events: none;
}

/* Gradient */
.vcl-gradient {
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .72) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Navigation Arrows - Alt ortada yan yana */
.vcl-nav {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.vcl-prev {
    margin-left: -60px;  /* Sol tarafa */
}

.vcl-next {
    margin-left: 10px;  /* Sağ tarafa - prev'den 10px boşluk */
}

.vcl-nav:hover {
    transform: translateX(-50%) scale(1.1);
}

.vcl-nav:active {
    transform: translateX(-50%) scale(1);
}

/* Font Awesome Icons (primary - will display if FA loads) */
.vcl-nav i {
    display: block;
    font-size: 20px;
    color: #ffffff;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* SVG Icons (fallback - will display if Font Awesome doesn't load) */
.vcl-nav svg.vcl-fallback-icon {
    display: none; /* Hidden by default */
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* If Font Awesome icon is empty (not loaded), show SVG */
.vcl-nav i:empty + svg.vcl-fallback-icon {
    display: block;
}

.vcl-nav svg path {
    stroke: #ffffff;
    stroke-width: 2.5px;
}

/* Ghost Placeholder */
.vcl-ghost {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.vcl-ghost::after {
    content: "";
    width: 40%;
    height: 40%;
    border-radius: 12px;
    background: #222;
}

/* Swiper Spacing - 5'li layout (2 + 1 center + 2) */
.vcl-swiper .swiper-wrapper {
    align-items: center;
}

.vcl-swiper .swiper-slide {
    width: auto;
    opacity: 0.5;
    transform: scale(0.85);
    transition: all 0.4s ease;
}

/* CENTER SLIDE - Ortadaki ana video */
.vcl-swiper .swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1);
    z-index: 10;
}

.vcl-swiper .swiper-slide-active .vcl-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

/* Yan videolar - Biraz daha görünür */
.vcl-swiper .swiper-slide-prev,
.vcl-swiper .swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.9);
}

/* Featured video extra vurgu */
.vcl-card.vcl-featured-slide {
    border: 2px solid rgba(102, 126, 234, 0.4);
}

.vcl-swiper .swiper-slide-active .vcl-card.vcl-featured-slide {
    box-shadow: 0 24px 64px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.6);
}

/* Playing State */
.vcl-card.vcl-playing {
    background: #000;
}

.vcl-card.vcl-playing .vcl-thumb {
    opacity: 1 !important;
    pointer-events: none;
}

.vcl-card.vcl-playing .vcl-dim,
.vcl-card.vcl-playing .vcl-play,
.vcl-card.vcl-playing .vcl-gradient {
    display: none !important;
}

/* Responsive */
@media (max-width: 1023px) {
    .vcl-swiper .swiper-slide {
        opacity: 0.6;
        transform: scale(0.9);
    }
    
    .vcl-swiper .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    :root {
        --vcl-gap: 14px;
        --vcl-play-size: 44px;
    }
    
    .vcl-wrap {
        padding: 20px 0 82px 0; /* 20px (ok bottom) + 52px (ok height) + 10px (boşluk) = 82px */
    }
    
    .vcl-swiper {
        padding: 12px 20px 15px 20px; /* Alt padding azaltıldı - ok ile video daha yakın */
    }
    
    /* Mobilde 3'lü layout: küçük + BÜYÜK (center) + küçük */
    .vcl-swiper .swiper-slide {
        opacity: 0.4;
        transform: scale(0.75);
        transition: all 0.4s ease;
    }
    
    /* ORTADAKI AKTİF VİDEO - NORMAL OPACITY */
    .vcl-swiper .swiper-slide-active {
        opacity: 1 !important;
        transform: scale(1);
        z-index: 10;
    }
    
    .vcl-swiper .swiper-slide-active .vcl-card {
        opacity: 1 !important;
    }
    
    /* Yan videolar - Küçük ve silik */
    .vcl-swiper .swiper-slide-prev,
    .vcl-swiper .swiper-slide-next {
        opacity: 0.4;
        transform: scale(0.75);
    }
    
    /* Video boyutları */
    .vcl-slide {
        max-height: 450px;
    }
    
    .vcl-card {
        max-height: 450px;
    }
    
    /* Navigation okları - Video ile daha yakın */
    .vcl-nav {
        width: 52px;
        height: 52px;
        bottom: 10px; /* Video ile daha yakın */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.3);
        border: 3px solid rgba(255, 255, 255, 0.25);
    }
    
    .vcl-nav i {
        font-size: 22px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    }
    
    .vcl-nav svg {
        width: 22px;
        height: 22px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    }
    
    .vcl-nav svg path {
        stroke: #ffffff;
        stroke-width: 3px;
    }
    
    .vcl-prev { margin-left: -58px; }
    .vcl-next { margin-left: 6px; }
}

@media (max-width: 480px) {
    :root {
        --vcl-play-size: 40px;
    }
    
    .vcl-wrap {
        padding: 15px 0 76px 0; /* 10px (ok bottom) + 56px (ok height) + 10px (boşluk) = 76px */
    }
    
    .vcl-swiper {
        padding: 10px 10px 15px 10px; /* Alt padding azaltıldı - ok ile video daha yakın */
    }
    
    /* Mobilde 3'lü düzen: yanlar daha küçük */
    .vcl-swiper .swiper-slide {
        opacity: 0.35;
        transform: scale(0.7);
    }
    
    /* ORTADAKI AKTİF VİDEO - NORMAL OPACITY */
    .vcl-swiper .swiper-slide-active {
        opacity: 1 !important;
        transform: scale(1);
    }
    
    .vcl-swiper .swiper-slide-active .vcl-card {
        opacity: 1 !important;
    }
    
    .vcl-swiper .swiper-slide-prev,
    .vcl-swiper .swiper-slide-next {
        opacity: 0.35;
        transform: scale(0.7);
    }
    
    /* Video boyutları - Ortadaki büyük */
    .vcl-slide {
        max-height: 420px;
    }
    
    .vcl-card {
        max-height: 420px;
        border-radius: 12px;
    }
    
    /* Navigation okları - Video ile daha yakın */
    .vcl-nav {
        width: 56px;
        height: 56px;
        bottom: 10px; /* Video ile daha yakın */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.4);
        border: 3px solid rgba(255, 255, 255, 0.35);
    }
    
    .vcl-nav:hover {
        transform: translateX(-50%) scale(1.08);
        box-shadow: 0 14px 40px rgba(102, 126, 234, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.5);
    }
    
    .vcl-nav i {
        font-size: 24px;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
    }
    
    .vcl-nav svg {
        width: 24px;
        height: 24px;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
    }
    
    .vcl-nav svg path {
        stroke: #ffffff;
        stroke-width: 3.5px;
    }
    
    .vcl-prev { margin-left: -62px; }
    .vcl-next { margin-left: 6px; }
    
    /* Title font boyutu */
    .vcl-title {
        font-size: 13px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* Çok küçük ekranlar için ekstra ayarlar */
@media (max-width: 375px) {
    .vcl-swiper .swiper-slide {
        opacity: 0.3;
        transform: scale(0.65);
    }
    
    /* ORTADAKI AKTİF VİDEO - NORMAL OPACITY */
    .vcl-swiper .swiper-slide-active {
        opacity: 1 !important;
        transform: scale(1);
    }
    
    .vcl-swiper .swiper-slide-active .vcl-card {
        opacity: 1 !important;
    }
    
    .vcl-swiper {
        padding: 8px 8px 15px 8px; /* Alt padding azaltıldı */
    }
    
    .vcl-slide {
        max-height: 400px;
    }
    
    .vcl-card {
        max-height: 400px;
    }
    
    .vcl-nav {
        bottom: 10px; /* Video ile yakın */
    }
}
