/* =========================================================
   Hazır siteler (TR/EN) — templates.css
   site.css + home.css (body.dark) + pages.css üzerine gelir.
   ========================================================= */

/* ---------- Giriş notu (EN: demolar Türkçe) ---------- */
.tpl-lang-note { margin-top: 14px; max-width: 38em; font-size: var(--t-1); color: var(--ink-3); }

/* ---------- Nasıl çalışır: 3 adımlı gerçek sıra (site.css .steps) ---------- */
.tpl-how { padding-block: clamp(48px, 6vw, 80px) 0; }
.tpl-h { margin-bottom: 22px; font-size: var(--t-3); font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); }
body.dark .tpl-h { color: var(--ink-2); }
.tpl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 721px) and (max-width: 920px) {
  .tpl-steps li:nth-child(3) { padding-left: 28px; border-left: 1px solid var(--rule); border-top: 0; }
}
@media (max-width: 720px) {
  .tpl-steps { grid-template-columns: 1fr; }
  .tpl-steps li, .tpl-steps li + li, .tpl-steps li:nth-child(n) { padding: 24px 0 18px 52px; border-left: 0; }
  .tpl-steps li + li { border-top: 1px solid var(--rule); }
  .tpl-steps li::before { position: absolute; left: 0; top: 22px; margin: 0; }
}

/* ---------- Filtre çubuğu ---------- */
.tpl-catalog { padding-top: clamp(56px, 7vw, 96px); }
.tpl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.tpl-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tpl-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 99px; font-size: var(--t-1); font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); transition: color .2s, background .2s, box-shadow .2s; }
.tpl-filters button:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(207, 236, 250, .45); }
.tpl-filters .n { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .2s; }
.tpl-filters button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #29a4f8, #0857af); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.tpl-filters button[aria-pressed="true"] .n { color: rgba(255, 255, 255, .75); }
.tpl-filters button:focus-visible { outline: 2px solid #6fc6ff; outline-offset: 3px; border-radius: 99px; }
.tpl-count { font-size: var(--t-1); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Kart düzeni ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 96px) clamp(24px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.tcard { display: flex; flex-direction: column; min-width: 0; }
.tcard[hidden], .tcustom[hidden] { display: none; }
.tcard-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.tcard-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.tcard h3 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.sector { font-size: var(--t-1); color: var(--ink-3); }
.tcard-body > p { max-width: 36em; color: var(--ink-2); }
.tcard-note { padding-left: 14px; border-left: 1.5px solid rgba(111, 198, 255, .55); font-size: var(--t-1); color: var(--ink-3); max-width: 34em; }
.feat { display: flex; flex-wrap: wrap; gap: 8px; }
.feat li { padding: 6px 12px; border-radius: 99px; font-size: 13.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.tcard-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; padding-top: 10px; }
.tcard-acts .link { font-size: var(--t-1); }

/* Geniş kart: görsel solda (veya sağda), metin yanında */
.tcard.wide, .is-filtered .tcard { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(28px, 4vw, 56px); align-items: end; }
.tcard.wide .tcard-body, .is-filtered .tcard .tcard-body { padding-top: 0; padding-bottom: 4px; }
.tcard.wide h3, .is-filtered .tcard h3 { font-size: var(--t-5); }
.tcard.wide.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tcard.wide.flip .mock { order: 2; }
.is-filtered .tcard.wide.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.is-filtered .tcard.wide.flip .mock { order: 0; }

/* ---------- Ön izleme: tarayıcı çerçevesinde demo ---------- */
.mock { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #061230; box-shadow: inset 0 0 0 1px var(--rule-2), 0 40px 70px -50px rgba(0, 0, 0, .95); isolation: isolate; }
.mock-bar { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; background: rgba(207, 236, 250, .05); border-bottom: 1px solid var(--rule); }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(207, 236, 250, .22); }
.mock-bar span { margin-left: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.mock-body { position: relative; display: block; aspect-ratio: 900 / 560; overflow: hidden; }
.mock-body img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mock:hover .mock-body img { transform: scale(1.04); }
.mock-body::after { content: ""; position: absolute; inset: 0; }
.mock-text { position: absolute; z-index: 1; left: clamp(16px, 2.4vw, 28px); right: clamp(16px, 2.4vw, 28px); bottom: clamp(14px, 2.2vw, 26px); color: #fff; }
.mock-text small { display: block; margin-bottom: 8px; font-size: 12px; opacity: .82; }
.mock-text small b { font-weight: 600; margin-right: 4px; }
.mock-text strong { display: block; max-width: 17em; font: 400 clamp(20px, 2.2vw, 30px)/1.1 Georgia, "Times New Roman", serif; text-wrap: balance; }
.tcard:not(.wide) .mock-text strong { font-size: clamp(20px, 1.9vw, 26px); }
.mock-tag { position: absolute; z-index: 1; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #1f1d1a; background: rgba(251, 249, 246, .92); }
.mock-tag i { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-style: normal; font-size: 11px; color: #fff; background: #1f1d1a; }
.mock-hukuk .mock-body::after { background: linear-gradient(180deg, rgba(15, 27, 45, .1), rgba(15, 27, 45, .92)); }
.mock-kafe .mock-body::after { background: linear-gradient(180deg, rgba(43, 29, 20, 0) 30%, rgba(43, 29, 20, .9)); }
.mock-mimarlik .mock-body::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .78)); }
.mock-mimarlik .mock-text strong { font: 700 clamp(18px, 1.8vw, 24px)/1.1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.mock-eticaret .mock-body::after { background: linear-gradient(180deg, rgba(31, 29, 26, 0) 35%, rgba(31, 29, 26, .85)); }
.mock-dis .mock-body::after { background: linear-gradient(180deg, rgba(15, 42, 42, 0) 35%, rgba(15, 42, 42, .88)); }
.mock-guzellik .mock-body::after { background: linear-gradient(180deg, rgba(43, 29, 34, 0) 35%, rgba(43, 29, 34, .88)); }

/* ---------- Size özel: kutu değil, çizgili bir bant ---------- */
.tcustom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(36px, 4vw, 56px); border-top: 1.5px solid rgba(207, 236, 250, .4); }
.tcustom h3 { margin-top: 8px; font-size: var(--t-6); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.tcustom p { margin-top: 18px; max-width: 30em; color: var(--ink-2); }
.tcustom .btn { margin-top: 28px; }
.tcustom-list div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tcustom-list div:first-child { border-top: 1px solid var(--rule); }
.tcustom-list dt { color: var(--ink); font-weight: 500; }
.tcustom-list dd { font-size: var(--t-1); color: var(--ink-3); }

/* ---------- SSS ---------- */
.tpl-faq { border-top: 1px solid var(--rule); margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Teklif formu ---------- */
.tpl-quote { border-top: 1px solid var(--rule); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(28px, 5vw, 72px); align-items: start; }
.quote-intro h2 { font-size: var(--t-6); max-width: 9em; }
.quote-intro > p { margin-top: 20px; max-width: 30em; color: var(--ink-2); }
.quote-list { margin-top: 32px; border-top: 1.5px solid rgba(207, 236, 250, .4); }
.quote-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.quote-list li::before { content: ""; flex-shrink: 0; width: 10px; height: 5px; margin-bottom: 3px; border-left: 1.5px solid #6fc6ff; border-bottom: 1.5px solid #6fc6ff; transform: rotate(-45deg); }
.consent-f.bad .consent { color: #ff9a8f; }
.f select.flash { animation: tplFlash 1.4s var(--ease); }
@keyframes tplFlash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(25, 151, 239, .45); } }
@media (min-width: 921px) { .quote-intro { position: sticky; top: 110px; } }

/* ---------- Duyarlı ---------- */
@media (max-width: 920px) {
  .tcard.wide, .tcard.wide.flip, .is-filtered .tcard, .is-filtered .tcard.wide.flip { grid-template-columns: 1fr; gap: 0; }
  .tcard.wide.flip .mock { order: 0; }
  .tcard.wide .tcard-body, .is-filtered .tcard .tcard-body { padding-top: 24px; }
  .tcard.wide h3, .is-filtered .tcard h3 { font-size: clamp(26px, 4vw, 32px); }
  .tcustom, .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .tpl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tpl-bar { align-items: flex-start; }
  .tpl-filters button { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .mock { border-radius: 12px; }
  .mock-tag { right: 10px; top: 10px; font-size: 11px; }
  .tcustom h3 { font-size: clamp(30px, 9vw, 38px); }
  .tcustom .btn { width: 100%; }
  .faq details p { padding-right: 4px; }
}

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
  .mock-body img, .faq summary i::before, .faq summary i::after { transition: none; }
  .mock:hover .mock-body img { transform: none; }
  .f select.flash { animation: none; }
}

/* Pilates kartı: görsel sitenin kendi ekranı, karartma yok */
.mock-pilates .mock-body::after { display: none; }
.mock-pilates .mock-tag { top: auto; right: auto; left: 14px; bottom: 14px; background: #1c1533; color: #fff; }
.mock-pilates .mock-tag i { background: #ff7a45; color: #1c1533; }

/* Kart görselleri artık sitelerin kendi ekran görüntüsü: karartma yok, etiket sol altta */
.mock-shot .mock-body::after { display: none; }
.mock-shot .mock-tag { top: auto; right: auto; left: 14px; bottom: 14px; background: rgba(12, 14, 24, .88); color: #fff; }
.mock-shot .mock-tag i { background: #fff; color: #0c0e18; }
