/* Opel OBD Telematik — dark modern theme. Elle yazılmıştır, build adımı yoktur. */

:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-card: #1c2330;
  --border: #2d3748;
  --text: #e6edf3;
  --text-muted: #9aa7b4;
  --accent: #2dd4bf;          /* teal */
  --accent-2: #f59e0b;        /* amber */
  --danger: #f87171;
  --link: #7dd3fc;
  --radius: 12px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}
a:hover { border-bottom-color: var(--link); }

code {
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  padding-top: 0.5rem;
  letter-spacing: -0.01em;
}
h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 0.85rem;
}

h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }

section { margin: 4rem 0; }

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

.hero {
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(45, 212, 191, 0.13), transparent 65%),
    radial-gradient(800px 420px at 10% 0%, rgba(245, 158, 11, 0.08), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.25rem;
  font-size: 0.92rem;
}
.topnav a {
  color: var(--text-muted);
  border-bottom: none;
}
.topnav a:hover { color: var(--text); }
.topnav .topnav-panel {
  color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.85rem;
}
.topnav .topnav-panel:hover { background: rgba(45, 212, 191, 0.16); }

.hero-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .accent {
  background: linear-gradient(90deg, var(--accent), var(--link));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-figure { margin: 0 auto; max-width: 900px; }
.hero-figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.hero-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Flow diagram ---------- */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.6rem;
  margin: 2rem 0;
}

.flow-box {
  flex: 1 1 200px;
  max-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
}

.flow-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.flow-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.flow-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ---------- Notes / callouts ---------- */

.note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.note.warn { border-left-color: var(--accent-2); }
.note ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.note li { margin: 0.45rem 0; }
.note li::marker { color: var(--accent-2); }

/* ---------- Schematics ---------- */

.schematic {
  margin: 2.25rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Şema SVG'leri beyaz arka planla üretildi — kart içinde beyaz panelde gösterilir */
.schematic img {
  width: 100%;
  background: #ffffff;
  padding: 1rem;
}

.schematic figcaption {
  padding: 1rem 1.4rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.schematic figcaption strong { color: var(--text); }

.critical {
  color: var(--danger);
  font-weight: 700;
}

/* ---------- AI image gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.gallery figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.gallery figcaption {
  padding: 0.85rem 1.1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.gallery figcaption strong { color: var(--text); }

.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-2);
  padding-left: 0.9rem;
}

/* ---------- Price table ---------- */

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 720px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
}

tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
tbody tr:hover { background: rgba(45, 212, 191, 0.05); }

td small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.84em;
  line-height: 1.5;
}

td.num, th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

tfoot td {
  border-bottom: none;
  background: var(--bg-soft);
  font-size: 1rem;
}

.table-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}

/* ---------- Checklist ---------- */

.checklist {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.checklist li {
  counter-increment: step;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1rem 3.6rem;
}

.checklist li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

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

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
footer strong { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 3rem 0 2.25rem; }
  section { margin: 3rem 0; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-box { max-width: none; }
  .flow-arrow { transform: rotate(90deg); padding: 0; line-height: 1; }
  .schematic img { padding: 0.5rem; }
}
