/* ============================================================
   SOSYAL KANIT - Instagram DM / Yorum Görselleri Slider
   ============================================================ */

.aw-social-proof-section {
    width: 100%;
    background: #fbfbfd;
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid #f0f0f4;
    border-bottom: 1px solid #f0f0f4;
}

.aw-social-proof-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

/* Header & Nav */
.aw-social-proof-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
}

.aw-social-proof-header-text {
    flex: 1;
}

.aw-social-proof-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.4px !important;
    line-height: 1.25 !important;
}

.aw-social-proof-subtitle {
    font-size: 14px !important;
    color: #86868b !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Ok Butonları */
.aw-proof-slider-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.aw-proof-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}

.aw-proof-arrow:hover:not(:disabled) {
    background: #1d1d1f;
    color: #ffffff;
    border-color: #1d1d1f;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.aw-proof-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.aw-proof-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

/* Slider Track */
.aw-social-proof-slider {
    position: relative;
    width: 100%;
}

.aw-social-proof-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 20px 4px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
    user-select: none;
}

.aw-social-proof-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.aw-social-proof-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Slide Kartı */
.aw-proof-slide {
    flex: 0 0 calc(25% - 12px); /* Masaüstü: 4 kart */
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.aw-proof-item {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
    aspect-ratio: 9 / 16;
}

.aw-proof-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.aw-proof-lightbox {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.aw-proof-lightbox img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: transform 0.35s ease !important;
    pointer-events: none;
}

.aw-proof-item:hover .aw-proof-lightbox img {
    transform: scale(1.03);
}

/* Hover Overlay */
.aw-proof-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #ffffff;
}

.aw-proof-overlay svg {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.aw-proof-item:hover .aw-proof-overlay {
    opacity: 1;
}

.aw-proof-item:hover .aw-proof-overlay svg {
    transform: scale(1.05);
}

/* Lightbox */
.aw-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: aw-lb-fade 0.2s ease;
    backdrop-filter: blur(8px);
}

@keyframes aw-lb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.aw-lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.aw-lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
}

.aw-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

/* Ürün Sayfası Özelleştirmesi */
.single-product .aw-social-proof-section {
    clear: both !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin-top: 60px !important;
    margin-bottom: 40px !important;
    border-radius: 24px !important;
    background: #f7f7fa !important;
    border: none !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.single-product div.product::after,
.single-product .summary.entry-summary::after {
    content: "" !important;
    display: block !important;
    clear: both !important;
}

/* Responsive Kırılımlar */
@media (max-width: 1100px) {
    .aw-proof-slide {
        flex: 0 0 calc(33.333% - 11px); /* Tablet yatay: 3 kart */
    }
}

@media (max-width: 768px) {
    .aw-social-proof-section {
        padding: 40px 16px;
        margin-top: 40px;
    }

    .aw-social-proof-title {
        font-size: 22px !important;
    }

    .aw-proof-slide {
        flex: 0 0 calc(50% - 8px); /* Tablet dikey: 2 kart */
    }

    .aw-proof-arrow {
        width: 36px;
        height: 36px;
    }

    .aw-proof-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 520px) {
    .aw-proof-slide {
        flex: 0 0 calc(75% - 10px); /* Mobilde sağdan hafif taşan akıcı kart (peek) */
    }

    .aw-social-proof-header {
        align-items: center;
    }
}
