/* ============================================================
   Kan Themes — Referanslar Sayfası Redesign
   app.min.css'ten SONRA yüklenir; yalnızca page-templates/testimonials.php.
   İletişim / Hakkımızda ile aynı görsel dil:
   18px kart radius, #fafafa paneller, hap etiket, kırmızı vurgu.
   ============================================================ */

:root {
    --testi-text: #18191d;
    --testi-muted: #6b7280;
    --testi-border: rgba(17, 24, 39, 0.10);
    --testi-soft: #fafafa;
    --testi-radius: 18px;
    --testi-star: #f5a623;
}

.page-template-testimonials #main {
    font-family: var(--kan-font-family, "Inter", sans-serif);
}

/* ---- Butonlar ---- */
.page-template-testimonials .testi-btn {
    min-height: 48px;
    padding: 12px 24px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #fff !important;
}
.page-template-testimonials .testi-btn i {
    font-size: 12px;
    transition: transform .2s;
}
.page-template-testimonials .testi-btn:hover i {
    transform: translateX(3px);
}
.page-template-testimonials .testi-btn.is-ghost {
    background: #fff !important;
    border-color: var(--testi-border) !important;
    color: var(--testi-text) !important;
}
.page-template-testimonials .testi-btn.is-ghost:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    opacity: 1;
}

/* ---- Hero ---- */
.page-template-testimonials #page-header.testi-hero {
    background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(230, 49, 49, 0.14), rgba(230, 49, 49, 0) 70%), linear-gradient(to bottom, #fff7f7, #fff);
}
.page-template-testimonials #page-header.testi-hero h2 {
    color: var(--testi-muted);
}

.testi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(212, 24, 24, 0.18);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.testi-eyebrow i {
    font-size: 11px;
}

.testi-hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.testi-hero-actions .btn + .btn {
    margin-left: 0;
}

/* ---- Yorum ızgarası (masonry) ---- */
.page-template-testimonials .testi-section {
    padding-top: 40px;
    padding-bottom: 90px;
    background: transparent;
}

.testi-grid {
    column-count: 3;
    column-gap: 24px;
}

.testi-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: flex;
    flex-direction: column;
    margin: 0 0 24px;
    padding: 26px 26px 22px;
    background: #fff;
    border: 1px solid var(--testi-border);
    border-radius: var(--testi-radius);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.testi-card:hover {
    border-color: rgba(212, 24, 24, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -28px rgba(17, 24, 39, 0.35);
}

.testi-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.testi-stars {
    display: inline-flex;
    gap: 3px;
    color: var(--testi-star);
    font-size: 14px;
}

.testi-quote {
    font-size: 22px;
    color: rgba(212, 24, 24, 0.14);
}

.testi-text {
    margin: 0 0 22px;
    font-size: 15.5px;
    line-height: 1.7;
    color: #3d4250;
    overflow-wrap: anywhere;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--testi-border);
    min-width: 0;
}
.testi-author > div {
    min-width: 0;
}

.testi-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 24, 24, 0.08);
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
}

.testi-author a {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--testi-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}
.testi-author a:hover {
    color: var(--primary);
}

.testi-author small {
    display: block;
    font-size: 12.5px;
    color: var(--testi-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testi-more {
    margin-top: 16px;
}

/* ---- CTA ---- */
.testi-cta {
    margin-top: 80px;
    padding: 36px 44px;
    display: flex;
    align-items: center;
    gap: 24px 28px;
    background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(230, 49, 49, 0.10), rgba(230, 49, 49, 0) 70%), var(--testi-soft);
    border: 1px solid var(--testi-border);
    border-radius: var(--testi-radius);
}

.testi-cta-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--testi-border);
    color: var(--primary);
    font-size: 22px;
}

.testi-cta-text {
    flex: 1 1 auto;
}
.testi-cta h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--testi-text);
}
.testi-cta p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--testi-muted);
}
.testi-cta .testi-btn {
    flex: 0 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .testi-grid {
        column-count: 2;
        column-gap: 16px;
    }
    .testi-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .testi-grid {
        column-count: 1;
    }
    .testi-card {
        padding: 22px 20px 18px;
    }
    .page-template-testimonials .testi-section {
        padding-top: 24px;
        padding-bottom: 56px;
    }
    .testi-cta {
        margin-top: 56px;
        padding: 28px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .testi-cta h2 {
        font-size: 21px;
    }
    .page-template-testimonials .testi-cta .testi-btn {
        width: 100%;
    }
}
