/* ==========================================================================
   HGT English — Tasarım Sistemi (frontend)
   Renk paleti, tipografi, bileşenler ve sayfa blokları
   ========================================================================== */

/* --- 1. Tasarım belirteçleri (design tokens) ----------------------------- */
:root {
  /* Marka */
  --ink:          #0d0f2b;
  --ink-2:        #232746;
  --muted:        #5c6280;
  --muted-2:      #8a90aa;
  --line:         #e6e8f2;
  --line-2:       #f1f2f8;
  --bg:           #ffffff;
  --bg-soft:      #f7f8fd;
  --bg-deep:      #0d0f2b;

  --brand:        #3557ff;
  --brand-dark:   #2340d8;
  --brand-light:  #eef2ff;
  --brand-glow:   rgba(53, 87, 255, .22);

  --accent:       #ffb020;
  --accent-light: #fff6e3;
  --mint:         #10b981;
  --mint-light:   #e7f8f1;
  --coral:        #ff6b5a;
  --coral-light:  #ffeeec;
  --violet:       #7c5cff;
  --violet-light: #f1ecff;

  /* Tipografi */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Ölçü */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --container: 1180px;

  /* Gölge */
  --shadow-xs: 0 1px 2px rgba(13, 15, 43, .05);
  --shadow-sm: 0 2px 10px rgba(13, 15, 43, .06);
  --shadow:    0 10px 30px rgba(13, 15, 43, .08);
  --shadow-lg: 0 24px 60px rgba(13, 15, 43, .12);

  --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* --- 2. Sıfırlama -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; border-radius: 4px; }

/* --- 3. Yerleşim --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #cdd2ea; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* --- 4. Tipografi yardımcıları ------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-light);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 18px;
}
.lead { font-size: 1.13rem; color: var(--muted); }
.text-muted { color: var(--muted); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 24px; }

/* --- 5. Butonlar --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 100px;
  font: inherit; font-size: .96rem; font-weight: 700; line-height: 1;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: all var(--transition);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px var(--brand-glow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b1e46; color: #fff; transform: translateY(-2px); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--brand); }
.btn-accent { background: var(--accent); color: #4a3200; }
.btn-accent:hover { background: #f5a40d; color: #4a3200; transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }

/* --- 6. Başlık / navigasyon --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.04em;
  box-shadow: 0 6px 16px var(--brand-glow);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 14px; border-radius: 10px; font-size: .93rem; font-weight: 600; color: var(--ink-2);
}
.main-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.main-nav a.is-active { color: var(--brand); background: var(--brand-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }

@media (max-width: 960px) {
  .site-header .container { gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .main-nav {
    position: fixed; inset: 74px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform var(--transition); max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 12px 14px; }
  .header-actions .btn { padding: 9px 16px; font-size: .85rem; }
  .header-actions .btn-ghost { display: none; }
}

/* --- 7. Kahraman (hero) -------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(124, 92, 255, .13), transparent 60%),
    radial-gradient(700px 380px at 5% 10%, rgba(53, 87, 255, .10), transparent 60%),
    var(--bg-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
/* Vurgulu kelime: altında sarı fosforlu kalem etkisi (arka plan gradyanıyla,
   böylece her tarayıcıda metnin arkasında kalır) */
.hero h1 em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(transparent 64%, rgba(255, 176, 32, .40) 64%);
  padding-inline: .06em;
}
.hero-sub { font-size: 1.13rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.hero-note .ico { color: var(--mint); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 2;
}
.hero-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.hero-card-dot:nth-child(2) { background: var(--accent); }
.hero-card-dot:nth-child(3) { background: var(--mint); }
.hero-card-title { margin-left: auto; font-size: .8rem; color: var(--muted-2); font-weight: 600; }
.hero-item { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: var(--radius); transition: background var(--transition); }
.hero-item:hover { background: var(--bg-soft); }
.hero-item-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.hero-item strong { display: block; font-size: .93rem; color: var(--ink); }
.hero-item span { font-size: .8rem; color: var(--muted); }
.hero-item .badge { margin-left: auto; }
.hero-float {
  position: absolute; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 18px; z-index: 3; border: 1px solid var(--line);
}
.hero-float--tl { top: -22px; left: -24px; }
.hero-float--br { bottom: -26px; right: -18px; }
.hero-float strong { display: block; font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.hero-float span { font-size: .76rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 30px; }
  /* Küçük ekranda yüzen rozetler kartın içinde kalsın (taşma olmasın) */
  .hero-float--tl { top: -12px; left: 10px; }
  .hero-float--br { bottom: -14px; right: 10px; }
}
@media (max-width: 460px) {
  .hero-float { display: none; }
}

/* --- 8. İstatistik şeridi ------------------------------------------------ */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 20px; box-shadow: var(--shadow-sm);
  margin-top: -44px; position: relative; z-index: 5;
}
.stat { text-align: center; padding: 8px 14px; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--muted); }
@media (max-width: 620px) { .stat + .stat { border-left: 0; border-top: 1px solid var(--line-2); } }

/* --- 9. Kartlar ---------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: all var(--transition);
}
.card:hover { border-color: #d5daf0; box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); margin-bottom: 18px;
}
.card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Materyal kartı */
.material-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); height: 100%; position: relative;
}
.material-card:hover { border-color: #d5daf0; box-shadow: var(--shadow); transform: translateY(-4px); }
.material-card.is-locked { background: #fcfcfe; }
.material-thumb {
  position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-light), #fbfcff);
  display: grid; place-items: center; color: var(--brand); border-bottom: 1px solid var(--line-2);
}
.material-thumb img { width: 100%; height: 100%; object-fit: cover; }
.material-thumb--video { background: linear-gradient(135deg, #ffeeec, #fff7f6); color: var(--coral); }
.material-thumb--audio { background: linear-gradient(135deg, #e7f8f1, #f6fdfa); color: var(--mint); }
.material-thumb--quiz  { background: linear-gradient(135deg, #f1ecff, #faf8ff); color: var(--violet); }
.material-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.material-body h3 { font-size: 1.03rem; margin: 0; line-height: 1.35; }
.material-body h3 a { color: var(--ink); }
.material-body h3 a:hover { color: var(--brand); }
.material-body p { font-size: .87rem; color: var(--muted); margin: 0; }
.material-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: .78rem; color: var(--muted-2); }
.material-meta .ico { width: 15px; height: 15px; }
.material-meta span { display: inline-flex; align-items: center; gap: 5px; }

.lock-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 8px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(3px);
  color: var(--ink); text-align: center; padding: 12px;
}
.lock-overlay .ico { color: var(--muted); }
.lock-overlay small { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* --- 10. Rozetler -------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px;
  font-size: .73rem; font-weight: 700; letter-spacing: .01em;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.badge .ico { width: 13px; height: 13px; }
.badge-sample  { background: var(--mint-light);  color: #067a58; border-color: #bfeada; }
.badge-locked  { background: var(--bg-soft);     color: var(--muted); }
.badge-brand   { background: var(--brand-light); color: var(--brand-dark); border-color: #d5ddff; }
.badge-accent  { background: var(--accent-light);color: #96660a; border-color: #f8e2b6; }
.badge-violet  { background: var(--violet-light);color: #5a3ed6; border-color: #ddd2ff; }
.badge-coral   { background: var(--coral-light); color: #c9402f; border-color: #ffd4cf; }
.badge-success { background: var(--mint-light);  color: #067a58; border-color: #bfeada; }
.badge-danger  { background: #ffeaea;            color: #c62828; border-color: #ffd0d0; }
.badge-lg { padding: 6px 14px; font-size: .8rem; }
.badge-float { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; box-shadow: var(--shadow-xs); }

/* --- 11. Özellik sekmeleri (platform önizleme) -------------------------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.tab {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.feature-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow-sm);
}
.feature-split img { border-radius: var(--radius); border: 1px solid var(--line-2); width: 100%; }
.feature-split .placeholder-visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-light), var(--violet-light));
  display: grid; place-items: center; color: var(--brand);
}
@media (max-width: 820px) { .feature-split { grid-template-columns: 1fr; } }

/* --- 12. Yorumlar -------------------------------------------------------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.testimonial-stars { display: flex; gap: 2px; color: var(--accent); }
.testimonial-stars .ico { fill: currentColor; }
.testimonial p { font-size: .96rem; color: var(--ink-2); margin: 0; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.testimonial-author strong { display: block; font-size: .92rem; color: var(--ink); }
.testimonial-author span { font-size: .8rem; color: var(--muted); }

/* --- 13. SSS ------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1rem;
  display: flex; align-items: center; gap: 14px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* --- 14. Harekete geçirici (CTA) ---------------------------------------- */
.cta-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, #211f5c 55%, #2d2a7a 100%);
  border-radius: var(--radius-xl); padding: clamp(38px, 6vw, 72px); text-align: center; color: #cdd2ea;
}
.cta-panel::before {
  content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,87,255,.45), transparent 65%);
  top: -180px; right: -120px;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; margin-bottom: 14px; }
.cta-panel p { max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }

/* --- 15. Filtre çubuğu --------------------------------------------------- */
.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-xs); margin-bottom: 28px;
}
.filter-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 880px) { .filter-grid { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  padding: 7px 15px; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; font-size: .84rem; font-weight: 600; color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip small { opacity: .65; margin-left: 4px; }

/* --- 16. Form ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .875rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: .79rem; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; padding: 12px 15px; font: inherit; font-size: .94rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6280' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
.input-group { position: relative; }
.input-group .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-group .input { padding-left: 42px; }
.field-error { font-size: .82rem; color: #c62828; font-weight: 600; }
.input.has-error { border-color: #e57373; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }

/* --- 17. Uyarı kutuları -------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px;
  font-size: .92rem; border: 1px solid; line-height: 1.55;
}
.alert .ico { flex-shrink: 0; margin-top: 2px; }
.alert-success { background: var(--mint-light);  border-color: #bfeada; color: #0a6b4d; }
.alert-danger  { background: #ffeaea;            border-color: #ffcaca; color: #b02020; }
.alert-warning { background: var(--accent-light);border-color: #f8e2b6; color: #8a5d05; }
.alert-info    { background: var(--brand-light); border-color: #d5ddff; color: #2340d8; }

.flash-stack { position: fixed; top: 90px; right: 20px; z-index: 200; width: min(380px, calc(100vw - 40px)); }
.flash-stack .alert { box-shadow: var(--shadow-lg); background-color: #fff; animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* --- 18. Materyal detay -------------------------------------------------- */
.detail-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: 40px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
@media (max-width: 940px) { .detail-layout { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 1.08rem; }
.sidebar-card { position: sticky; top: 96px; }

.viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #f4f5fa; }
.viewer iframe, .viewer embed { width: 100%; height: 620px; border: 0; display: block; }
.viewer--video { aspect-ratio: 16 / 9; height: auto; }
.viewer--video iframe { height: 100%; aspect-ratio: 16 / 9; }
.audio-player { width: 100%; margin-top: 8px; }

.locked-panel {
  text-align: center; padding: clamp(38px, 6vw, 64px) 26px;
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.locked-panel .lock-circle {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  color: var(--muted); box-shadow: var(--shadow-sm);
}
.locked-panel h3 { margin-bottom: 10px; }
.locked-panel p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .89rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list strong { color: var(--ink); font-weight: 700; text-align: right; }

.file-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px;
  transition: all var(--transition); background: #fff;
}
.file-row:hover { border-color: var(--brand); box-shadow: var(--shadow-xs); }
.file-row .ico { color: var(--brand); flex-shrink: 0; }
.file-row strong { font-size: .9rem; color: var(--ink); display: block; }
.file-row small { font-size: .78rem; color: var(--muted); }
.file-row .btn { margin-left: auto; }

/* --- 19. Quiz ------------------------------------------------------------ */
.quiz-shell { max-width: 800px; margin-inline: auto; }
.quiz-progress { position: sticky; top: 0; background: #fff; padding: 14px 0; z-index: 10; border-bottom: 1px solid var(--line); }
.progress-track { height: 8px; background: var(--line-2); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--violet)); border-radius: 100px; transition: width .4s ease; }
.question-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 18px; }
.question-num { font-size: .78rem; font-weight: 700; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.question-text { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: 20px; line-height: 1.5; }
.option {
  display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 10px;
  cursor: pointer; transition: all var(--transition); background: #fff;
}
.option:hover { border-color: var(--brand); background: var(--brand-light); }
.option input { accent-color: var(--brand); width: 19px; height: 19px; margin-top: 1px; flex-shrink: 0; cursor: pointer; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.option.is-correct { border-color: var(--mint); background: var(--mint-light); }
.option.is-wrong { border-color: var(--coral); background: var(--coral-light); }
.option-mark { margin-left: auto; font-size: .76rem; font-weight: 700; }

.score-ring {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--brand) calc(var(--score) * 1%), var(--line-2) 0);
}
.score-ring::after { content: ''; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.score-ring div { position: relative; z-index: 1; text-align: center; }
.score-ring strong { display: block; font-size: 2.3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.score-ring span { font-size: .78rem; color: var(--muted); }

/* --- 20. Sayfalama ------------------------------------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: #fff;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-gap { border: 0; background: none; }

/* --- 21. Boş durum ------------------------------------------------------- */
.empty-state { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.empty-state .ico { color: var(--muted-2); margin: 0 auto 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* --- 22. Alt bilgi ------------------------------------------------------- */
.site-footer { background: var(--bg-deep); color: #9aa0c4; padding-block: 60px 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.footer-about { font-size: .9rem; max-width: 320px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #9aa0c4; font-size: .91rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: .91rem; margin-bottom: 12px; align-items: flex-start; }
.footer-contact .ico { flex-shrink: 0; margin-top: 3px; opacity: .7; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #cdd2ea; transition: all var(--transition);
}
.social-row a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}

/* --- 23. Giriş sayfası --------------------------------------------------- */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.auth-aside {
  position: relative; overflow: hidden; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(150deg, var(--ink) 0%, #211f5c 60%, #2d2a7a 100%); color: #cdd2ea;
}
.auth-aside::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,87,255,.4), transparent 65%); top: -160px; right: -160px;
}
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.auth-points .ico { color: var(--mint); flex-shrink: 0; margin-top: 3px; }

/* --- 24. İçerik (CMS gövdesi) ------------------------------------------- */
.prose { font-size: 1.02rem; line-height: 1.8; color: var(--ink-2); max-width: 760px; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--brand);
  background: var(--brand-light); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5em; font-size: .94rem; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* --- 25. Yardımcılar ----------------------------------------------------- */
.page-wrap { display: flex; flex-direction: column; min-height: 100dvh; }
.page-main { flex: 1; }
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.divider { height: 1px; background: var(--line); margin-block: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.logo-strip { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; align-items: center; opacity: .62; }
.logo-strip img { max-height: 38px; width: auto; filter: grayscale(1); }

@media print {
  .site-header, .site-footer, .btn, .flash-stack { display: none !important; }
}
