/* ==========================================================================
   BİLİŞİMAKADEMİ - STİL SİSTEMİ (CSS)
   Lise Düzeyi Odaklanma Odaklı, Sıralı & Minimalist Tasarım
   1. Ünite Müstakil Sayfaları & HızlıKlavye ⚡ 10 Parmak Entegrasyonu
   ========================================================================== */

:root {
  /* Renk Paleti - Karanlık Mod (Varsayılan) */
  --bg-color: #0b0f19;
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-input: #151d2e;

  --surface-color: #111827;
  --surface-hover: #1f2937;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: #6366f1;

  --text-primary: #f8fafc;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #0f172a;

  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  --primary-hover: #0284c7;
  --primary-light: rgba(56, 189, 248, 0.12);

  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --success: #34d399;
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.2);

  /* Klavye Donanım & El Şeması */
  --key-bg: #1e293b;
  --key-border: #334155;
  --key-shadow: #0b1120;
  --palm-fill: #1e293b;
  --palm-stroke: #334155;
  --hint-bg: rgba(11, 15, 25, 0.85);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Açık Mod Değişkenleri */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-input: #f1f5f9;

  --surface-color: #ffffff;
  --surface-hover: #f1f5f9;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.2);
  --primary-hover: #0369a1;
  --primary-light: rgba(2, 132, 199, 0.08);

  --success: #059669;
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.15);

  --key-bg: #f8fafc;
  --key-border: #cbd5e1;
  --key-shadow: #94a3b8;
  --palm-fill: #f1f5f9;
  --palm-stroke: #cbd5e1;
  --hint-bg: rgba(248, 250, 252, 0.88);
}

/* ==========================================================================
   TEMEL SIFIRLAMA & GENEL STİLLER
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   ÜST NAVİGASYON (HEADER)
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-title strong {
  color: var(--primary);
  font-weight: 800;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigasyon Linkleri */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-secondary);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-link.active {
  color: #0f172a;
  background: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
  font-weight: 700;
}

.nav-link .nav-pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.nav-link.nav-highlight {
  position: relative;
  border: 1px dashed rgba(245, 158, 11, 0.4);
}

.nav-link.nav-highlight.active {
  background: linear-gradient(135deg, var(--accent-amber), #ea580c);
  color: #ffffff;
  border: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

.theme-toggle {
  width: 58px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
}

.theme-toggle-slider {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

[data-theme="light"] .theme-toggle-slider {
  transform: translateX(24px);
  background: var(--accent-amber);
}

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ==========================================================================
   ANA GÖVDE & SAYFA GÖRÜNÜMLERİ
   ========================================================================== */

.app-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   1. SAYFA: GENEL BAKIŞ / HERO & DASHBOARD
   ========================================================================== */

.hero-section {
  text-align: center;
  max-width: 860px;
  margin: 1rem auto 3rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 60%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buton Stilleri */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--primary);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-primary);
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.overview-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.overview-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.card-icon.blue { background: rgba(56, 189, 248, 0.15); color: var(--primary); }
.card-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }

.overview-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.overview-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.progress-bar-wrapper { margin-top: 1rem; }
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}
.progress-text { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.stat-meta { display: flex; gap: 1.5rem; margin-top: 0.75rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-item .val { font-size: 1.35rem; font-weight: 800; font-family: var(--font-mono); }
.stat-item .lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

.card-link-btn {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.daily-insight-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.insight-badge {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.daily-insight-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.daily-insight-card p { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.65; }

/* ==========================================================================
   2. SAYFA: 1. ÜNİTE - SIRALI KONU İNDEKSİ & MÜSTAKİL KONU SAYFALARI
   ========================================================================== */

.unit-index-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
}

.unit-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.unit-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.unit-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Sıralı Konu Kartları Izgarası */
.unit-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.topic-index-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.topic-index-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.topic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topic-num-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.topic-tag-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.topic-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.topic-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.takeaway-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.read-btn-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.unit-quiz-cta-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta-info h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.35rem; }
.cta-info p { color: var(--text-secondary); font-size: 0.95rem; }

/* Müstakil Konu Sayfası (Reader View) */
.topic-page-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
}

.topic-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.breadcrumb-trail strong {
  color: var(--text-primary);
}

.topic-badge-header {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  background: var(--bg-tertiary);
  color: var(--primary);
  border-radius: var(--radius-pill);
}

.topic-page-header {
  margin-bottom: 2rem;
}

.topic-page-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.topic-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.topic-page-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.takeaways-banner {
  background: rgba(56, 189, 248, 0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.takeaways-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.takeaways-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.takeaways-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Konu Gezinme Alt Barı */
.topic-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2.5rem;
}

/* Kavram Haritası (Mindmap) */
.mindmap-wrapper {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px dashed var(--border-medium);
}

.mindmap-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mindmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mindmap-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-fast);
}

.mindmap-node.core { border-left: 4px solid var(--primary); }
.mindmap-node.cyan { border-left: 4px solid var(--accent-cyan); }
.mindmap-node.emerald { border-left: 4px solid var(--accent-emerald); }
.mindmap-node.amber { border-left: 4px solid var(--accent-amber); }

.mindmap-node h5 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.mindmap-node p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }

/* Akordeonlar */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0;
}

.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.accordion-item.open {
  border-color: var(--border-medium);
}

.accordion-header {
  width: 100%;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-item.open .accordion-content {
  max-height: 1200px;
  padding: 0 1.4rem 1.4rem;
}

/* Karşılaştırma Tabloları */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.custom-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-medium);
}

.custom-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.5;
}

.custom-table tr:hover td {
  background: var(--bg-tertiary);
}

.scenario-card-ui {
  background: rgba(56, 189, 248, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.scenario-card-ui h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.scenario-card-ui p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.interactive-prompt-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.interactive-prompt-box h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.interactive-prompt-box textarea {
  width: 100%;
  height: 75px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.interactive-prompt-box textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.timeline-list {
  position: relative;
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-secondary);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-item h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.timeline-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ==========================================================================
   3. SAYFA: GELİŞMİŞ KLAVYE (HIZLIKLAVYE ⚡ ENTEGRASYONU)
   ========================================================================== */

.keyboard-page-container {
  max-width: 980px;
  margin: 0 auto;
}

.kb-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 1.25rem 1.75rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.kb-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kb-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.kb-title-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.logo-badge {
  font-size: 11px;
  background-color: var(--primary);
  color: #0f172a;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

.kb-title-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ana Bölüm Sekmeleri (10 Parmak Öğren vs Yarışa Katıl) */
.main-tabs {
  display: flex;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  gap: 4px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  background: var(--primary);
  color: #0f172a;
  box-shadow: 0 2px 10px var(--primary-glow);
  font-weight: 700;
}

.tab-icon { font-size: 16px; }

/* Alt Görünümler (Learn vs Race) */
.kb-subview {
  display: none;
}

.kb-subview.active {
  display: block;
}

/* 10 PARMAK ÖĞREN STİLLERİ */
.learn-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  background-color: var(--surface-color);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.lesson-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.lesson-dropdown {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.lesson-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-bar-bg {
  width: 140px;
  height: 8px;
  background: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.lesson-info-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.lesson-info-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lesson-info-content p {
  color: var(--text-muted);
  font-size: 14px;
}

.lesson-stats {
  display: flex;
  gap: 12px;
}

.lesson-stat-pill {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.lesson-stat-pill strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Canlı Parmak & Tuş Rehberi Başlığı */
.finger-guide-banner {
  background: var(--surface-color);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s ease;
}

.guide-target-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}

.guide-sub {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.guide-key-char-box {
  width: 54px;
  height: 54px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-char {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.guide-info-details {
  flex: 1;
}

.guide-finger-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.guide-finger-instruction {
  font-size: 14px;
  color: var(--text-muted);
}

.guide-hand-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
}

/* Öğrenme Yazma Alanı */
.learn-arena {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-bottom: 20px;
  min-height: 120px;
  display: flex;
  align-items: center;
  cursor: text;
}

.learn-text-display {
  font-family: var(--font-mono);
  font-size: 32px;
  line-height: 1.6;
  letter-spacing: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  user-select: none;
}

.learn-char {
  color: var(--text-dim);
  padding: 0 2px;
  border-radius: 4px;
  transition: all 0.1s ease;
}

.learn-char.current {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.2);
  border-bottom: 3px solid var(--primary);
}

.learn-char.correct {
  color: var(--success);
}

.learn-char.wrong {
  color: var(--error);
  background: var(--error-bg);
}

.learn-char.space {
  padding: 0 8px;
  opacity: 0.6;
}

/* İki El Şeması */
.hands-diagram-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.hand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hand-side-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hands-svg {
  width: 180px;
  height: 150px;
}

.hands-divider {
  width: 1px;
  height: 110px;
  background: var(--border-color);
}

.palm {
  fill: var(--palm-fill);
  stroke: var(--palm-stroke);
  stroke-width: 2;
}

.finger {
  fill: var(--palm-fill);
  stroke: var(--palm-stroke);
  stroke-width: 2;
  transition: fill 0.2s ease, filter 0.2s ease;
}

.finger-label {
  font-family: var(--font-main);
  font-size: 9px;
  fill: var(--text-muted);
  text-anchor: middle;
}

.finger.active {
  stroke: #ffffff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px currentColor);
}

/* Sanal Türkçe Q Klavye */
.virtual-keyboard-container {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.vk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.vk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.virtual-keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vk-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.vk-key {
  height: 44px;
  min-width: 44px;
  padding: 0 8px;
  background: var(--key-bg);
  border: 1px solid var(--key-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  user-select: none;
  transition: transform 0.08s ease, background 0.15s ease;
}

.vk-key.vk-wide { min-width: 62px; font-size: 12px; }
.vk-key.vk-extra-wide { min-width: 82px; font-size: 12px; }
.vk-key.vk-space { width: 280px; font-size: 12px; }
.vk-key.vk-util { color: var(--text-muted); }

/* F ve J Tuş Çıkıntıları */
.key-bump {
  position: absolute;
  bottom: 5px;
  width: 10px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  opacity: 0.8;
}

/* Parmak Pastel Renkleri */
.finger-l-pinky { background: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.4); }
.finger-l-ring { background: rgba(249, 115, 22, 0.15); border-color: rgba(249, 115, 22, 0.4); }
.finger-l-middle { background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.4); }
.finger-l-index { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); }
.finger-thumb { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.4); }
.finger-r-index { background: rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.4); }
.finger-r-middle { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); }
.finger-r-ring { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.4); }
.finger-r-pinky { background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.4); }

.vk-key.target {
  background: var(--target-bg, #38bdf8) !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 14px var(--target-glow, #38bdf8);
}

.vk-key.pressed {
  transform: scale(0.92);
  filter: brightness(1.3);
}

/* YARIŞA KATIL (HIZ TESTİ) STİLLERİ */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  background-color: var(--surface-color);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.time-options {
  display: flex;
  background: var(--bg-color);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.time-btn, .pool-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-btn:hover, .pool-btn:hover { color: var(--text-main); }
.time-btn.active, .pool-btn.active {
  background: var(--primary);
  color: #0f172a;
}

.quick-stats { display: flex; gap: 20px; }
.quick-stat-item { display: flex; flex-direction: column; align-items: flex-end; }
.quick-stat-label { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.quick-stat-val { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--primary); }

.typing-arena {
  position: relative;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  cursor: text;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 24px;
  user-select: none;
}

.typing-arena.focused {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.words-wrapper {
  position: relative;
  height: 140px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.words-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  transition: transform 0.2s ease;
}

.word { display: inline-flex; position: relative; color: var(--text-muted); }
.word.active { color: var(--text-main); }
.letter { position: relative; }
.letter.correct { color: var(--success); }
.letter.incorrect { color: var(--error); background-color: var(--error-bg); border-radius: 2px; }
.letter.extra { color: var(--error); opacity: 0.8; }

.caret {
  position: absolute;
  width: 2.5px;
  height: 30px;
  background-color: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
  pointer-events: none;
  transition: left 0.08s ease, top 0.08s ease;
  animation: blink 1s infinite;
  display: none;
}

.caret.visible { display: block; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.click-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hint-bg);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.typing-arena:not(.focused) .click-hint {
  opacity: 1;
  pointer-events: auto;
}

#hidden-input, #learn-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

.action-bar { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.btn-restart {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-restart:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.shortcut-badge {
  font-size: 11px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.results-card {
  display: none;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  animation: fadeIn 0.35s ease;
}

.results-card.active { display: block; }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.results-header h2 { font-size: 22px; font-weight: 800; }
.rank-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.metric-box {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.metric-value { font-family: var(--font-mono); font-size: 28px; font-weight: 800; color: var(--text-main); }
.metric-value.highlight { color: var(--primary); }
.metric-sub { font-size: 11px; color: var(--text-muted); }

/* ==========================================================================
   4. SAYFA: DEĞERLENDİRME MODÜLÜ STİLLERİ
   ========================================================================== */

.quiz-container { max-width: 980px; margin: 0 auto; }
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.quiz-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.quiz-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.35rem; }
.quiz-header p { color: var(--text-muted); font-size: 0.95rem; }

.quiz-mode-selector {
  display: flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.quiz-tab-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-tab-btn.active { background: var(--primary); color: #0f172a; font-weight: 700; }

.quiz-panel { display: none; }
.quiz-panel.active { display: block; animation: fadeIn 0.25s ease; }

.quiz-progress-header { margin-bottom: 1.5rem; }
.q-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.q-category-pill {
  background: var(--bg-tertiary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.q-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.q-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.scenario-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.scenario-box.hidden { display: none; }
.scenario-tag { font-size: 0.72rem; font-weight: 800; color: var(--accent-cyan); margin-bottom: 0.4rem; }
.scenario-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; font-style: italic; }

.question-text {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.options-grid { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.75rem; }
.option-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.option-btn:hover { border-color: var(--primary); transform: translateX(4px); }
.opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.option-btn.correct { border-color: var(--accent-emerald) !important; background: rgba(16, 185, 129, 0.15) !important; }
.option-btn.correct .opt-letter { background: var(--accent-emerald); color: #ffffff; }
.option-btn.wrong { border-color: var(--accent-rose) !important; background: rgba(244, 63, 94, 0.15) !important; }
.option-btn.wrong .opt-letter { background: var(--accent-rose); color: #ffffff; }

.feedback-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}
.feedback-card.correct { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.feedback-card.wrong { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.3); }
.feedback-card.hidden { display: none; }
.feedback-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.feedback-card.correct .feedback-icon { background: var(--accent-emerald); color: #ffffff; }
.feedback-card.wrong .feedback-icon { background: var(--accent-rose); color: #ffffff; }
.feedback-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.feedback-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

.question-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.q-action-right { display: flex; gap: 0.75rem; }

/* Sürükle-Bırak */
.dragdrop-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.dragdrop-desc { margin-bottom: 1.75rem; }
.dragdrop-desc h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.dragdrop-desc p { color: var(--text-muted); font-size: 0.92rem; }

.dragdrop-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dd-column h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dd-items-pool { display: flex; flex-direction: column; gap: 0.85rem; min-height: 250px; }
.dd-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: grab;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  user-select: none;
}
.dd-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.dd-card.dragging { opacity: 0.4; }

.dd-targets-pool { display: flex; flex-direction: column; gap: 0.85rem; }
.dd-slot {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dd-slot.drag-over { border-color: var(--primary); background: var(--primary-light); }
.slot-label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.slot-filled-card {
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
}
.slot-remove-btn { background: transparent; border: none; color: var(--accent-rose); cursor: pointer; font-weight: 800; }
.dd-actions { display: flex; gap: 1rem; justify-content: flex-end; }
.dd-result-alert { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-md); font-weight: 600; text-align: center; }
.dd-result-alert.success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--accent-emerald); color: var(--accent-emerald); }
.dd-result-alert.partial { background: rgba(245, 158, 11, 0.15); border: 1px solid var(--accent-amber); color: var(--accent-amber); }

/* Doğru/Yanlış Listesi */
.tf-wrapper { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2.25rem; }
.tf-header { margin-bottom: 2rem; }
.tf-header h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; }
.tf-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.tf-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.tf-statement { font-size: 0.96rem; line-height: 1.5; }
.tf-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }
.tf-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.tf-btn.selected-true { background: var(--accent-emerald); color: #ffffff; border-color: var(--accent-emerald); }
.tf-btn.selected-false { background: var(--accent-rose); color: #ffffff; border-color: var(--accent-rose); }

/* Test Sonu Analiz Rapor Kartı */
.quiz-report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
  animation: fadeIn 0.35s ease;
}
.quiz-report-card.hidden { display: none; }
.report-header { text-align: center; margin-bottom: 2.5rem; }
.report-badge { font-size: 0.78rem; font-weight: 800; color: var(--primary); margin-bottom: 0.6rem; }
.report-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }

.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.r-stat-box { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.5rem 1.25rem; text-align: center; }
.r-stat-box.score-box { border-color: var(--primary); background: var(--primary-light); }
.r-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.4rem; }
.r-value { display: block; font-family: var(--font-mono); font-size: 2.2rem; font-weight: 800; }
.score-box .r-value { color: var(--primary); }
.correct-box .r-value { color: var(--accent-emerald); }
.wrong-box .r-value { color: var(--accent-rose); }
.rate-box .r-value { color: var(--accent-cyan); }

.topic-mastery-section { margin-bottom: 2.5rem; background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 1.75rem; }
.topic-mastery-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.topic-bars-list { display: flex; flex-direction: column; gap: 1.1rem; }
.topic-bar-row { display: flex; flex-direction: column; gap: 0.4rem; }
.tb-meta { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 600; }
.tb-track { width: 100%; height: 8px; background: var(--bg-tertiary); border-radius: var(--radius-pill); overflow: hidden; }
.tb-fill { height: 100%; border-radius: var(--radius-pill); transition: width 0.6s ease; }

.solutions-review-section { margin-bottom: 2.5rem; }
.solutions-review-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.solutions-list { display: flex; flex-direction: column; gap: 1rem; }
.sol-item { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.25rem; }
.sol-item.was-correct { border-left: 4px solid var(--accent-emerald); }
.sol-item.was-wrong { border-left: 4px solid var(--accent-rose); }
.sol-title { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.5rem; }
.sol-details { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

.report-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   5. SAYFA: KLAVYE & KAVRAM MEYDAN OKUMASI (BİRLEŞİK MOD)
   ========================================================================== */

.combined-wrapper { max-width: 860px; margin: 0 auto; }
.combined-hero { text-align: center; margin-bottom: 2.5rem; }
.combined-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}
.combined-hero h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 0.6rem; }
.combined-hero p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }

.challenge-board {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.challenge-hud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.c-hud-item { text-align: center; }
.c-label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.c-val { display: block; font-family: var(--font-mono); font-size: 1.4rem; font-weight: 800; }
.c-val.warning { color: var(--accent-amber); }
.c-val.success { color: var(--accent-emerald); }

.challenge-card { text-align: center; }
.c-clue-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); margin-bottom: 1rem; }
.c-clue-text { font-size: 1.3rem; font-weight: 600; line-height: 1.5; color: var(--text-primary); margin-bottom: 1.75rem; padding: 0 1rem; }
.c-target-word-display { margin-bottom: 1.75rem; }
.c-hint-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.c-word-spans { display: inline-flex; gap: 4px; font-family: var(--font-mono); font-size: 2rem; font-weight: 700; letter-spacing: 0.1em; }
.c-char { display: inline-block; min-width: 28px; padding: 2px 4px; border-bottom: 3px solid var(--border-medium); color: var(--text-muted); }
.c-char.filled { color: var(--accent-emerald); border-color: var(--accent-emerald); }
.c-char.error { color: var(--accent-rose); border-color: var(--accent-rose); }
.c-char.active-char { border-color: var(--primary); animation: blink 0.8s infinite; }

.challenge-input-wrapper { max-width: 480px; margin: 0 auto 1.5rem; }
.chal-input {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  text-align: center;
  background: var(--bg-input);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
}
.chal-input:focus { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.chal-feedback-msg { min-height: 24px; font-size: 0.92rem; font-weight: 700; }

.challenge-summary-card { text-align: center; padding: 2rem; animation: fadeIn 0.3s ease; }
.challenge-summary-card.hidden { display: none; }
.challenge-summary-card h3 { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.chal-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.chal-actions { display: flex; justify-content: center; gap: 1rem; }

/* ==========================================================================
   ALT BİLGİ (FOOTER) & RESPONSİVE
   ========================================================================= */

.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand { font-weight: 700; color: var(--text-primary); margin-right: 0.5rem; }
.keyboard-badge { background: var(--bg-tertiary); padding: 0.25rem 0.65rem; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.75rem; margin-right: 0.75rem; }

/* Odaklanma Modu */
body.focus-mode .app-header,
body.focus-mode .app-footer {
  display: none !important;
}

body.focus-mode .app-main {
  padding-top: 4vh;
  max-width: 1040px;
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.2rem; }
  .unit-topics-grid { grid-template-columns: 1fr; }
  .dragdrop-arena { grid-template-columns: 1fr; gap: 1.5rem; }
  .challenge-hud { grid-template-columns: repeat(3, 1fr); }
  .vk-key { min-width: 38px; height: 38px; font-size: 12px; }
  .vk-key.vk-space { width: 180px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--border-medium);
  }
  .nav-menu.mobile-open { display: flex; }
  .mobile-menu-btn { display: flex; }

  .hero-title { font-size: 1.85rem; }
  .hands-diagram-container { flex-direction: column; gap: 15px; }
  .hands-divider { width: 100%; height: 1px; }
  .tf-row { flex-direction: column; align-items: flex-start; }
  .tf-buttons { align-self: flex-end; }
  .chal-res-grid { grid-template-columns: repeat(2, 1fr); }
}
