/* SYNCLUTCH — palet docs/BRAND.md'den (logodan piksel analiziyle cikarildi) */

:root {
  --orange:       #FF7000;
  --orange-glow:  #FF9000;
  --orange-light: #FFA000;
  --redline:      #FF5000;
  --ember:        #A02000;

  --ice:          #50E0FF;
  --ice-deep:     #0070A0;

  /* Notrler sicaga kacik — turuncuyla akraba, "hazir sablon" hissi vermiyor */
  --black:        #060504;
  --surface:      #100E0C;
  --surface-2:    #17150F;
  --surface-3:    #1F1C15;
  --border:       #2B261D;
  --border-warm:  #3D3225;
  --text:         #F7F3ED;
  --text-mid:     #B3AA9C;
  --text-dim:     #7A7266;

  /* Guven durumu — aksandan ayri semantik renk */
  --solid:        #7BE08A;
  --solid-dim:    #2E5C36;
  --approx:       #E0A93A;
  --approx-dim:   #5C4718;

  --font-display: "Bahnschrift", "DIN Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "Cascadia Mono", "Consolas", ui-monospace, Menlo, monospace;

  --gradient: linear-gradient(112deg, var(--redline) 0%, var(--orange) 48%, var(--orange-light) 100%);
}

/* Tek tema (koyu) — bilincli marka karari.
   Logo neon-on-black tasarlanmis, acik zeminde glow oluyor. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,112,0,0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 15%, rgba(80,224,255,0.045), transparent 70%);
}

.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

a { color: var(--orange); }

/* ---------- Ust bar ---------- */

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,5,4,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.bar { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; }
.mark { width: 34px; height: 34px; flex: none; }

.wordmark {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; letter-spacing: 0.09em;
  color: var(--orange); text-shadow: 0 0 18px rgba(255,112,0,0.5); line-height: 1;
}
.wordmark small {
  display: block; font-size: 8.5px; letter-spacing: 0.34em;
  color: var(--text-dim); text-shadow: none; font-weight: 400; margin-top: 3px;
}

nav { display: flex; gap: 4px; }
nav a {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-mid); text-decoration: none;
  padding: 8px 13px; border-radius: 3px; transition: color .16s, background .16s;
}
nav a:hover, nav a:focus-visible { color: var(--text); background: var(--surface-2); }
nav a.on { color: var(--orange); }

.lang-switch {
  display: flex; flex: none; text-decoration: none;
  border: 1px solid var(--border-warm); border-radius: 3px; overflow: hidden;
}
.lang-switch span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 9px; color: var(--text-dim); background: var(--surface-2);
  transition: color .15s, background .15s;
}
.lang-switch span.on { color: var(--black); background: var(--orange); font-weight: 700; }
.lang-switch:hover span:not(.on) { color: var(--text); }
.lang-switch:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.live {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ice); border: 1px solid rgba(80,224,255,0.28);
  background: rgba(80,224,255,0.055); padding: 5px 11px; border-radius: 3px; white-space: nowrap;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 8px var(--ice);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 40px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 18px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 68px); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.005em; text-wrap: balance;
  margin: 0 0 20px; text-transform: uppercase;
}
h1 em {
  font-style: normal; background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 18px; color: var(--text-mid); max-width: 60ch; margin: 0 0 28px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.hero-meta b { color: var(--text-mid); font-weight: 500; }

.tread {
  height: 12px; margin: 48px 0;
  background-image: repeating-linear-gradient(68deg, var(--border-warm) 0 3px, transparent 3px 11px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ---------- Bolumler ---------- */

section { padding: 8px 0 56px; scroll-margin-top: 84px; }

.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }

h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; margin: 0;
}

.sec-note { font-size: 13.5px; color: var(--text-dim); }

.sec-link {
  margin-left: auto; font-family: var(--font-mono); font-size: 12px;
  color: var(--orange); text-decoration: none; white-space: nowrap;
}
.sec-link:hover { text-decoration: underline; }

/* ---------- Kontroller ---------- */

.controls { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 22px; }

label.fld {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px;
}

select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-warm); border-radius: 3px;
  padding: 11px 13px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%),
                    linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

input[type="search"] {
  width: 100%; margin-bottom: 8px;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: 9px 12px;
}
input[type="search"]::placeholder { color: var(--text-dim); }
input[type="search"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--border-warm); }

.car-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-top: 7px; }

.tabs { display: flex; border: 1px solid var(--border-warm); border-radius: 3px; overflow: hidden; }

.tab {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-mid); background: var(--surface-2);
  border: 0; border-right: 1px solid var(--border-warm); padding: 12px 20px;
  cursor: pointer; transition: color .15s, background .15s;
}
.tab:last-child { border-right: 0; }
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab[aria-selected="true"] { color: var(--black); background: var(--gradient); font-weight: 700; }
.tab:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }

/* ---------- Arac karti + cikti ---------- */

.grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }

.car-card { padding: 20px; position: sticky; top: 88px; }

.car-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  line-height: 1.1; text-transform: uppercase; margin: 0 0 4px;
}
.car-year { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.pi-row { display: flex; align-items: center; gap: 9px; margin: 16px 0 20px; flex-wrap: wrap; }

.pi-badge {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--black); background: var(--gradient); padding: 4px 11px; border-radius: 2px;
}
.dt-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-mid); border: 1px solid var(--border-warm); padding: 4px 9px; border-radius: 2px;
}

dl { margin: 0; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.spec dt { color: var(--text-dim); margin: 0; }
.spec dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------- Tune ciktisi ---------- */

.out { padding: 4px 0 8px; min-height: 200px; }

.group { border-top: 1px solid var(--border); }
.group:first-child { border-top: 0; }

.group-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px 11px; flex-wrap: wrap; }

h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; margin: 0; color: var(--text);
}

.chip {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}
.chip.calculated { color: var(--solid);  background: rgba(123,224,138,0.09); border: 1px solid var(--solid-dim); }
.chip.starting   { color: var(--approx); background: rgba(224,169,58,0.09);  border: 1px solid var(--approx-dim); }
.chip.corrected  { color: var(--ice);    background: rgba(80,224,255,0.09);  border: 1px solid var(--ice-deep); }

/* ---------- Surucu geri beslemesi ---------- */

.feedback { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-warm); }

.fb-head h4 {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--text); margin: 0 0 4px;
}
.fb-head p { margin: 0 0 12px; font-size: 12px; color: var(--text-dim); line-height: 1.45; }

.fb-symptoms { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }

.fb-btn {
  font-family: var(--font-body); font-size: 13px; text-align: left;
  color: var(--text-mid); background: var(--surface-2);
  border: 1px solid var(--border-warm); border-radius: 3px;
  padding: 8px 11px; cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.fb-btn:hover { color: var(--text); border-color: var(--ice-deep); }
.fb-btn[aria-pressed="true"] {
  color: var(--ice); border-color: var(--ice);
  background: rgba(80,224,255,0.08); font-weight: 600;
}
.fb-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }

.fb-balance input[type="number"] {
  width: 100%; font-family: var(--font-mono); font-size: 14px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-warm);
  border-radius: 3px; padding: 8px 11px;
}
.fb-balance input:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }
.fb-balance.na { opacity: 0.45; pointer-events: none; }

.rows { padding: 0 20px 16px; }

.row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline;
  padding: 7px 0 7px 13px; border-left: 2px solid transparent; font-size: 14.5px;
}
.group.is-calculated .row { border-left-color: var(--solid-dim); }
.group.is-starting   .row { border-left-color: var(--approx-dim); }

.row-label { color: var(--text-mid); }
.row-val {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 15px; color: var(--text); font-weight: 600;
}
.row-unit { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); min-width: 42px; }

.why {
  margin: 2px 20px 18px; padding: 11px 14px;
  background: var(--surface-2); border-left: 2px solid var(--border-warm);
  border-radius: 0 3px 3px 0; font-size: 13px; color: var(--text-mid); line-height: 1.55;
}
.why b { color: var(--text); font-weight: 600; }

/* ---------- Uyari ---------- */

.notice {
  display: flex; gap: 14px; padding: 16px 18px;
  background: rgba(224,169,58,0.055); border: 1px solid var(--approx-dim);
  border-radius: 4px; font-size: 14px; color: var(--text-mid); margin-bottom: 22px;
}
.notice strong { color: var(--approx); font-weight: 600; white-space: nowrap; }

/* ---------- Meta tablosu ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }

table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }

th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim); text-align: left; font-weight: 400;
  padding: 13px 16px; border-bottom: 1px solid var(--border-warm); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

.disc { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); }
.cls { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--orange); }

.dom { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.dom-bar { flex: 1; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.dom-fill { height: 100%; background: var(--gradient); border-radius: 3px; }
.dom-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--text-mid); min-width: 38px; text-align: right; }
.dom-na { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }

.prov { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.prov-ok   { color: var(--solid); }
.prov-warn { color: var(--approx); }

/* Sifirlama gibi "bu veri artik gecersiz" durumlari */
.notice-bad {
  background: rgba(255, 74, 61, 0.06);
  border-color: rgba(255, 74, 61, 0.35);
}
.notice-bad strong { color: #FF4A3D; }

/* ---------- Overlay ---------- */

.overlay-sec { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: center; }

.ov-demo { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 18px; font-family: var(--font-mono); }
.ov-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.ov-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; }
.ov-row span:first-child { color: var(--text-dim); }
.ov-row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }

.gauge { margin-top: 14px; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.gauge-fill { height: 100%; width: 62%; background: linear-gradient(90deg, var(--ice-deep), var(--ice)); border-radius: 2px; }

ul.feat { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
ul.feat li { padding-left: 22px; position: relative; color: var(--text-mid); font-size: 14.5px; }
ul.feat li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 2px; background: var(--orange); }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 32px 0 48px; font-size: 13px; color: var(--text-dim); }
footer a { color: var(--text-mid); }
.foot-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.attrib { max-width: 52ch; line-height: 1.65; }

/* Hesaplayicinin altindaki build ipucu */
.build-hint {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; margin-top: 14px;
  font-size: 14px; color: var(--text-mid);
}
.build-hint[hidden] { display: none; }
.btn-sm { margin-left: auto; padding: 7px 14px; font-size: 12px; }

/* ---------- Build'ler ---------- */

.build {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 16px 18px; margin-bottom: 14px;
}

.build-head { display: flex; align-items: flex-start; gap: 16px; }

.build-car { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.03em; margin: 0 0 7px; }
.build-car a { color: var(--text); text-decoration: none; }
.build-car a:hover { color: var(--orange); }

.build-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.build-meta b { color: var(--text-mid); font-weight: 600; }
.build-meta .pi-badge { font-size: 12px; padding: 2px 8px; }

.vote { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-left: auto; flex: none; }
.vote-btn {
  width: 30px; height: 26px; font-size: 12px; line-height: 1;
  color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--border-warm); border-radius: 3px; cursor: pointer;
}
.vote-btn:hover:not(:disabled) { color: var(--orange); border-color: var(--orange); }
.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vote-num { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

.build-parts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 16px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.part { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.part-slot { color: var(--text-dim); }
.part-val  { color: var(--text); font-family: var(--font-mono); font-size: 12px; text-align: right; }

.build-code {
  margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.build-code b { color: var(--orange); letter-spacing: 0.08em; }

.build-notes {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-mid); line-height: 1.6;
}

/* Build formu */
.build-form { padding-bottom: 48px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.fld-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); margin-top: 5px; }

.parts-cat { padding: 16px 18px; margin-bottom: 14px; }
.parts-cat-name {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.part-field label.fld { margin-bottom: 6px; }

@media (max-width: 700px) {
  .build-head { flex-direction: column; }
  .vote { flex-direction: row; margin-left: 0; }
}

/* ---------- Videolar ---------- */

.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.vid-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.vid-thumb {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 4px;
  transition: border-color .16s, transform .16s;
}
.vid-thumb:hover { border-color: var(--orange); transform: translateY(-2px); }
.vid-thumb:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vid-noimg {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  color: var(--ember-deep); letter-spacing: 0.1em;
}

/* Oynat ucgeni — saf CSS, resim yok */
.vid-play {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6,5,4,0.62); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,112,0,0.5);
  transition: background .16s, border-color .16s;
}
.vid-play::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0; margin-left: 17px;
  border-left: 13px solid var(--orange);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.vid-thumb:hover .vid-play { background: rgba(255,112,0,0.16); border-color: var(--orange); }

.vid-disc {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--black);
  background: var(--gradient); padding: 3px 7px; border-radius: 2px;
}

.vid-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.vid-title {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  line-height: 1.4; color: var(--text); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.vid-car {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--orange); text-decoration: none;
}
.vid-car:hover { text-decoration: underline; }
.vid-pi {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
  border: 1px solid var(--border-warm); padding: 1px 5px; border-radius: 2px;
}

.vid-ext { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); text-decoration: none; }
.vid-ext:hover { color: var(--text-mid); }

/* Oynatici penceresi */
.vid-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(6,5,4,0.9); backdrop-filter: blur(6px);
}
.vid-modal[hidden] { display: none; }

.vid-modal-inner {
  width: min(340px, 100%); aspect-ratio: 9 / 16;
  max-height: calc(100vh - 90px);
  border: 1px solid var(--border-warm); border-radius: 6px; overflow: hidden;
  background: var(--surface);
}
.vid-modal-inner iframe { width: 100%; height: 100%; border: 0; display: block; }

.vid-modal-close {
  position: absolute; top: 16px; right: 20px;
  width: 40px; height: 40px; font-size: 26px; line-height: 1;
  color: var(--text-mid); background: var(--surface-2);
  border: 1px solid var(--border-warm); border-radius: 3px; cursor: pointer;
}
.vid-modal-close:hover { color: var(--text); border-color: var(--orange); }
.vid-modal-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Ana sayfadaki serit */
.vid-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

@media (max-width: 600px) {
  .vid-grid, .vid-strip { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}

/* Filtre sekmeleri baglanti oldugu icin ayrica hizalanir */
.tabs a.tab { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- Forum ---------- */

.user-chip {
  display: flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.05em;
  color: var(--text-mid); text-decoration: none;
  padding: 5px 11px 5px 6px; border: 1px solid var(--border-warm); border-radius: 3px;
  transition: color .15s, border-color .15s;
}
.user-chip:hover { color: var(--text); border-color: var(--orange); }
.user-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 2px;
  background: var(--gradient); color: var(--black);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
}

.forum-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

.thread-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }

.thread-row {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px; background: var(--surface);
  border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: background .14s;
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--surface-2); }
.thread-row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }

.thread-main { flex: 1; min-width: 0; }
.thread-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 15.5px; color: var(--text); margin-bottom: 5px;
}
.thread-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.thread-meta .sys { color: var(--orange); }

.thread-nums {
  display: flex; gap: 18px; flex: none;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); text-align: right;
}
.thread-nums b { display: block; font-size: 14px; color: var(--text-mid); font-weight: 600; }

.kind {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 2px; flex: none;
}
.kind-meta  { color: var(--orange); background: rgba(255,112,0,0.11); border: 1px solid var(--ember-deep); }
.kind-patch { color: var(--ice);    background: rgba(80,224,255,0.10); border: 1px solid var(--ice-deep); }
.kind-build { color: var(--solid);  background: rgba(123,224,138,0.09); border: 1px solid var(--solid-dim); }

.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list li { display: flex; align-items: center; gap: 8px; }
.cat-list a {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 3px; text-decoration: none;
  color: var(--text-mid); font-size: 14px; transition: color .14s, background .14s;
}
.cat-list a:hover { color: var(--text); background: var(--surface-2); }
.cat-list a.on { color: var(--orange); background: var(--surface-2); }
.cat-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

.crumb { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); text-decoration: none; }
.crumb:hover { color: var(--orange); }

.car-link {
  display: inline-block; margin-top: 14px; padding: 8px 13px;
  border: 1px solid var(--border-warm); border-radius: 3px;
  font-size: 13.5px; color: var(--text-mid); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.car-link:hover { border-color: var(--orange); color: var(--text); }
.car-link b { color: var(--orange); }

.post {
  display: grid; grid-template-columns: 132px 1fr; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; margin-bottom: 14px; overflow: hidden;
}
.post-side {
  padding: 18px; background: var(--surface-2);
  border-right: 1px solid var(--border); text-align: center;
}
.post-side .avatar { width: 40px; height: 40px; font-size: 19px; margin: 0 auto 10px; border-radius: 3px; }
.post-user { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; color: var(--text); word-break: break-word; }
.post-user.sys { color: var(--orange); }
.post-role { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 4px; }

.post-body { padding: 18px 20px; min-width: 0; }
.post-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-bottom: 12px; }
.post-body p { margin: 0 0 12px; line-height: 1.65; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 {
  font-size: 17px; letter-spacing: 0.06em; margin: 20px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.post-body code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--surface-3); padding: 1px 5px; border-radius: 2px; color: var(--orange-light);
}
.post-body strong { color: var(--text); }
.post-body a { color: var(--orange); }

.pager { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager a {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 11px;
  border: 1px solid var(--border-warm); border-radius: 3px;
  color: var(--text-mid); text-decoration: none;
}
.pager a:hover { color: var(--text); border-color: var(--orange); }
.pager a.on { color: var(--black); background: var(--orange); border-color: var(--orange); font-weight: 700; }

/* ---------- Formlar ---------- */

.stack { display: flex; flex-direction: column; gap: 10px; }

textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-warm);
  border-radius: 3px; padding: 10px 12px; resize: vertical;
}
textarea::placeholder, input::placeholder { color: var(--text-dim); }
textarea:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

.btn {
  display: inline-block; font-family: var(--font-display); font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--black); background: var(--gradient);
  border: 0; border-radius: 3px; padding: 11px 20px;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.btn-ghost {
  background: none; color: var(--text-mid);
  border: 1px solid var(--border-warm); margin-left: 8px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--orange); filter: none; }

@media (max-width: 900px) {
  .forum-layout { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post-side {
    display: flex; align-items: center; gap: 12px; text-align: left;
    border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 18px;
  }
  .post-side .avatar { margin: 0; width: 30px; height: 30px; font-size: 15px; }
  .thread-nums { display: none; }
}

/* ---------- Durumlar ---------- */

.loading, .err { padding: 28px 20px; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.err { color: var(--approx); }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .car-card { position: static; }
  .overlay-sec { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==============================================================
   ARAC SAYFASI, DIZIN, MODERASYON, HUKUKI SAYFALAR
   ============================================================== */

/* --- Kirintili yol --- */
.crumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 28px 0 0;
  font-size: 13px; color: var(--text-dim);
}
.crumbs a { color: var(--text-mid); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }

/* --- Arac basligi --- */
.car-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; padding: 18px 0 22px;
}
.car-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.02; letter-spacing: -0.5px;
  margin: 6px 0 12px;
}
.car-hero .lede { max-width: 62ch; margin: 0; }

.pi-badge.big {
  font-size: 30px; padding: 10px 18px; line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex-shrink: 0;
}
.pi-badge.big small {
  font-size: 11px; letter-spacing: 1.4px; opacity: 0.75; font-weight: 600;
}
.pi-badge.sm { font-size: 11px; padding: 1px 6px; }

.spec-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  background: var(--surface);
  margin-bottom: 26px;
}
.spec-strip .spec {
  flex: 1 1 150px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
}
.spec-strip .spec:last-child { border-right: 0; }
.spec-strip .spec span {
  font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--text-dim);
}
.spec-strip .spec strong {
  font-family: var(--font-mono); font-size: 15px; color: var(--text);
}

.disc-note {
  color: var(--text-mid); font-size: 15px;
  max-width: 76ch; margin: 0 0 22px;
  padding-left: 14px; border-left: 2px solid var(--border-warm);
}

.car-hero + .spec-strip + .tabs { margin-bottom: 22px; }

/* --- Arac dizini --- */
.make-filter {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 18px 0 30px;
}
.make-filter .tab { border-radius: 6px; font-size: 13px; }
.make-filter .tab.on {
  border-color: var(--orange); color: var(--orange);
}
.make-filter .tab small { opacity: 0.55; margin-left: 4px; font-size: 11px; }

.make-block { margin-bottom: 34px; }
.make-block h2 {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 0.5px;
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.car-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.car-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 7px;
  border: 1px solid transparent;
  color: var(--text-mid); text-decoration: none;
  font-size: 14px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.car-list a:hover {
  background: var(--surface-2);
  border-color: var(--border-warm);
  color: var(--text);
}
.cl-name { flex: 1; min-width: 0; }
.cl-year { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.link-list a { color: var(--text-mid); text-decoration: none; }
.link-list a:hover { color: var(--orange); }

.build-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; text-decoration: none; color: var(--text);
}
.build-card .by { color: var(--text-dim); font-size: 13px; flex: 1; }

/* --- Moderasyon --- */
.mod-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
}
.mod-tag {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--approx); font-weight: 600;
}
.inline-form { display: inline; }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--text-dim); font-size: 13px; font-family: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--orange); }
.link-btn.danger:hover { color: var(--redline); }

.post-tools {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.post.is-deleted { opacity: 0.5; }
.post.is-deleted .post-body { text-decoration: line-through solid rgba(255,80,0,0.35); }
.del-flag {
  display: inline-block; margin-left: 8px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--redline);
}

.mod-chip { position: relative; }
.mod-chip .badge {
  display: inline-block; margin-left: 6px;
  min-width: 18px; padding: 0 5px;
  background: var(--redline); color: #fff;
  border-radius: 9px; font-size: 11px; line-height: 18px;
  text-align: center; font-weight: 700;
}

.report { padding: 16px 18px; margin-bottom: 14px; }
.report-head {
  display: flex; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.report-head a { color: var(--text); font-weight: 600; text-decoration: none; }
.report-head a:hover { color: var(--orange); }
.report-reason { color: var(--approx); font-size: 14px; margin: 0 0 8px; }
.report-quote {
  margin: 0; padding: 10px 14px;
  background: var(--surface-2);
  border-left: 2px solid var(--border-warm);
  border-radius: 0 6px 6px 0;
  color: var(--text-mid); font-size: 14px;
  white-space: pre-wrap;
}

/* --- Bildirim durumlari --- */
.notice.ok { border-color: var(--solid-dim); }
.notice.ok strong { color: var(--solid); }
.notice.warn { border-color: var(--approx-dim); }
.notice.warn strong { color: var(--approx); }

/* --- Hata sayfasi --- */
.error-page { padding: 90px 0 120px; text-align: center; }
.error-page .eyebrow {
  font-family: var(--font-display); font-size: 76px;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; margin: 0 0 6px; line-height: 1;
}
.error-page h1 { font-family: var(--font-display); font-size: 30px; margin: 0 0 10px; }
.error-page .lede { color: var(--text-mid); margin: 0 auto 28px; max-width: 44ch; }
.error-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --- Hukuki sayfalar --- */
.legal { max-width: 74ch; padding: 40px 0 90px; }
.legal h1 { font-family: var(--font-display); font-size: 36px; margin: 0 0 6px; }
.legal h2 {
  font-family: var(--font-display); font-size: 21px;
  margin: 38px 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.legal h3 { font-size: 16px; margin: 22px 0 6px; color: var(--orange-light); }
.legal p, .legal li { color: var(--text-mid); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--orange); }

.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.foot-links a { color: var(--text-dim); font-size: 13px; text-decoration: none; }
.foot-links a:hover { color: var(--orange); }

@media (max-width: 720px) {
  .car-hero { flex-direction: column; gap: 14px; }
  .spec-strip .spec { flex-basis: 50%; }
  .car-list { grid-template-columns: 1fr; }
}

/* ==============================================================
   ARAC FOTOGRAFLARI
   FH6'nin resmi render'lari — saydam zeminli PNG/WebP.
   ============================================================== */

/*
 * Fotografin ARKASINA yumusak bir isik koyuyoruz.
 *
 * NEDEN: render'lar saydam ve araclarin cogu koyu renkli. Duz siyah
 * zeminde siyah bir araba tamamen kayboluyor. Bu hale hem araci
 * zeminden ayiriyor hem de markanin turuncusunu tasiyor.
 */
.car-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-photo::before {
  content: "";
  position: absolute;
  left: 50%; top: 56%;
  width: 92%; height: 68%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              rgba(255,112,0,0.16) 0%,
              rgba(255,112,0,0.07) 38%,
              rgba(80,224,255,0.03) 62%,
              transparent 74%);
  pointer-events: none;
  z-index: 0;
}
.car-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  /* Zemine oturtan golge — araci havada asili birakmiyor */
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.75));
}

/* --- Arac sayfasi basligi --- */
.car-hero.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 46%) auto;
  align-items: center;
  gap: 20px;
}
.car-hero.has-photo .car-hero-text { min-width: 0; }
.car-hero.has-photo .car-photo { margin: -10px 0; }

/* --- Ana sayfadaki hesaplayici kartinda --- */
.card-photo {
  margin: -6px -6px 10px;
}
.card-photo img {
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.7));
}

/* --- Dizin kartlari --- */
.car-list a.has-photo {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
}
.cl-photo {
  position: relative;
  display: block;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%,
              rgba(255,112,0,0.14), transparent 70%);
}
.cl-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.cl-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cl-text .cl-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* Fotografsiz kayitlar eski tek satirlik duzende kalsin */
.car-list a:not(.has-photo) .cl-text {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  flex: 1;
}

/* --- Atif --- */
.photo-credit {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}
.photo-credit a { color: var(--text-mid); }

@media (max-width: 860px) {
  .car-hero.has-photo {
    grid-template-columns: 1fr auto;
  }
  .car-hero.has-photo .car-photo {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 4px 0 0;
  }
}

