/* ProCAD web sitesi — tek stil dosyası. Renkler programın temasından (src/ProCAD.App/Theme.xaml). */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #14202e;
  --muted: #4f5d6e;
  --line: #dce3eb;
  --accent: #1f6fb5;        /* T.AccentDeep — beyaz üstünde AA */
  --accent-hover: #185a94;
  --accent-soft: #e6f1fb;
  --accent-bright: #3b9ae8; /* T.Accent */
  --link: #1a63a6;
  --ok: #217a45;
  --warn: #8a5a00;
  --warn-soft: #fff5e0;
  --code-bg: #eef2f7;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --radius: 12px;
  --maxw: 1200px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  /* Kahraman alanı her temada koyu */
  --hero-bg: #0f1215;
  --hero-text: #e4e7eb;
  --hero-muted: #a9b2bd;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121417;
    --bg-soft: #171a1e;
    --surface: #1e2125;
    --surface-2: #23272c;
    --text: #e4e7eb;
    --muted: #a3acb7;
    --line: #31363d;
    --accent: #3b9ae8;
    --accent-hover: #63b0ef;
    --accent-soft: #1c2f42;
    --link: #7cc0f7;
    --ok: #5ccf8a;
    --warn: #f0c060;
    --warn-soft: #2e2716;
    --code-bg: #272b30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121417;
  --bg-soft: #171a1e;
  --surface: #1e2125;
  --surface-2: #23272c;
  --text: #e4e7eb;
  --muted: #a3acb7;
  --line: #31363d;
  --accent: #3b9ae8;
  --accent-hover: #63b0ef;
  --accent-soft: #1c2f42;
  --link: #7cc0f7;
  --ok: #5ccf8a;
  --warn: #f0c060;
  --warn-soft: #2e2716;
  --code-bg: #272b30;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 .35em; border-radius: 4px; background: var(--surface); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- Üst çubuk ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand:hover { color: var(--text); }
.brand .ver { font-size: .72rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 999px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav .btn { margin-left: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .site-header .theme-toggle { order: 3; }
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0b1620; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0b1620; } }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { color: #0b1620; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { color: #0b1620; } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* ---------- Kahraman ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text); background: var(--hero-bg);
  padding: 72px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    url("../img/kontur.svg"),
    linear-gradient(rgba(59, 154, 232, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 154, 232, .07) 1px, transparent 1px);
  background-size: 1400px auto, 40px 40px, 40px 40px;
  background-position: center top, -1px -1px, -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 154, 232, .22), transparent); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: #9fd0f8; background: rgba(59, 154, 232, .12); border: 1px solid rgba(59, 154, 232, .35);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: #7cc0f7; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--hero-muted); max-width: 720px; margin: 0 auto 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; }
.hero .btn-primary { background: #3b9ae8; color: #08131d; }
.hero .btn-primary:hover { background: #63b0ef; color: #08131d; }
.hero .btn-ghost { color: #e4e7eb; border-color: #3d434c; }
.hero .btn-ghost:hover { background: #1e2125; color: #fff; }
.hero-note { font-size: .88rem; color: var(--hero-muted); }
.hero-shot {
  margin: 44px auto 0; max-width: 1120px; border-radius: 12px 12px 0 0; overflow: hidden;
  border: 1px solid #31363d; border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(59, 154, 232, .18), 0 30px 80px rgba(0, 0, 0, .6);
}
.hero-shot button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }

/* ---------- Bölümler ---------- */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); padding-left: 1.2em; margin: .6em 0 0; }
.support-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.support-card h2 { font-size: 1.25rem; margin: 0; }
.support-card .btn { margin-top: auto; }
.support-note { margin-top: 20px; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.feature .ico svg { width: 24px; height: 24px; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); margin-left: 4px;
}

/* Galeri */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.gallery figure { margin: 0; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; aspect-ratio: 16 / 10;
}
.gallery button img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .25s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .92rem; color: var(--muted); padding: 8px 2px 0; }
.gallery figcaption strong { color: var(--text); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 8, 12, .9); }
.lightbox .lb-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 16px; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100vh - 130px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox .lb-cap { color: #d6dbe1; margin-top: 12px; text-align: center; font-size: .95rem; max-width: 900px; }
.lightbox .lb-btn {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3d434c; background: rgba(30, 33, 37, .85);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 10px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }

/* Tablolar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 650; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }
.formats td:first-child { font-weight: 600; white-space: nowrap; }

/* İş akışı */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); counter-reset: step; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 16px; counter-increment: step; }
.flow li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 10px;
}
:root[data-theme="dark"] .flow li::before { color: #0b1620; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flow li::before { color: #0b1620; } }
.flow h3 { font-size: 1.02rem; margin-bottom: .3em; }
.flow p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Lisans özeti */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat .big { font-size: 2rem; font-weight: 750; color: var(--accent); line-height: 1.1; }
.stat .lbl { font-weight: 650; margin: 6px 0 4px; }
.stat p { color: var(--muted); font-size: .93rem; margin: 0; }

/* SSS */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA bandı */
.cta-band {
  background: var(--hero-bg); color: var(--hero-text); border-radius: 16px; padding: 44px 28px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/kontur.svg") center / 1200px auto; opacity: .7; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--hero-muted); }
.cta-band .btn-primary { background: #3b9ae8; color: #08131d; }
.cta-band .btn-ghost { color: #e4e7eb; border-color: #3d434c; }
.cta-band .btn-ghost:hover { background: #1e2125; color: #fff; }

/* Sayfa başlığı (alt sayfalar) */
.page-head { background: var(--hero-bg); color: var(--hero-text); padding: 56px 0 44px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: url("../img/kontur.svg") center top / 1400px auto; opacity: .8; pointer-events: none; }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3em; }
.page-head p { color: var(--hero-muted); max-width: 760px; margin: 0; font-size: 1.08rem; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.note {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: 8px;
  padding: 14px 18px; margin: 1.2em 0;
}
.note.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note p:last-child { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem;
}

/* İndirme kartları */
.dl-card { display: flex; flex-direction: column; gap: 12px; }
.dl-card .meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; margin: 4px 0 8px; }
.dl-card .meta dt { color: var(--muted); }
.dl-card .meta dd { margin: 0; }
.hash { font-family: var(--mono); font-size: .78rem; word-break: break-all; background: var(--code-bg); padding: 8px 10px; border-radius: 6px; display: block; }
.copy-btn { font-size: .8rem; padding: 4px 10px; }
.dl-card .btn { align-self: flex-start; }
.badge-rec { font-size: .72rem; font-weight: 700; color: var(--ok); border: 1px solid currentColor; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.contact-list dt { font-weight: 650; }
.contact-list dd { margin: 0; color: var(--muted); }
.placeholder { color: var(--muted); font-style: italic; }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 28px; font-size: .93rem; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .muted { color: var(--muted); }
.legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: .84rem; }
.legal p { margin: 0 0 .4em; }

/* ---------- Belgeler ---------- */
.docs-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 64px; }
@media (max-width: 960px) { .docs-layout { grid-template-columns: 1fr; gap: 16px; } }
.docs-side { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 6px; font-size: .93rem; }
@media (max-width: 960px) { .docs-side { position: static; max-height: none; overflow: visible; } }
.docs-side details > summary { display: none; }
@media (max-width: 960px) {
  .docs-side details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .docs-side details > summary { display: block; cursor: pointer; padding: 12px 14px; font-weight: 600; }
  .docs-side details > nav { padding: 0 14px 12px; }
}
.docs-side nav ul { list-style: none; margin: 0; padding: 0; }
.docs-side nav > ul > li { margin-bottom: 2px; }
.docs-side nav a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.docs-side nav a:hover { background: var(--bg-soft); }
.docs-side nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs-side nav ul ul { margin: 2px 0 8px 10px; border-left: 1px solid var(--line); }
.docs-side nav ul ul a { color: var(--muted); font-size: .88rem; padding: 3px 10px; }
.docs-side nav ul ul a:hover { color: var(--text); }
.docs-side nav ul ul a.active { color: var(--accent); }
.side-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 10px 6px; font-weight: 700; }

.search { position: relative; margin-bottom: 12px; }
.search input {
  width: 100%; padding: 10px 12px 10px 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: .95rem;
}
.search svg { position: absolute; left: 11px; top: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; display: none;
}
.search-results.open { display: block; }
.search-results a { display: block; padding: 10px 12px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.sel { background: var(--accent-soft); }
.search-results .r-t { font-weight: 600; font-size: .92rem; }
.search-results .r-s { font-size: .76rem; color: var(--muted); }
.search-results .r-x { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.search-results mark { background: color-mix(in srgb, var(--accent-bright) 30%, transparent); color: inherit; border-radius: 2px; }
.search-results .empty { padding: 12px; color: var(--muted); font-size: .9rem; }

.doc { min-width: 0; }
.doc .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.doc .crumbs a { color: var(--muted); }
.doc h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; padding-top: .4em; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc h4 { font-size: 1rem; margin-top: 1.3em; }
.doc h2 .anchor, .doc h3 .anchor, .doc h4 .anchor { opacity: 0; margin-left: 6px; text-decoration: none; color: var(--muted); font-weight: 400; }
.doc h2:hover .anchor, .doc h3:hover .anchor, .doc h4:hover .anchor, .doc .anchor:focus { opacity: 1; }
.doc table { font-size: .92rem; }
.doc .table-wrap { margin: 1em 0 1.4em; }
.doc blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--text); }
.doc blockquote p:last-child { margin: 0; }
.doc pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: .88rem; }
.doc pre code { background: none; padding: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc li { margin-bottom: .3em; }
.doc .pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc .pager a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); min-width: 200px; }
.doc .pager a:hover { border-color: var(--accent); }
.doc .pager small { display: block; color: var(--muted); }
.doc .pager .next { text-align: right; margin-left: auto; }
.notice-pre { white-space: pre-wrap; font-family: var(--mono); font-size: .85rem; background: var(--code-bg); padding: 18px; border-radius: 10px; overflow-x: auto; }

.doc-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 1.5em 0 2em; }
.doc-cards a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--surface); }
.doc-cards a:hover { border-color: var(--accent); }
.doc-cards strong { display: block; margin-bottom: 4px; }
.doc-cards span { color: var(--muted); font-size: .9rem; }

/* Kullanım videoları (kullanim.html; kartlar tools/belgeler-uret.cs ile videolar.json'dan) */
.videos { display: grid; gap: 28px; }
.video-card { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; scroll-margin-top: 90px; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.video-card h2 { font-size: 1.35rem; margin: 0 0 .3em; }
.video-card .no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-right: 8px; font-size: .95rem;
  background: var(--accent); color: #fff; vertical-align: 2px; }
.video-card .meta { font-size: .88rem; color: var(--muted); margin: 0 0 .7em; }
.video-card p { color: var(--muted); }
.video-card details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.video-card summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.video-card details ol { margin: 0; padding: 0 16px 12px 36px; color: var(--muted); font-size: .94rem; }
.video-card details li { margin-bottom: .45em; }
@media (max-width: 900px) { .video-card { grid-template-columns: 1fr; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 32px; }
  th, td { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .docs-side, .hero-shot, .skip-link { display: none !important; }
  .hero, .page-head { background: none; color: #000; }
}
