/* 2W Sınav Merkezi — tasarım sistemi v2 (mobile-first, açık+koyu tema) */
:root {
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --surface-3: #e6e9f4;
  --text: #171c2e;
  --text-2: #5a6478;
  --text-3: #8b93a9;
  --border: #e4e8f2;
  --border-strong: #d2d8e8;
  --primary: #5b5ee0;
  --primary-strong: #4a4cd0;
  --primary-soft: #eceefc;
  --primary-faint: #f6f6fe;
  --accent: #8b5cf6;
  --grad: linear-gradient(135deg, #5b5ee0 0%, #8b5cf6 100%);
  --success: #0d9f5d;
  --success-soft: #e2f7ec;
  --danger: #d93a3a;
  --danger-soft: #fdecec;
  --warning: #b45309;
  --warning-soft: #fdf3e3;
  --info: #2563eb;
  --info-soft: #e8f0fe;
  --shadow-sm: 0 1px 2px rgba(23, 28, 46, .05);
  --shadow: 0 1px 3px rgba(23, 28, 46, .06), 0 8px 24px -8px rgba(23, 28, 46, .08);
  --shadow-lg: 0 4px 8px rgba(23, 28, 46, .05), 0 20px 44px -12px rgba(23, 28, 46, .14);
  --ring: 0 0 0 3px rgba(91, 94, 224, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --maxw: 1160px;
  --nav-h: 62px;
}
[data-theme="dark"] {
  --bg: #0b0e1a;
  --surface: #131829;
  --surface-2: #1b2138;
  --surface-3: #232a45;
  --text: #e9ecf6;
  --text-2: #9aa3bd;
  --text-3: #6b7490;
  --border: #262e4a;
  --border-strong: #333c5e;
  --primary: #8f92ff;
  --primary-strong: #b3b5ff;
  --primary-soft: #252a4e;
  --primary-faint: #181d36;
  --grad: linear-gradient(135deg, #6a6cff 0%, #9d6bff 100%);
  --success: #34d68a;
  --success-soft: #12271e;
  --danger: #ff7171;
  --danger-soft: #311a1e;
  --warning: #fbbf24;
  --warning-soft: #2e230e;
  --info: #7aa7ff;
  --info-soft: #16233f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 10px 28px -8px rgba(0, 0, 0, .45);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, .3), 0 24px 52px -12px rgba(0, 0, 0, .55);
  --ring: 0 0 0 3px rgba(143, 146, 255, .28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.015em; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.38rem; }
h3 { font-size: 1.1rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.quiet { color: var(--text-3); }
::selection { background: rgba(91, 94, 224, .22); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }

/* Üst gezinme — cam efekti */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 12px; height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.06rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800;
  box-shadow: 0 4px 12px -3px rgba(91, 94, 224, .5);
}
.topnav-links { display: none; gap: 2px; margin-left: 10px; }
.topnav-links a { color: var(--text-2); padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background .15s, color .15s; }
.topnav-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.topnav-links a.active { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.topnav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 1.05rem;
  transition: background .15s, border-color .15s, transform .06s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.hamburger { display: inline-flex; }
@media (min-width: 900px) {
  .topnav-links { display: flex; }
  .hamburger { display: none; }
}
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 10px 16px 16px; background: var(--surface); }
.mobile-menu.open { display: block; animation: menuIn .18s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mobile-menu a { display: block; padding: 12px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.mobile-menu a:hover { background: var(--surface-2); text-decoration: none; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .07s ease, box-shadow .18s ease, background .15s ease, border-color .15s;
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(91, 94, 224, .55); }
.btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(91, 94, 224, .65); filter: brightness(1.05); }
[data-theme="dark"] .btn-primary { color: #0d1024; }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); padding: 8px 12px; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 7px 13px; min-height: 36px; font-size: .87rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Kartlar */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; height: 100%;
  transition: transform .16s ease, box-shadow .2s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .18s;
}
.course-card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.course-card:hover::before { opacity: 1; }
.course-card h3 { margin: 0; color: var(--text); font-size: 1.06rem; }
.course-card p { margin: 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.course-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; background: var(--primary-faint); border: 1px solid var(--border);
}

/* Rozetler */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: .77rem; font-weight: 650;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap;
  border: 1px solid transparent;
}
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* Formlar */
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  font-size: .97rem; min-height: 46px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: var(--ring); outline: none; }
.input::placeholder { color: var(--text-3); }
label { font-weight: 650; font-size: .92rem; display: block; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.help-text, .helptext { font-size: .82rem; color: var(--text-2); display: block; margin-top: 4px; }
.errorlist { color: var(--danger); margin: 6px 0 0; padding-left: 18px; font-size: .88rem; }

/* Filtre çubuğu */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filterbar .field { margin-bottom: 0; min-width: 130px; flex: 1; }

/* Soru çözme */
.question-card { padding: 22px; }
.question-text { font-size: 1.1rem; font-weight: 650; margin-bottom: 18px; line-height: 1.55; letter-spacing: -.005em; }
.choice-list { display: grid; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.choice-btn {
  display: flex; gap: 12px; align-items: flex-start; width: 100%;
  padding: 14px 16px; border-radius: 13px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; text-align: left;
  font-size: 1rem; min-height: 54px; line-height: 1.5;
  transition: border-color .12s, background .12s, transform .07s, box-shadow .15s;
}
.choice-btn:hover:not([disabled]) { border-color: var(--primary); box-shadow: 0 4px 14px -6px rgba(91, 94, 224, .35); }
.choice-btn:active:not([disabled]) { transform: scale(.99); }
.choice-btn .letter {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 800; font-size: .88rem; transition: background .12s;
}
.choice-btn:hover:not([disabled]) .letter { background: var(--primary-soft); color: var(--primary); }
.choice-btn.selected { border-color: var(--primary); background: var(--primary-faint); }
.choice-btn.selected .letter { background: var(--primary); color: #fff; }
.choice-btn.correct { border-color: var(--success); background: var(--success-soft); }
.choice-btn.correct .letter { background: var(--success); color: #fff; }
.choice-btn.wrong { border-color: var(--danger); background: var(--danger-soft); }
.choice-btn.wrong .letter { background: var(--danger); color: #fff; }
.choice-btn[disabled] { cursor: default; }
.explanation-box {
  margin-top: 16px; padding: 18px; border-radius: 13px;
  background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 18%, transparent);
  animation: fadeUp .3s ease both;
}
.explanation-box h3 { margin-top: 0; }
.mini-lessons {
  margin-top: 12px; padding: 13px 15px; border-radius: 12px;
  background: var(--primary-faint); border-left: 3px solid var(--primary);
}
.mini-lessons-title { margin: 0 0 8px; font-weight: 700; font-size: .88rem; color: var(--primary); }
.mini-lesson { margin: 0 0 8px; font-size: .92rem; line-height: 1.55; }
.mini-lesson:last-child { margin-bottom: 0; }
.unverified-note {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--warning-soft); color: var(--warning); font-size: .9rem;
}
.progress-track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--grad); transition: width .3s ease; }

/* Deneme sınavı koşucusu */
.exam-header {
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; box-shadow: var(--shadow);
}
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; }
.timer.low { color: var(--danger); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.qnav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 7px; }
.qnav-btn {
  height: 42px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-2); font-weight: 700; cursor: pointer; font-size: .88rem;
  transition: border-color .12s, background .12s, transform .06s;
}
.qnav-btn:hover { border-color: var(--primary); }
.qnav-btn:active { transform: scale(.93); }
.qnav-btn.answered { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.qnav-btn.flagged { border-color: var(--warning); color: var(--warning); }
.qnav-btn.current { box-shadow: var(--ring); border-color: var(--primary); }

/* Tablo */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; }
table.data th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--surface-2); }

/* Boş durum */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty-state .icon { font-size: 2.6rem; margin-bottom: 10px; }

/* Mesajlar */
.messages { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.messages li { padding: 12px 15px; border-radius: 12px; background: var(--info-soft); color: var(--info); font-weight: 600; font-size: .92rem; border: 1px solid color-mix(in srgb, var(--info) 16%, transparent); }
.messages li.success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 20%, transparent); }
.messages li.error, .messages li.warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 20%, transparent); }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-2); font-weight: 550; }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb .sep { opacity: .5; }

/* Sayfalama */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 650; font-size: .9rem; }
.pagination a:hover { border-color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }

/* Bölüm düzeni */
.page-head { margin: 26px 0 18px; }
.section { margin-bottom: 36px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.stat-box { padding: 16px 12px; text-align: center; transition: transform .16s ease, box-shadow .2s ease; }
.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-box .num { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-box .lbl { font-size: .78rem; color: var(--text-2); font-weight: 650; }

/* Sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; font-weight: 650; color: var(--text-2); border-bottom: 2.5px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }

/* Alt mobil gezinme — yüzen kapsül */
.bottomnav {
  position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 50;
  display: flex; background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .66rem; font-weight: 700; color: var(--text-3); padding: 7px 0 5px;
  border-radius: 13px; transition: color .15s, background .15s;
}
.bottomnav a .ic { font-size: 1.15rem; }
.bottomnav a.active { color: var(--primary); background: var(--primary-soft); }
.bottomnav a:hover { text-decoration: none; color: var(--primary); }
@media (min-width: 900px) { .bottomnav { display: none; } }
body { padding-bottom: 84px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* Hero */
.hero {
  margin: 24px 0 32px; padding: 38px 26px; border-radius: 22px;
  background: linear-gradient(130deg, #4a4cd0 0%, #5b5ee0 42%, #8b5cf6 100%);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 20px 44px -14px rgba(91, 94, 224, .45);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, transparent 70%);
  pointer-events: none;
}
.hero::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.hero::after { width: 240px; height: 240px; bottom: -120px; left: -60px; }
.hero > * { position: relative; }
.hero h1 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; letter-spacing: -.02em; }
.hero p { opacity: .93; margin: 0 0 20px; max-width: 580px; font-size: 1.02rem; }
.hero .btn-primary { background: #fff; color: #4648c8; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .35); }
.hero .btn-outline { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.hero-stats { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats .lbl { font-size: .76rem; opacity: .85; font-weight: 600; }
.hero-search { margin-top: 22px; max-width: 520px; }
.hero-search .search-box {
  display: flex; gap: 8px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; padding: 6px;
  backdrop-filter: blur(6px);
}
.hero-search input {
  flex: 1; border: none; background: transparent; color: #fff; font-size: 1rem;
  padding: 9px 12px; outline: none; min-width: 0;
}
.hero-search input::placeholder { color: rgba(255, 255, 255, .75); }
.hero-search .btn { border-radius: 10px; }
@media (min-width: 700px) { .hero h1 { font-size: 2.25rem; } .hero { padding: 48px 40px; } }

/* Footer */
.footer { margin-top: 52px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 16px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; color: var(--text-2); font-size: .88rem; }

/* Konu içeriği tipografisi */
.prose h3 { margin-top: 1.5em; font-size: 1.08rem; }
.prose p { margin: .72em 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose table td, .prose table th { border: 1px solid var(--border); padding: 8px 10px; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { border-left: 3px solid var(--primary); margin: 1em 0; padding: 6px 15px; background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose strong { font-weight: 700; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .4s cubic-bezier(.2, .7, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .explanation-box, .mobile-menu.open { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}

/* Küçük telefon: üst barda yalnızca tema + menü */
@media (max-width: 560px) {
  .topnav-actions .btn { display: none; }
  .topnav-inner { gap: 8px; }
  .question-card { padding: 18px 16px; }
}

/* Bölümler (programlar) */
.program-hero { margin: 8px 0 22px; }
.program-hero-top { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.program-hero h1 { margin: 0; }
.program-icon {
  width: 58px; height: 58px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; background: var(--primary-soft); border: 1px solid var(--border);
}
.program-kicker { font-size: .78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.program-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .stat-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.seg {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); max-width: 100%; overflow-x: auto;
}
.seg a { padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.seg a.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.seg a:hover { text-decoration: none; color: var(--text); }
.year-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 4px; }
.year-head h2 { margin: 0; }
.term-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 1rem; color: var(--text-2); }
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: #e08a2e; flex: 0 0 auto; }
.term-dot.spring { background: var(--success); }
.mini-progress { display: grid; gap: 4px; }
.program-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 32px; }
@media (min-width: 720px) { .program-cards { grid-template-columns: repeat(2, 1fr); } }
.program-card { display: flex; gap: 16px; padding: 20px; align-items: flex-start; transition: transform .16s ease, box-shadow .2s ease, border-color .18s; }
.program-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.program-card h3 { margin: 0 0 4px; color: var(--text); }
.program-card.current { border-color: var(--primary); box-shadow: var(--ring); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: .86rem; color: var(--text-2); }
.chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.chip:hover { text-decoration: none; border-color: var(--primary); }

/* Kod blokları (programlama soruları) */
.question-text pre, .explanation-box pre, .prose pre, .choice-btn pre {
  background: #0f1322; color: #e6e9f5; padding: 12px 14px; border-radius: 10px;
  overflow-x: auto; font-size: .86rem; line-height: 1.5; margin: 10px 0; white-space: pre; max-width: 100%;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
:not(pre) > code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.question-text, .choice-btn .choice-text { min-width: 0; overflow-wrap: anywhere; }
.question-text img, .explanation-box img { border-radius: 8px; margin: 6px 0; }
kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface); font: 600 .78rem ui-monospace, Menlo, Consolas, monospace; color: var(--text-2); }
.kbd-hint, .swipe-hint { text-align: center; margin: 14px 0 0; }
.kbd-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .kbd-hint { display: block; } .swipe-hint { display: none; } }

/* ================= Tasarım v3 — akıcı tipografi, kompakt mobil, çalışma düzeni ================= */
:root { --radius: 18px; --study-w: 820px; }
body { background: radial-gradient(1200px 500px at 85% -120px, var(--primary-faint), transparent 70%), var(--bg); background-attachment: fixed; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.1rem); }
h2 { font-size: clamp(1.15rem, 1rem + .7vw, 1.42rem); }
.container { padding: 0 clamp(14px, 3vw, 24px); }
.page-head { margin: clamp(14px, 3vw, 26px) 0 clamp(12px, 2vw, 18px); }
.section { margin-bottom: clamp(22px, 4vw, 36px); }
.card { box-shadow: var(--shadow-sm); }
.btn { border-radius: 12px; font-weight: 700; }
.btn.is-disabled { opacity: .4; pointer-events: none; }

/* Hero: mobilde daha sıkı */
@media (max-width: 619px) {
  .hero { margin: 14px 0 22px; padding: 26px 18px; border-radius: 20px; }
  .hero p { font-size: .95rem; margin-bottom: 16px; }
  .hero-stats { gap: 18px; margin-top: 18px; }
  .hero-stats .num { font-size: 1.2rem; }
  .hero > div:first-of-type .btn { flex: 1; }
}

/* Ders kartları: telefonda yatay kompakt satır */
@media (max-width: 619px) {
  .card-grid { gap: 10px; }
  .course-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 6px; padding: 14px; }
  .course-card > div:first-child { display: contents !important; }
  .course-card .course-icon { grid-row: span 3; width: 44px; height: 44px; align-self: start; }
  .course-card h3 { font-size: 1rem; align-self: center; }
  .course-card > *:not(div:first-child) { grid-column: 2; }
  .course-card p.muted { display: none; }
  .course-card .course-meta { margin-top: 2px; }
  .course-card:hover { transform: none; }
  .program-card { padding: 16px; gap: 12px; }
  .program-card .program-icon { width: 46px; height: 46px; font-size: 1.4rem; }
  .stat-grid { gap: 8px; }
  .stat-box { padding: 12px 8px; }
  .stat-box .num { font-size: 1.25rem; }
  .filterbar .field { min-width: calc(50% - 5px); }
  .filterbar .field:first-child { min-width: 100%; }
  .filterbar .btn { width: 100%; }
}

/* Çalışma (soru) düzeni: okunabilir genişlik */
.study-wrap { max-width: var(--study-w); margin: 0 auto; }
.study-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; }
.study-top-left, .study-top-right { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.q-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font-size: .82rem; color: var(--text-2); }
.q-exam { color: var(--text-2); font-weight: 600; }
.question-card { padding: clamp(16px, 3.2vw, 26px); border-radius: var(--radius); }
.question-text { font-size: clamp(1.02rem, .97rem + .3vw, 1.14rem); }
.choice-btn { border-radius: 14px; padding: 13px 14px; min-height: 52px; }
.choice-btn .letter { border-radius: 50%; width: 32px; height: 32px; }
.choice-btn.correct { box-shadow: 0 0 0 1px var(--success) inset; }
.reveal-btn { margin-top: 4px; }
.lazy-card { content-visibility: auto; contain-intrinsic-size: auto 520px; }

/* Alt aksiyon çubuğu: mobilde alt menünün hemen üstünde yapışkan */
.action-bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 16px; }
.action-bar .btn-primary { min-width: 132px; }
@media (max-width: 899px) {
  .action-bar:not(.static) {
    position: sticky; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg);
  }
  .action-bar .btn { min-height: 46px; }
}
.hide-xs { display: inline; }
@media (max-width: 380px) { .hide-xs { display: none; } }

/* Cevap / açıklama kutusu v3 */
.explanation-box { background: var(--surface-2); border: 1px solid var(--border); padding: 16px; border-radius: 14px; }
.ans-head { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.ans-ok { color: var(--success); }
.ans-bad { color: var(--danger); }
.ans-reveal { color: var(--primary); }
.ans-correct {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px;
  background: var(--success-soft); color: var(--text); font-weight: 600; margin-bottom: 10px;
}
.ans-correct .letter { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; font-weight: 800; font-size: .85rem; }
.ans-expl { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ans-expl-title { font-weight: 800; font-size: .86rem; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ans-expl .prose p:first-child { margin-top: 0; }
.ans-expl .prose p:last-child { margin-bottom: 0; }
.ans-warn { color: var(--warning); margin: 0 0 8px; }
.src-pill { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.src-ai { background: var(--warning-soft); color: var(--warning); }

/* Sınav sayfası çalışma modu */
.exam-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 14px; position: sticky; top: calc(var(--nav-h) + 8px); z-index: 30; }
.static-solution { display: none; margin-top: 12px; }
.show-solutions .static-solution { display: block; animation: fadeUp .25s ease both; }
.show-solutions .question-card.is-answered .static-solution { display: none; }
.show-solutions .choice-btn.is-key { border-color: var(--success); background: var(--success-soft); }
.show-solutions .choice-btn.is-key .letter { background: var(--success); color: #fff; }

/* Masaüstü ince ayarlar */
@media (min-width: 900px) {
  .topnav-links a { padding: 8px 12px; }
  .course-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .show-solutions .static-solution { animation: none; } }
[hidden] { display: none !important; }
@media (max-width: 899px) { .study-wrap { padding-bottom: 8px; } .study-wrap .kbd-hint, .study-wrap .swipe-hint { margin-bottom: 4px; } }

/* ================= Tasarım v3.1 — ders sayfası, liste satırları ================= */
.course-hero { margin: 6px 0 18px; }
.course-hero-top { display: flex; gap: 14px; align-items: center; }
.course-hero h1 { margin: 4px 0 0; }
.course-icon.xl { width: 60px; height: 60px; font-size: 1.8rem; border-radius: 18px; flex: 0 0 auto; background: var(--primary-soft); }
.chip-line { display: flex; gap: 6px; flex-wrap: wrap; }
.course-desc { margin: 12px 0 0; max-width: 720px; }
.mini-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mini-stats > div { display: flex; align-items: baseline; gap: 5px; padding: 7px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.mini-stats strong { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.mini-stats span { font-size: .8rem; color: var(--text-2); font-weight: 600; }

.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .action-grid { grid-template-columns: repeat(4, 1fr); } }
.action-tile {
  display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s;
}
.action-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.action-tile strong { display: block; font-size: .95rem; }
.action-tile small { display: block; color: var(--text-2); font-size: .76rem; line-height: 1.3; }
.action-tile .at-ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 1rem; }
.action-tile.primary { background: var(--grad); border-color: transparent; color: #fff; }
.action-tile.primary small { color: rgba(255, 255, 255, .85); }
.action-tile.primary .at-ico { background: rgba(255, 255, 255, .2); color: #fff; }
[data-theme="dark"] .action-tile.primary { color: #0d1024; }
[data-theme="dark"] .action-tile.primary small { color: rgba(13, 16, 36, .75); }

.two-col { display: grid; gap: 0 22px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1.25fr 1fr; } }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }

.list-card { overflow: hidden; }
.list-row {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background .12s;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--primary-faint); text-decoration: none; }
.row-ico {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; background: var(--surface-2); color: var(--text-2);
}
.row-ico.num { font-variant-numeric: tabular-nums; }
.row-ico.type-vize { background: var(--info-soft); color: var(--info); }
.row-ico.type-final { background: var(--primary-soft); color: var(--primary); }
.row-ico.type-butunleme { background: var(--warning-soft); color: var(--warning); }
.row-ico.type-deneme { background: var(--success-soft); color: var(--success); }
.row-ico.type-uc_ders { background: var(--danger-soft); color: var(--danger); }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.row-title.q { font-weight: 550; }
.row-meta { font-size: .8rem; color: var(--text-2); }
.has-expl { color: var(--success); font-weight: 700; }
.row-go { color: var(--text-3); font-size: 1.4rem; line-height: 1; }

.filter-details { margin-bottom: 16px; }
.filter-details summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; gap: 8px; align-items: center; }
.filter-details summary::-webkit-details-marker { display: none; }
.filter-details summary::after { content: "▾"; margin-left: auto; color: var(--text-3); transition: transform .15s; }
.filter-details[open] summary::after { transform: rotate(180deg); }
.filter-details form { padding: 0 18px 18px; }

.objectives ul { margin: 0; padding-left: 20px; }
.objectives li { margin: 6px 0; }
.chip-row { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; flex: 0 0 auto; }
@media (min-width: 900px) { .chip-row { flex-wrap: wrap; overflow: visible; } }
