/* Stat 110 — Harvard Blitzstein Türkçe — özel renk teması */

:root {
  --bs-primary: #A51C30;       /* Harvard Crimson */
  --bs-info: #2D6CDF;
  --bs-success: #2F855A;
  --bs-warning: #D69E2E;
  --bs-danger: #C05621;

  /* Stat 110 / olasılık paleti */
  --harvard-crimson: #A51C30;
  --harvard-dark: #6B0E1B;
  --pmf-orange: #DD6B20;        /* PMF/PDF tonu */
  --cdf-blue: #2C5282;          /* CDF tonu */
  --bayes-purple: #6B46C1;      /* Bayes / posterior */
  --markov-teal: #2C7A7B;       /* Markov / zincir */
}

/* 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(--harvard-dark); }
h2 {
  color: var(--harvard-crimson);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.3em;
}
h3 { color: #6B0E1B; }

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

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

.callout-note {
  border-left-color: var(--cdf-blue);
}
.callout-note > .callout-header {
  background-color: rgba(44, 82, 130, 0.1);
}

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

.callout-important {
  border-left-color: var(--harvard-crimson);
}
.callout-important > .callout-header {
  background-color: rgba(165, 28, 48, 0.1);
}

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

/* Quote */
blockquote {
  border-left: 4px solid var(--pmf-orange);
  background: #fffaf0;
  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(--harvard-dark);
}

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