/* =====================================================================
   Referanslar v2 (Apple) — /referanslar, /referanslar/{slug}
   Önek .ref-. Yalnız site.css tokenları; logo duvarı site.css .logo-wall üzerine kurulu.
   ===================================================================== */

/* ── Sektör süzgeci: sade metin sekmeleri ─────────────────────── */
.ref-seg { margin: 0 0 20px; }
.ref-seg__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 2px; }
.ref-seg__item {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 980px;
    font-size: 14px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.ref-seg__item:hover { color: var(--ink); text-decoration: none; background: rgba(0, 0, 0, .04); }
.ref-seg__item.is-active, .ref-seg__item.is-active:hover { background: var(--ink); color: #fff; }

.ref-count { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 36px; }

/* ── Logo duvarı ───────────────────────────────────────────────── */
.ref-dir { padding-top: clamp(40px, 5vw, 64px); }
.ref-wall { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 24px 12px; }
.ref-wall__cell { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ref-wall__cell[hidden] { display: none; }
.ref-wall__cell.is-in { animation: fadeIn .45s var(--ease); }
.ref-wall .logo-wall__item { height: 104px; transition: box-shadow .3s var(--ease); }
.ref-wall a.logo-wall__item:hover { text-decoration: none; }
/* Koyu zeminli logolar rozet gibi dursun */
.ref-wall__img { border-radius: 6px; }
.ref-wall__cell:hover .logo-wall__item img,
.ref-wall__cell:focus-within .logo-wall__item img { filter: none; opacity: 1; }
.ref-wall__name {
    font-size: 12px; line-height: 1.33; letter-spacing: -.01em; color: var(--muted); text-align: center; padding: 0 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-wall__cell.is-target .logo-wall__item { box-shadow: 0 0 0 2px var(--link); }
.ref-nologo { font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.3; }

.ref-dir__foot { text-align: center; margin-top: 48px; font-size: 17px; }
/* Telefonda kısaltılmış duvar (references.js ekler) */
.ref-wall--kisa .ref-wall__cell:nth-child(n+13) { display: none; }
.ref-dir__more { text-align: center; margin-top: 28px; }
.ref-dir__more[hidden] { display: none; }
.ref-more { border: 0; background: none; padding: 6px 0; color: var(--link); font-size: 17px; }
.ref-more:hover { text-decoration: underline; }

/* ── Öne çıkanlar (yatay kaydırıcı, büyük sade kartlar) ───────── */
.ref-featured__intro { margin-bottom: 40px; }
.ref-cards { list-style: none; margin: 0; }
.ref-card {
    width: 372px; background: var(--bg-alt); border-radius: var(--r-lg); padding: 10px 10px 30px;
    display: flex; flex-direction: column;
}
.ref-card__logo { background: #fff; border-radius: var(--r); height: 188px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.ref-card__img { max-height: 68px; max-width: 210px; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.ref-card__logo .ref-nologo { font-size: 21px; color: var(--ink); }
.ref-card__body { padding: 24px 20px 0; display: flex; flex-direction: column; flex: 1; }
.ref-card__meta { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.ref-card__name { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: .009em; }
.ref-card__text { margin-top: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.47; }
.ref-card__svc { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ref-card__svc a { color: var(--ink); }
.ref-card__more { margin-top: auto; padding-top: 18px; font-size: 17px; }

/* ── Yorumlar (sade alıntı tipografisi) ───────────────────────── */
.ref-voice { margin: 0; }
.ref-voice blockquote { margin: 0; }
.ref-voice--lead { max-width: 820px; margin: 48px auto 0; text-align: center; }
.ref-voice--lead .ref-voice__text { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: .004em; }
.ref-voice--lead .ref-voice__by { justify-content: center; text-align: left; }
.ref-voices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }
.ref-voices__grid .ref-voice__text,
.ref-voice--inline .ref-voice__text { font-size: 21px; line-height: 1.38; letter-spacing: .011em; }
/* Asılı tırnak: açılış tırnağı metin hizasının soluna taşar */
.ref-voices__grid .ref-voice__text p,
.ref-voice--inline .ref-voice__text p { text-indent: -.42em; }
.ref-voice__by { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.ref-voice__by strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.ref-voice__by > span > span { display: block; }
.ref-voice__by .link { margin-top: 4px; font-size: 14px; }
.ref-voice__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }

/* ── Başarı hikâyesi (makale) ─────────────────────────────────── */
.ref-story__head { padding: clamp(56px, 7vw, 104px) 0 0; }
.ref-story__kicker { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.ref-story__lead { color: var(--muted); margin-top: 16px; }
.ref-story__plate {
    margin-top: clamp(40px, 5vw, 64px); background: var(--bg-alt); border-radius: var(--r-lg);
    height: clamp(220px, 30vw, 380px); display: flex; align-items: center; justify-content: center; padding: 40px;
}
/* Beyaz zeminli logolar gri plakaya karışsın */
.ref-story__logo { max-height: 45%; max-width: 60%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; border-radius: 8px; }
.ref-story__plate .ref-nologo { font-size: clamp(28px, 3vw, 40px); color: var(--ink); }
.ref-story__body { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 140px); }
.ref-facts { margin-bottom: 48px; font-size: 17px; }
.ref-facts li > :first-child { flex-basis: 38%; }
.ref-story__prose > :first-child { margin-top: 0; }
.ref-voice--inline { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

.ref-block-title { margin-bottom: 40px; }
.ref-others__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 36px; }
.ref-wall--small { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ── Duyarlı ───────────────────────────────────────────────────── */
@media (max-width: 1068px) {
    .ref-wall--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 834px) {
    .ref-voices__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 734px) {
    /* Sekmeler tek satır, yatay kaydırılır (sayfa taşmaz) */
    .ref-seg { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
    .ref-seg__track {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
        padding: 0 var(--gutter); -webkit-overflow-scrolling: touch;
    }
    .ref-seg__track::-webkit-scrollbar { display: none; }
    .ref-count { margin-bottom: 28px; }
    .ref-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
    .ref-wall .logo-wall__item { height: 88px; padding: 14px; }
    .ref-wall--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ref-card { width: min(82vw, 340px); }
    .ref-card__logo { height: 156px; }
    .ref-card__body { padding: 20px 14px 0; }
    .ref-card__name { font-size: 21px; }
    .ref-facts li { flex-direction: column; gap: 4px; }
    .ref-voice--lead { margin-top: 32px; }
}
