/* Calculus — 3Blue1Brown Türkçe — özel renk teması */

:root {
  --bs-primary: #4a90e2;
  --bs-info: #50c8e8;
  --bs-success: #6abf69;
  --bs-warning: #f5b342;
  --bs-danger: #e74c3c;

  /* 3Blue1Brown esinli */
  --b3b1-blue: #1f77b4;
  --b3b1-teal: #17a2b8;
  --b3b1-yellow: #f5b342;
  --b3b1-red: #e74c3c;
}

/* 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: #1a3a5c; }
h2 { color: #2c5282; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.3em; }
h3 { color: #2d4a6e; }

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

/* Callout renk vurguları */
.callout-tip {
  border-left-color: var(--bs-success);
}
.callout-tip > .callout-header {
  background-color: rgba(106, 191, 105, 0.1);
}

.callout-note {
  border-left-color: var(--b3b1-blue);
}
.callout-note > .callout-header {
  background-color: rgba(31, 119, 180, 0.1);
}

.callout-warning {
  border-left-color: var(--bs-warning);
}

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

/* Math blocks */
.math.display {
  background: linear-gradient(to right, #f8fafc, #ffffff);
  padding: 1em 1.2em;
  border-radius: 6px;
  border-left: 3px solid var(--b3b1-blue);
  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: #2c5282;
  color: white;
}
table th, table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid #e2e8f0;
}
table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Quote */
blockquote {
  border-left: 4px solid var(--b3b1-yellow);
  background: #fffbeb;
  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: #1a3a5c;
}

/* Kapak header */
.quarto-title-block .quarto-title h1.title {
  color: #1a3a5c;
  font-weight: 700;
}
.quarto-title-block .subtitle {
  color: #4a5568;
  font-weight: 400;
}
