/* Customer Stories Slider Styles - Version 1.0.3 - Fixed 3 Cards View */
/* Updated: 2025-01-23 - Fixed container width to show exactly 3 cards */

/* Smooth scrolling easing */
.customer-stories-slider-container {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
}

.customer-stories-slider-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    background: transparent;
    overflow: hidden; /* Container'ı sınırla */
}

.customer-stories-slider-container {
    display: flex;
    overflow-x: auto;
    cursor: grab;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 1.5rem; /* Kartlar arası boşluk */
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    width: calc(340px * 3 + 1.5rem * 2); /* Sadece 3 kart + 2 gap */
    max-width: calc(340px * 3 + 1.5rem * 2);
    margin: 0 auto;
    flex-wrap: nowrap; /* Kartların alt satıra geçmesini engelle */
}

.customer-stories-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.customer-stories-slider-container.active-drag {
    cursor: grabbing;
}

.slider-card {
    flex: 0 0 auto !important;
    position: relative;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start;
    width: 340px !important;
    height: 425px !important;
    max-width: 340px !important;
    min-width: 340px !important;
}

/* Mobil için özel ayarlar */
@media (max-width: 639px) {
    .slider-card {
        width: 300px !important;
        height: 375px !important;
        max-width: 300px !important;
        min-width: 300px !important;
    }
    .customer-stories-slider-container {
        gap: 1rem;
        width: calc(300px * 2 + 1rem * 1); /* Mobilde 2 kart */
        max-width: calc(300px * 2 + 1rem * 1);
    }
}

/* Tablet için ayarlar */
@media (min-width: 640px) and (max-width: 1023px) {
    .customer-stories-slider-container {
        width: calc(340px * 2 + 1.5rem * 1); /* Tabletde 2 kart */
        max-width: calc(340px * 2 + 1.5rem * 1);
    }
}

/* Masaüstü için ayarlar */
@media (min-width: 1024px) {
    .customer-stories-slider-container {
        width: calc(340px * 3 + 1.5rem * 2); /* Masaüstünde 3 kart */
        max-width: calc(340px * 3 + 1.5rem * 2);
    }
}

/* Cards per view ayarları */
.customer-stories-slider-container[data-cards-per-view="1"] .slider-card {
    width: 340px !important;
    height: 425px !important;
    max-width: 340px !important;
    min-width: 340px !important;
}

.customer-stories-slider-container[data-cards-per-view="2"] .slider-card {
    width: 340px !important;
    height: 425px !important;
    max-width: 340px !important;
    min-width: 340px !important;
}

.customer-stories-slider-container[data-cards-per-view="3"] .slider-card {
    width: 340px !important;
    height: 425px !important;
    max-width: 340px !important;
    min-width: 340px !important;
}


.customer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 12px;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    color: white;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.customer-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    line-height: 1.2;
}

.customer-description {
    color: #e5e7eb;
    font-size: 0.875rem;
    margin: 0;
    padding-right: 4rem; /* Play button için alan bırak */
    line-height: 1.4;
}

.play-button {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.play-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Beyaz play ikonu */
}

.play-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.customer-stories-slider-wrapper .slider-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.customer-stories-slider-wrapper .slider-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.customer-stories-slider-wrapper .slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.customer-stories-slider-wrapper .slider-arrow svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.customer-stories-slider-wrapper .slider-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-dots {
    display: none !important;
}

.dot {
    display: none !important;
}

.dot.active {
    display: none !important;
}

/* Video Popup Modal */
.video-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.video-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-popup-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-popup-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 1) !important;
    border: 3px solid rgba(255, 255, 255, 1) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    z-index: 100002 !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
}

.video-popup-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.video-popup-close::before {
    content: "×";
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
}

.video-popup-iframe {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
}

.video-popup-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .customer-stories-slider-wrapper .slider-navigation {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .customer-stories-slider-wrapper .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .customer-stories-slider-wrapper .slider-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .video-popup-container {
        width: 90%;
    }
    
    .video-popup-close {
        top: 10px !important;
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
        display: flex !important;
    }
    
    .video-popup-close::before {
        font-size: 36px !important;
    }
}


