/* ============================================
   OpenRefine Eğitimi — Custom Stilleri
   Renkler: #0F172A (lacivert) + #14B8A6 (teal)
   ============================================ */

:root {
  --color-primary: #14B8A6;
  --color-primary-dark: #0F766E;
  --color-bg-dark: #0F172A;
  --color-bg-mid: #1E293B;
  --color-accent: #2DD4BF;
}

/* ============================================
   HERO BANNER (ana sayfa üstü)
   ============================================ */

.hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #134E4A 50%, #14B8A6 100%);
  color: white;
  padding: 4rem 2.5rem;
  border-radius: 1rem;
  margin: 2rem 0 3rem 0;
  text-align: center;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner h1 {
  color: white !important;
  border-bottom: none !important;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0;
  position: relative;
}

.hero-banner h2,
.hero-banner h3 {
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: none !important;
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0;
  position: relative;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 2.5rem 1.5rem;
  }
  .hero-banner h1 {
    font-size: 2rem;
  }
  .hero-banner h2,
  .hero-banner h3 {
    font-size: 1.1rem;
  }
}

/* ============================================
   BAŞLIKLAR
   ============================================ */

h1, h2, h3, h4 {
  color: var(--color-bg-dark);
  font-weight: 600;
}

h2 {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
}

h3 {
  color: var(--color-primary-dark);
  margin-top: 2rem;
}

/* ============================================
   LİNKLER
   ============================================ */

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-primary);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-primary);
  border-bottom-style: solid;
}

/* Sidebar ve navbar linklerinde alt çizgiyi kaldır */
.sidebar a,
.navbar a,
.toc-actions a,
a.btn {
  border-bottom: none !important;
}

/* ============================================
   KOD BLOKLARI
   ============================================ */

pre {
  background-color: #f8fafc;
  border-left: 4px solid var(--color-primary);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

code {
  color: var(--color-primary-dark);
  background-color: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.92em;
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* ============================================
   TABLOLAR
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table thead {
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-primary-dark));
  color: white;
}

table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: none;
}

table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

table tbody tr:hover {
  background-color: #ecfeff;
}

table tbody td {
  padding: 0.6rem 1rem;
}

/* ============================================
   CALLOUT'LAR (.callout-tip, .callout-warning vb.)
   ============================================ */

.callout {
  border-radius: 0.5rem !important;
  border-left-width: 4px !important;
  margin: 1.5rem 0;
}

.callout-tip {
  border-left-color: var(--color-primary) !important;
}

.callout-note {
  border-left-color: #3b82f6 !important;
}

.callout-warning {
  border-left-color: #f59e0b !important;
}

.callout-important {
  border-left-color: #ef4444 !important;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar-title {
  color: var(--color-bg-dark);
  font-weight: 700;
}

.sidebar-item-text {
  font-size: 0.95rem;
}

.sidebar nav[role="doc-toc"] ul > li > a.active,
.sidebar nav[role="doc-toc"] ul > li > a:hover {
  color: var(--color-primary-dark) !important;
  border-left: 2px solid var(--color-primary);
}

/* ============================================
   NAVBAR — başlık emoji büyüt
   ============================================ */

.navbar-title {
  font-weight: 600;
  font-size: 1.05rem;
}

/* ============================================
   ALINTI BLOKLARI
   ============================================ */

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  background-color: #ecfeff;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #134e4a;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ============================================
   "BAŞLA" BUTONU — anasayfada bölümlere yönlendirme
   ============================================ */

.btn-start {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
  color: white !important;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
  margin: 0.5rem 0.25rem;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.4);
  color: white !important;
}

/* ============================================
   KARANLIK MOD UYUMLULUĞU
   ============================================ */

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4 {
  color: #e2e8f0;
}

[data-bs-theme="dark"] h3 {
  color: var(--color-accent);
}

[data-bs-theme="dark"] pre {
  background-color: #1e293b;
}

[data-bs-theme="dark"] code {
  background-color: #1e293b;
  color: var(--color-accent);
}

[data-bs-theme="dark"] table tbody tr:nth-child(even) {
  background-color: #1e293b;
}

[data-bs-theme="dark"] table tbody tr:hover {
  background-color: #134e4a;
}

[data-bs-theme="dark"] blockquote {
  background-color: #134e4a;
  color: #ccfbf1;
}

/* ============================================
   FOOTER
   ============================================ */

.nav-footer {
  border-top: 2px solid var(--color-primary);
  margin-top: 3rem;
  padding-top: 1rem;
}

/* ============================================
   BÖLÜM KARTLARI (ana sayfa)
   ============================================ */

.bolum-listesi section.level3 {
  background: white;
  border-left: 4px solid var(--color-primary);
  border-radius: 0.5rem;
  padding: 1.25rem 1.75rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-width 0.2s ease;
}

.bolum-listesi section.level3:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.18);
  border-left-width: 6px;
}

.bolum-listesi section.level3 h3 {
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.bolum-listesi section.level3 p {
  margin-bottom: 0.5rem;
}

/* Kart içindeki "Başla →" butonunu sade metin link'ine dönüştür */
.bolum-listesi .btn-start {
  background: none !important;
  color: var(--color-primary-dark) !important;
  padding: 0 !important;
  margin: 0;
  border-bottom: none !important;
  font-weight: 600;
  box-shadow: none !important;
  display: inline;
}

.bolum-listesi .btn-start:hover {
  color: var(--color-primary) !important;
  transform: none;
  box-shadow: none !important;
}

/* Karanlık mod */
[data-bs-theme="dark"] .bolum-listesi section.level3 {
  background: var(--color-bg-mid);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
