/* Python Temelleri — Mosh Hamedani — Türkçe (ML Builder) renk teması */

:root {
  --bs-primary: #3776ab;
  --bs-info: #4b8bbe;
  --bs-success: #6abf69;
  --bs-warning: #ffd43b;
  --bs-danger: #e74c3c;

  /* Python esinli — resmi renkler */
  --py-blue: #3776ab;     /* Python logosu mavi */
  --py-yellow: #ffd43b;   /* Python logosu sarı */
  --py-teal: #306998;
  --py-orange: #f57c00;
  --py-red: #c2185b;
}

/* 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(--py-blue);
}
.callout-note > .callout-header {
  background-color: rgba(55, 118, 171, 0.1);
}

.callout-warning {
  border-left-color: var(--py-yellow);
  border-left-width: 5px;
}
.callout-warning > .callout-header {
  background-color: rgba(255, 212, 59, 0.15);
}

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

/* Math blocks (formül gerektiğinde) */
.math.display {
  background: linear-gradient(to right, #f8fafc, #ffffff);
  padding: 1em 1.2em;
  border-radius: 6px;
  border-left: 3px solid var(--py-blue);
  overflow-x: auto;
}

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

/* Kod blokları — Python ağırlıklı */
div.sourceCode {
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

pre code {
  font-size: 0.92em;
}

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

/* Quote — Mosh dublaj quote'ları için */
blockquote {
  border-left: 4px solid var(--py-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;
}

/* Inline code — Python deyimleri için belirgin */
code {
  background: #f1f5f9;
  color: #c2185b;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.92em;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}
