/* Lineer Cebir — MIT 18.06 Türkçe — özel renk teması */

:root {
  --bs-primary: #8a1538;       /* MIT crimson esinli */
  --bs-info: #4a90e2;
  --bs-success: #6abf69;
  --bs-warning: #f5b342;
  --bs-danger: #e74c3c;

  /* MIT/Strang esinli paleti */
  --mit-crimson: #8a1538;
  --mit-gray: #8b8b8b;
  --strang-blue: #1f4e79;
  --vec-orange: #e67e22;
  --vec-teal: #17a2b8;
  --vec-purple: #6f42c1;
}

body {
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { color: #5c0a1f; }
h2 { color: var(--mit-crimson); border-bottom: 2px solid #e2e8f0; padding-bottom: 0.3em; }
h3 { color: #6e2536; }

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(--strang-blue);
}
.callout-note > .callout-header {
  background-color: rgba(31, 78, 121, 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 — matris/vektör için crimson sol kenar */
.math.display {
  background: linear-gradient(to right, #fdf6f7, #ffffff);
  padding: 1em 1.2em;
  border-radius: 6px;
  border-left: 3px solid var(--mit-crimson);
  overflow-x: auto;
}

.math.inline {
  padding: 0 2px;
}

div.sourceCode {
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

table {
  border-collapse: collapse;
  margin: 1em 0;
}
table thead tr {
  background: var(--mit-crimson);
  color: white;
}
table th, table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid #e2e8f0;
}
table tbody tr:nth-child(even) {
  background: #fdf6f7;
}

blockquote {
  border-left: 4px solid var(--vec-orange);
  background: #fff8ed;
  padding: 0.8em 1.2em;
  margin: 1.2em 0;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

figcaption {
  font-size: 0.9em;
  color: #4a5568;
  font-style: italic;
  margin-top: 0.4em;
}

.sidebar-title {
  font-weight: 600;
  color: #5c0a1f;
}

.quarto-title-block .quarto-title h1.title {
  color: #5c0a1f;
  font-weight: 700;
}
.quarto-title-block .subtitle {
  color: #4a5568;
  font-weight: 400;
}
