/* =====================================================================
   OPASMOTO – Ana sayfa (docs/08 §3) — MotoPazar app.css §11 (.mp-hero*, .mp-split*, .mp-bannerrow*, .mp-banner*, .mp-seotext*)
   kurallarından op-* adlarıyla uyarlandı. Token'lar front.css :root (--op-*). Yükleme: front/home.php styles bölümü.
   Ortak bileşenler (bölüm başlığı, şerit, ürün/kategori/marka/model kartı, güven şeridi) front.css'tedir.
   ===================================================================== */

/* ---------- 1. Hero (koyu zemin) ---------- */
.op-home .op-hero {
  padding: 20px 0 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10) 50%, transparent 0) 0 calc(100% - 10px) / 56px 2px repeat-x,
    radial-gradient(900px 380px at 88% -20%, rgba(255,69,58,.20), transparent 70%),
    var(--op-ink);
}
.op-home .op-hero::before { content: none; }
.op-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.op-hero__head, .op-hero__lead, .op-hero__media { min-width: 0; }
.op-home .op-hero .op-hero__title { margin: 0; font-size: 30px; line-height: 32px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.op-home .op-hero .op-hero__text { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--op-muted-on-dark); }

/* Motor kartı */
.op-hero__bike {
  padding: 14px;
  color: var(--op-text-on-dark);
  background: var(--op-ink-2);
  border: 1px solid var(--op-ink-3);
  border-radius: var(--op-radius-card);
}
.op-hero__bike [hidden] { display: none !important; }
.op-hero__bike-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; font-size: 18px; }
.op-hero__bike-btn .op-icon, .op-hero__bike-label .op-icon { width: 24px; height: 24px; flex: none; }
.op-home .op-hero .op-hero__bike-hint { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--op-muted-on-dark); }
.op-hero__bike-hint .bi { flex: none; margin-top: 1px; color: var(--op-accent); }
.op-home .op-hero .op-hero__bike-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; line-height: 20px; color: var(--op-muted-on-dark); }
.op-hero__bike-label .op-icon { width: 32px; height: 32px; color: var(--op-accent); }
.op-hero__bike-label strong { display: block; font-family: var(--op-font-display); font-size: 22px; line-height: 26px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.op-hero__bike-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.op-hero__bike-links .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
@media (min-width: 420px) { .op-hero__bike-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .op-hero__bike-links .btn:first-child { grid-column: 1 / -1; } }
.op-hero__bike-change {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--op-tap); margin-top: 4px;
  font-size: 14px; font-weight: 600; color: var(--op-text-on-dark); text-decoration: none;
}
.op-hero__bike-change:hover { color: var(--op-accent); text-decoration: underline; }

/* 38 ANASAYFA (docs/37 §3) — "Markanla hızlı başla": motor kartının içinde 8 popüler marka (seçiciyi model adımında açar).
   Eski "Aksesuarlar" kategori çipleri kaldırıldı (kategoriler hemen alttaki kategori kutularında). */
.op-hero-quick { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--op-ink-3); }
.op-hero-quick__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.op-home .op-hero .op-hero-quick__label { margin: 0; font-family: var(--op-font-body); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: #fff; }
.op-hero-quick__all {
  display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: 13px; line-height: 18px; font-weight: 600;
  color: var(--op-accent); text-decoration: none; white-space: nowrap;
}
.op-hero-quick__all:hover, .op-hero-quick__all:focus-visible { color: #fff; text-decoration: underline; }
.op-hero-quick__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.op-hero-quick__list > li { min-width: 0; }
.op-hero-quick__brand {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 6px 4px;
  font-family: var(--op-font-body); font-size: 13.5px; line-height: 17px; font-weight: 600; letter-spacing: -.005em; text-align: center;
  color: var(--op-text-on-dark); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--op-radius-control); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--op-dur) var(--op-ease), border-color var(--op-dur) var(--op-ease), background-color var(--op-dur) var(--op-ease);
}
.op-hero-quick__brand:hover, .op-hero-quick__brand:focus-visible { color: #fff; background: rgba(255,69,58,.14); border-color: var(--op-accent); }
@media (min-width: 576px) { .op-hero-quick__brand { font-size: 14px; } }
@media (max-width: 991.98px) { .op-hero-quick__list > li:nth-child(n+9) { display: none; } } /* mobil/tablet 8 marka; ≥ lg 12 (3 sıra) */

/* Promo kartları (sağ) — mobilde yatay kaydırmalı şerit, ≥ lg 1 büyük + 2 küçük */
.op-hero__promos {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px;
  margin: 0; padding: 0 0 4px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.op-hero__promos::-webkit-scrollbar { display: none; }
.op-hero__promo-item { min-width: 0; scroll-snap-align: start; }
@media (min-width: 576px) { .op-hero__promos { grid-auto-columns: 46%; } }
.op-promo {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 150px;
  overflow: hidden; color: #fff; text-decoration: none;
  background: radial-gradient(420px 220px at 85% 10%, rgba(255,69,58,.18), transparent 70%), var(--op-ink-2);
  border: 1px solid var(--op-ink-3); border-radius: var(--op-radius-card);
}
.op-promo picture { display: contents; }
.op-promo__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--op-ease, ease); }
.op-promo--image .op-promo__text {
  background: linear-gradient(180deg, rgba(14,17,22,0) 0%, rgba(14,17,22,.62) 32%, rgba(14,17,22,.92) 72%);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.op-promo__text { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 40px 16px 14px; }
.op-promo--plain .op-promo__text { padding-top: 12px; }
.op-promo__icon {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 16px 16px 0;
  font-size: 22px; color: var(--op-accent); background: rgba(255,69,58,.12); border-radius: 50%;
}
.op-promo--plain { justify-content: space-between; }
.op-promo__title { font-family: var(--op-font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.op-promo__sub { font-size: 13px; line-height: 18px; color: var(--op-text-on-dark); }
.op-promo__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--op-accent); }
a.op-promo:hover { color: #fff; border-color: rgba(255,69,58,.6); }
a.op-promo:hover .op-promo__img { transform: scale(1.02); }
a.op-promo:hover .op-promo__cta { text-decoration: underline; }
a.op-promo:focus-visible { outline: 2px solid var(--op-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .op-promo__img { transition: none; } a.op-promo:hover .op-promo__img { transform: none; } }

@media (min-width: 992px) {
  .op-home .op-hero { padding: 36px 0 44px; }
  .op-hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 40px; align-items: stretch; }
  .op-hero__head { grid-column: 1 / -1; }
  .op-home .op-hero .op-hero__title { font-size: 44px; line-height: 46px; }
  .op-home .op-hero .op-hero__text { font-size: 17px; line-height: 24px; }
  .op-hero__bike { padding: 18px; }
  /* 38 ANASAYFA: motor kartı sütunu doldurur; "Markanla hızlı başla" kartın altına oturur (promo sütunuyla aynı yükseklik) */
  .op-hero__lead { display: flex; flex-direction: column; }
  .op-hero__bike { display: flex; flex-direction: column; flex: 1 1 auto; }
  .op-hero__bike-empty, .op-hero__bike-set { display: flex; flex-direction: column; flex: 1 1 auto; }
  .op-home .op-hero .op-hero__bike-empty .op-hero__bike-hint { margin-bottom: 14px; }
  .op-hero-quick { margin-top: auto; }
  .op-hero__promos {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(200px, 1fr) minmax(150px, auto);
    height: 100%; overflow: visible; padding: 0; scroll-snap-type: none;
  }
  .op-hero__promo-item--main { grid-column: 1 / -1; }
  .op-hero__promo-item--main .op-promo__title { font-size: 30px; line-height: 34px; }
  .op-hero__promo-item--main .op-promo__sub { font-size: 15px; line-height: 22px; }
  .op-hero__promo-item--main .op-promo--image .op-promo__text {
    top: 0; position: absolute; left: 0; bottom: 0; width: min(62%, 520px); justify-content: center; padding: 20px 28px;
    background: linear-gradient(90deg, rgba(14,17,22,.85) 0%, rgba(14,17,22,.6) 65%, rgba(14,17,22,0) 100%);
  }
}
@media (min-width: 1400px) { .op-home .op-hero .op-hero__title { font-size: 52px; line-height: 54px; } }

/* ---------- 2. Aksesuar kategori kutusu (MotoPazar .mp-split; tek panel) ---------- */
.op-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.op-split__panel {
  min-width: 0; padding: 14px 14px 16px;
  background: var(--op-surface); border-radius: var(--op-radius-card); box-shadow: var(--op-shadow-1);
  border-top: 3px solid var(--op-primary);
}
.op-split__panel .op-section-head { margin-bottom: 4px; }
.op-split__lead { margin: 0 0 12px; font-size: 13px; line-height: 18px; color: var(--op-muted); }
@media (min-width: 992px) { .op-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .op-split__panel { padding: 18px 20px 20px; } }
/* Tek panel (Aksesuar): tam genişlik, karolar iki satıra yayılır */
@media (min-width: 992px) { .op-split--single { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1200px) { .op-split--single .op-tilegrid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* ---------- 3. Popüler markalar: 1200 px altında ilk 12 karo (2 tam satır), 1200+ px'te 6 sütun × 2 satır ---------- */
@media (max-width: 1199.98px) { .op-home-brands > li:nth-child(n+13) { display: none; } }
@media (min-width: 1200px) { .op-home-brands.op-tilegrid--brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- 7. Afiş satırı (MotoPazar .mp-bannerrow / .mp-banner) ---------- */
.op-bannerrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) {
  .op-bannerrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .op-bannerrow > :only-child { grid-column: 1 / -1; }
  .op-bannerrow--3 > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .op-bannerrow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-bannerrow--3 > :first-child { grid-column: auto; }
}
.op-banner {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 1;
  color: #fff; background: #DDE1E6; border-radius: var(--op-radius-card); text-decoration: none;
}
.op-banner--4x1 { aspect-ratio: 4 / 1; }
@media (max-width: 767.98px) { .op-banner, .op-banner--4x1 { aspect-ratio: 5 / 2; } }
.op-banner picture { display: contents; }
.op-banner img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--op-ease, ease); }
.op-banner__text {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 16px 14px;
  color: #fff; background: linear-gradient(180deg, rgba(14,17,22,0), rgba(14,17,22,.86)); pointer-events: none;
}
.op-banner__title { font-family: var(--op-font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: .01em; }
.op-banner__sub { font-size: 13px; line-height: 18px; color: var(--op-text-on-dark); }
a.op-banner:hover { color: #fff; }
a.op-banner:hover img { transform: scale(1.015); }
a.op-banner:focus-visible { outline: 2px solid var(--op-primary); outline-offset: 2px; }
@media (min-width: 768px) {
  .op-banner__text { top: 0; right: auto; width: min(62%, 560px); justify-content: center; gap: 4px; padding: 16px 24px; background: linear-gradient(90deg, rgba(14,17,22,.82) 0%, rgba(14,17,22,.6) 65%, rgba(14,17,22,0) 100%); }
}
@media (prefers-reduced-motion: reduce) { .op-banner img { transition: none; } a.op-banner:hover img { transform: none; } }

/* ---------- 10. Rehber: 1 / 2 / 4 sütun ---------- */
.op-home-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.op-home-posts > li { min-width: 0; display: flex; }
.op-home-posts > li > * { flex: 1 1 auto; min-width: 0; }
@media (min-width: 576px) { .op-home-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .op-home-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 11. Güven şeridi ---------- */
.op-home-trust .op-trustbar { padding-block: 8px 32px; }

/* ---------- 12. SEO metni (MotoPazar .mp-seotext; JS'siz aç/kapa) ---------- */
.op-seotext { position: relative; font-size: 15px; line-height: 24px; color: var(--op-text); }
.op-seotext__check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.op-seotext__body { position: relative; overflow: hidden; }
.op-seotext__body > :first-child { margin-top: 0; }
.op-seotext__body > :last-child { margin-bottom: 0; }
.op-seotext--collapsible .op-seotext__body { max-height: 160px; }
.op-seotext--collapsible .op-seotext__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(180deg, rgba(245,246,248,0), var(--op-bg)); pointer-events: none; }
.op-seotext__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: var(--op-tap); margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--op-primary); cursor: pointer; }
.op-seotext__toggle:hover { color: var(--op-primary-hover); text-decoration: underline; }
.op-seotext__check:focus-visible ~ .op-seotext__toggle { outline: 2px solid var(--op-primary); outline-offset: 2px; border-radius: 4px; }
.op-seotext__less { display: none; }
.op-seotext__check:checked ~ .op-seotext__body { max-height: none; }
.op-seotext__check:checked ~ .op-seotext__body::after { display: none; }
.op-seotext__check:checked ~ .op-seotext__toggle .op-seotext__more { display: none; }
.op-seotext__check:checked ~ .op-seotext__toggle .op-seotext__less { display: inline; }
