/* Phase 0 · Temel Matematik — emerald "temel / başlangıç" teması */

:root {
  --bs-primary: #15803D;        /* emerald 700 — ana tema */

  /* Semantik callout renkleri (tema'dan BAĞIMSIZ — dördü ayrı) */
  --bs-info: #2563EB;           /* note      = mavi    */
  --bs-success: #16A34A;        /* tip       = yeşil   */
  --bs-warning: #D97706;        /* warning   = amber   */
  --bs-danger: #DC2626;         /* important = kırmızı */

  /* Emerald paleti */
  --emerald: #15803D;           /* ana tema   */
  --emerald-dark: #166534;      /* koyu ton   */
  --emerald-light: #22C55E;     /* açık vurgu */
}

/* Kitap gövdesi */
body {
  line-height: 1.7;
}

/* Başlık tipografisi */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { color: var(--emerald-dark); }
h2 { color: var(--emerald); border-bottom: 2px solid #e2e8f0; padding-bottom: 0.3em; }
h3 { color: var(--emerald-dark); }

/* Bağlantılar */
a { color: var(--emerald); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Callout renk vurguları — SEMANTİK (tema yeşiline boyanmaz) */
.callout-tip {
  border-left-color: var(--bs-success);
}
.callout-tip > .callout-header {
  background-color: rgba(22, 163, 74, 0.1);
}

.callout-note {
  border-left-color: var(--bs-info);
}
.callout-note > .callout-header {
  background-color: rgba(37, 99, 235, 0.1);
}

.callout-warning {
  border-left-color: var(--bs-warning);
}
.callout-warning > .callout-header {
  background-color: rgba(217, 119, 6, 0.1);
}

.callout-important {
  border-left-color: var(--bs-danger);
}
.callout-important > .callout-header {
  background-color: rgba(220, 38, 38, 0.1);
}

/* Math blocks */
.math.display {
  background: linear-gradient(to right, #f0fdf4, #ffffff);
  padding: 1em 1.2em;
  border-radius: 6px;
  border-left: 3px solid var(--emerald);
  overflow-x: auto;
}

/* Inline math hafif vurgu */
.math.inline {
  padding: 0 2px;
}

/* Kod blokları */
div.sourceCode {
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Tablo modernize */
table {
  border-collapse: collapse;
  margin: 1em 0;
}
table thead tr {
  background: var(--emerald);
  color: white;
}
table th, table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid #e2e8f0;
}
table tbody tr:nth-child(even) {
  background: #f0fdf4;
}

/* Quote */
blockquote {
  border-left: 4px solid var(--emerald-light);
  background: #f0fdf4;
  padding: 0.8em 1.2em;
  margin: 1.2em 0;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

/* Şekil başlıkları */
figcaption {
  font-size: 0.9em;
  color: #4a5568;
  font-style: italic;
  margin-top: 0.4em;
}

/* Sidebar */
.sidebar-title {
  font-weight: 600;
  color: var(--emerald-dark);
}

/* Kapak header */
.quarto-title-block .quarto-title h1.title {
  color: var(--emerald-dark);
  font-weight: 700;
}
.quarto-title-block .subtitle {
  color: #4a5568;
  font-weight: 400;
}
