/*
 * OfferMed — statik yasal site (offermed.selhux.com)
 *
 * Tek stil dosyası, beş sayfa (TR/EN landing + iki belgenin iki dili). JavaScript
 * yok ve olmayacak: nginx.conf'taki Content-Security-Policy `default-src 'none'`
 * ile başlıyor, yani bir script etiketi eklenirse tarayıcı onu ENGELLER. Aynı
 * politika dış yazı tiplerini ve analytics'i de kapatır — gizlilik metninin
 * "bu site sizi izlemez" cümlesi böylece bir iddia değil, uygulanan bir kural.
 *
 * Renkler mobil uygulamanın `src/constants/theme.ts` paletinden alındı; site ile
 * uygulama aynı markayı göstersin diye birebir aynı onaltılıklar kullanıldı.
 */

:root {
  --primary: #1d4ed8;
  --primary-light: #3b82f6;
  --navy: #0b1f3f;
  --navy-deep: #081833;
  --accent: #06b6d4;
  --warning: #f59e0b;

  --text: #0b1f3f;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --bg: #ffffff;
  --bg-element: #f1f5f9;
  --border: #e2e8f0;
  --brand-tint: #eff4ff;
  --warn-tint: #fff8eb;

  --wrap: 62rem;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --bg: #0b1220;
    --bg-element: #161a21;
    --border: #2a2f38;
    --brand-tint: #152540;
    --warn-tint: #2a2010;
    --primary: #60a5fa;
    --primary-light: #93c5fd;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sabit başlık, çapa (#bolum) tıklandığında konuyu örtmesin. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------ başlık */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy);
  color: #f8fafc;
  border-bottom: 1px solid var(--navy-deep);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-inline-end: auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a[aria-current='page'] {
  color: #fff;
  border-bottom-color: var(--accent);
}

.lang-switch {
  font-size: 0.9rem;
  color: #94a3b8;
  white-space: nowrap;
}

.lang-switch a {
  color: #e2e8f0;
  text-decoration: none;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

.lang-switch a:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ------------------------------------------------------------------ belge */

main {
  padding-bottom: 4rem;
}

.doc-head {
  padding: 2.5rem 0 0.5rem;
}

h1 {
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.doc-meta {
  color: var(--text-tertiary);
  font-size: 0.92rem;
  margin: 0;
}

.callout {
  background: var(--brand-tint);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.75rem 0;
}

.callout p {
  margin: 0;
}

.callout.warn {
  background: var(--warn-tint);
  border-inline-start-color: var(--warning);
}

.doc-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 56rem) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .doc-side {
    position: static !important;
  }
}

.doc-side {
  position: sticky;
  top: 5rem;
}

.toc {
  background: var(--bg-element);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
}

.toc h2 {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--text-tertiary);
  margin: 0 0 0.6rem;
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.35rem;
}

.toc li {
  margin-bottom: 0.3rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.doc-body h2 {
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.doc-body h2:first-child {
  border-top: 0;
  margin-top: 1.5rem;
}

.doc-body h3 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.4rem;
}

.doc-body p,
.doc-body li {
  color: var(--text-secondary);
}

.doc-body strong {
  color: var(--text);
}

.doc-body ul,
.doc-body ol {
  padding-inline-start: 1.4rem;
}

.doc-body li {
  margin-bottom: 0.4rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.94rem;
}

th,
td {
  text-align: start;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

th {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-element);
}

/* Dar ekranda tabloyu taşırmak yerine kendi içinde kaydır. */
.table-scroll {
  overflow-x: auto;
}

/* ------------------------------------------------------------------ landing */

.hero {
  padding: 4rem 0 2.5rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 42rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  display: block;
  background: var(--bg-element);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--primary);
}

.card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------------ altlık */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}
