/* ============================================================
   EK — Çözüm ortakları şeridi ve sayfası.
   style.css'e dokunulmaz; tasarımın kendi değişkenleri kullanılır.
   Logo yüklenmemiş ortaklar için addan üretilen tipografik rozet.
   ============================================================ */

.partners-section { padding-top: 0; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.op-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px 16px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* <a> ve <div> aynı görünsün; link olanlarda hover geri bildirimi olsun */
a.op-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}

.op-card img {
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Renkli logolar şeritte birbiriyle yarışmasın; hover'da renklensin */
  filter: grayscale(1);
  opacity: .72;
  transition: filter .25s ease, opacity .25s ease;
}

.op-card:hover img { filter: none; opacity: 1; }

/* Logosu olmayan ortak — monogram + ad */
.op-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.op-mark .op-ini {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, .06);
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.op-mark .op-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
  /* Uzun adlar kartı bozmasın */
  overflow-wrap: anywhere;
}

/* ============================================================
   Ana sayfa şeridi — kaydıraklı
   Izgara yerine yatay ray; kart genişliği "sayfada kaç kart"
   değişkeninden (--op-adet) hesaplanır, kırılımlarda o değişir.
   ============================================================ */
.op-kaydirak { --op-adet: 5; --op-bosluk: 14px; position: relative; margin-top: 26px; }

.op-rail {
  display: flex;
  gap: var(--op-bosluk);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* kart gölgesi kırpılmasın */
  padding: 6px 2px 10px;
  /* kaydırma çubuğu gizlenir; gezinme oklarla ve dokunmatikle */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.op-rail::-webkit-scrollbar { display: none; }

.op-rail > .op-card {
  flex: 0 0 calc((100% - (var(--op-adet) - 1) * var(--op-bosluk)) / var(--op-adet));
  scroll-snap-align: start;
}

.op-nav {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 16px;
}
.op-nav[hidden] { display: none; }

/* Bölüm açık zeminde durduğu için oklar koyu konturlu — yorum
   kaydırağındaki beyaz konturlu oklarla aynı biçim, farklı renk. */
.op-arrow {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .16);
  background: #fff; color: inherit; cursor: pointer;
  transition: background .16s, transform .16s, border-color .16s;
}
.op-arrow:hover { border-color: rgba(0, 0, 0, .34); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.op-arrow:active { transform: scale(.94); }

.op-dots { display: flex; align-items: center; gap: .5rem; }
.op-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .2); cursor: pointer;
  transition: width .22s, background .22s;
}
.op-dot.is-active { width: 22px; border-radius: 4px; background: var(--terra, #b4541f); }

@media (max-width: 1024px) { .op-kaydirak { --op-adet: 3; } }
@media (max-width: 640px)  { .op-kaydirak { --op-adet: 2; --op-bosluk: 10px; } }

@media (prefers-reduced-motion: reduce) {
  .op-rail { scroll-behavior: auto; }
}

.partners-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.partners-empty {
  text-align: center;
  padding: 30px 0;
  opacity: .7;
}

@media (max-width: 640px) {
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .op-card { min-height: 84px; padding: 14px 12px; }
}

/* Koyu tema kullanan bölümlerde kart zemini bozulmasın */
@media (prefers-color-scheme: dark) {
  .op-card { background: rgba(255, 255, 255, .96); color: #1a1a1a; }
}

/* ============================================================
   Panelde tanimli logo isaretleri (partners.markup)
   ------------------------------------------------------------
   Logo dosyasi yuklenmemis ortaklarda, panelde gorunen isaretin
   aynisi burada basilir. Isaretler kendi marka renklerini tasiyor
   (koyu lacivert, bordo, yesil...), bu yuzden kartin zeminine
   degil, ACIK bir plakanin uzerine oturtuluyor — gece temasinda
   kart koyulasinca logo kaybolmasin diye.

   Ikonlar gomulu SVG (bkz. App\Support\OrtakLogosu); tema3'e
   Font Awesome yuklenmiyor.
   ============================================================ */
.op-plaka {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  /* Sicak zeminde saf beyaz plaka sert durmasin */
  box-shadow: inset 0 0 0 1px rgba(60, 32, 12, .06);
}

.op-plaka .op-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  font-family: var(--ff-sans);
  text-align: center;
  color: #1b3a8c;
}

.op-plaka .op-svg { flex-shrink: 0; }

.op-plaka .op-logo > small { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #1b3a8c; }
.op-plaka .op-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: #b91c1c; color: #fff; font-size: 17px;
  display: grid; place-items: center; border: 2px solid #1b3a8c;
}
.op-plaka .op-text strong { display: block; font-size: 13px; font-weight: 800; color: #1b3a8c; }
.op-plaka .op-text small  { display: block; font-size: 9px; letter-spacing: .1em; }
/* Uzun adlar (ornek: "İstanbul BALLOONS") kartin disina tasiyordu;
   sarma serbest, yazi boyu kart genisligine gore kuculuyor. */
.op-plaka .op-art {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px 6px; line-height: 1.05;
  max-width: 100%; font-size: clamp(15px, 4.4vw, 21px);
}
.op-plaka .op-cursive    { font-style: italic; font-weight: 700; font-size: 1em; }
.op-plaka .op-bold-serif { font-family: var(--ff-serif); font-weight: 800; font-size: 1em; }
.op-plaka .op-script     { font-family: var(--ff-serif); font-style: italic; font-size: 23px; font-weight: 600; }
.op-plaka .op-stripe     { font-family: var(--ff-serif); font-size: 26px; font-weight: 800; color: #635bff; letter-spacing: -.02em; }

.op-plaka .op-shield {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px; border: 2px solid #1b3a8c; border-radius: 8px;
  background: linear-gradient(135deg, #f4d03f, #e67e22); color: #fff;
}
.op-plaka .op-shield > .op-svg { font-size: 17px; color: #1b3a8c; }
.op-plaka .op-shield div { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.op-plaka .op-shield strong { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.op-plaka .op-shield span   { font-size: 8px; letter-spacing: .1em; margin-top: 2px; }

.op-plaka .op-badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 7px 15px; border: 1px solid #c2532a; border-radius: 10px;
  background: linear-gradient(135deg, #fbebd9, #f3d2b5); color: #2e1a0f; line-height: 1.1;
}
.op-plaka .op-badge > .op-svg { color: #c2532a; font-size: 15px; }
.op-plaka .op-badge > span    { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: center; }
.op-plaka .op-badge > small   { font-size: 8px; color: #8b5e3c; letter-spacing: .1em; }

.op-plaka .op-wing { display: flex; align-items: center; gap: 8px; }
.op-plaka .op-wing > .op-svg { color: #c2532a; font-size: 23px; }
.op-plaka .op-wing div { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.op-plaka .op-wing strong { font-size: 13px; font-weight: 800; color: #2e1a0f; letter-spacing: .04em; }
.op-plaka .op-wing span   { font-size: 10px; color: #c2532a; letter-spacing: .1em; margin-top: 2px; }

/* Yuklenen logo dosyalari dinlenme halinde soluklastiriliyor (.op-card img),
   ama bu isaretler zaten tek renkli ve kucuk — soluklastirilinca "eksik"
   gorunuyorlar. Tam renkli birakiliyor, hover'da yalnizca hafif buyuyorlar. */
.op-card .op-plaka { transition: transform .25s ease; }
.op-card:hover .op-plaka { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .op-card .op-plaka { transition: none; }
  .op-card:hover .op-plaka { transform: none; }
}
