/* Speakymobil Referanslar v2 - Profesyonel Sosyal Kanıt Sistemi */

.sp-ref2-section {
    padding: 72px 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 158, 11, .08), transparent 32%),
        linear-gradient(180deg, #070b14 0%, #0b1220 100%);
    color: #fff;
    overflow: hidden;
}

.sp-ref2-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.sp-ref2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.sp-ref2-head h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
    letter-spacing: -.02em;
}

.sp-ref2-head p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
}

.sp-ref2-controls {
    display: flex;
    gap: 10px;
}

.sp-ref2-arrow {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #f6a400;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s ease;
}

.sp-ref2-arrow:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.sp-ref2-slider-wrap {
    overflow: hidden;
}

.sp-ref2-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 18px;
}

.sp-ref2-track::-webkit-scrollbar {
    display: none;
}

.sp-ref2-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    background: #fff;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    overflow: hidden;
    color: #0f172a;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
    scroll-snap-align: start;
}

.sp-ref2-media {
    position: relative;
    height: 170px;
    background: linear-gradient(135deg, #101827, #172033);
    overflow: hidden;
}

.sp-ref2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-ref2-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,.78);
    background:
        radial-gradient(circle at 30% 25%, rgba(245,158,11,.26), transparent 28%),
        linear-gradient(135deg, #111827, #0f172a);
}

.sp-ref2-placeholder i {
    font-size: 34px;
    color: #fbbf24;
}

.sp-ref2-placeholder span {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 950;
    color: #fff;
}

.sp-ref2-media-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15,23,42,.78);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.sp-ref2-media-badge.google {
    background: rgba(66,133,244,.88);
}

.sp-ref2-body {
    padding: 18px;
}

.sp-ref2-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sp-ref2-title-row h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
}

.sp-ref2-rating {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #f59e0b;
    font-size: 13px;
    white-space: nowrap;
}

.sp-ref2-rating b {
    color: #0f172a;
    margin-left: 4px;
    font-size: 12px;
    font-weight: 950;
}

.sp-ref2-rating.small {
    font-size: 11px;
}

.sp-ref2-rating.modal-rating {
    font-size: 15px;
}

.sp-ref2-short {
    min-height: 66px;
    margin: 0 0 14px;
    color: #475569;
    font-size: 14px;
    line-height: 1.58;
}

.sp-ref2-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sp-ref2-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-ref2-meta i {
    color: #22c55e;
}

.sp-ref2-meta em {
    font-style: normal;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
}

.sp-ref2-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sp-ref2-btn {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 13px;
    transition: .18s ease;
}

.sp-ref2-btn:hover {
    transform: translateY(-1px);
}

.sp-ref2-btn.primary {
    background: #0f172a;
    color: #fff !important;
}

.sp-ref2-btn.secondary {
    background: #f6a400;
    color: #111827 !important;
}

.sp-ref2-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.sp-ref2-modal.is-active {
    display: block;
}

.sp-ref2-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.76);
    backdrop-filter: blur(7px);
}

.sp-ref2-modal-box {
    position: relative;
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 6vh auto 0;
    background: #fff;
    color: #0f172a;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 35px 110px rgba(0,0,0,.55);
}

.sp-ref2-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f6a400;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
    cursor: pointer;
    z-index: 2;
}

.sp-ref2-modal-top {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding-right: 42px;
}

.sp-ref2-modal-top img,
.sp-ref2-modal-placeholder {
    width: 126px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 30px;
}

.sp-ref2-modal-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #16a34a;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 9px;
}

.sp-ref2-modal-top h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 950;
}

.sp-ref2-modal-comment {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
}

.sp-ref2-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    color: #64748b;
    font-weight: 900;
    font-size: 14px;
}

.sp-ref2-modal-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp-ref2-modal-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #f6a400;
    color: #111827 !important;
    font-weight: 950;
    text-decoration: none !important;
}

.sp-ref2-text-reviews {
    margin-top: 26px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 22px;
    overflow: hidden;
}

.sp-ref2-text-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sp-ref2-text-head span {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.sp-ref2-text-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.sp-ref2-marquee {
    overflow: hidden;
}

.sp-ref2-marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: spRef2Marquee 42s linear infinite;
}

.sp-ref2-text-item {
    width: 320px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 16px;
}

.sp-ref2-text-item p {
    margin: 8px 0 10px;
    color: #e2e8f0;
    line-height: 1.55;
    font-size: 13px;
}

.sp-ref2-text-item strong {
    color: #fff;
    font-size: 13px;
}

@keyframes spRef2Marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
    .sp-ref2-card {
        flex-basis: calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .sp-ref2-section {
        padding: 52px 0;
    }

    .sp-ref2-head {
        align-items: flex-start;
    }

    .sp-ref2-controls {
        display: none;
    }

    .sp-ref2-card {
        flex-basis: 88%;
        min-width: 88%;
    }

    .sp-ref2-media {
        height: 155px;
    }

    .sp-ref2-actions {
        grid-template-columns: 1fr;
    }

    .sp-ref2-modal-box {
        margin-top: 28px;
        padding: 20px;
        border-radius: 22px;
    }

    .sp-ref2-modal-top {
        grid-template-columns: 1fr;
        padding-right: 44px;
    }

    .sp-ref2-modal-top img,
    .sp-ref2-modal-placeholder {
        width: 100%;
        height: 150px;
    }

    .sp-ref2-modal-footer {
        display: grid;
    }

    .sp-ref2-text-head {
        display: block;
    }

    .sp-ref2-text-head p {
        margin-top: 4px;
    }

    .sp-ref2-text-item {
        width: 280px;
    }
}


/* v2.1 düzeltme: yorum kart içinde tekrarlanmaz, alttaki yorum slider + modal içinde görünür */
.sp-ref2-card-note {
    min-height: 48px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 14px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.sp-ref2-card-note i {
    color: #22c55e;
    margin-top: 2px;
    flex: 0 0 auto;
}

.sp-ref2-media img {
    background: #111827;
}

/* Yorum tekrarını istemediğimiz için kart içi eski kısa yorum alanı görünürse kapat */
.sp-ref2-card > .sp-ref2-body > .sp-ref2-short {
    display: none !important;
}
