:root {
  color-scheme: light;
  /* Sıcak, insani palet — Romanya bayrağı tonlarının yumuşatılmış hâli */
  --ink: #2b2118;
  --ink-soft: #6b5d4f;
  --paper: #fbf6ee;
  --cream: #f4ead9;
  --surface: #ffffff;
  --terra: #c0532f;       /* sıcak terracotta */
  --terra-deep: #9c3d20;
  --gold: #e8a317;
  --indigo: #2f4a7c;      /* yumuşatılmış mavi */
  --green: #3f7d4e;
  --line: rgba(43, 33, 24, 0.12);
  --shadow-sm: 0 4px 16px rgba(43, 33, 24, 0.06);
  --shadow: 0 18px 50px rgba(43, 33, 24, 0.12);
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232,163,23,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(192,83,47,.10), transparent 55%),
    var(--paper);
  min-height: 100dvh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
.muted { color: var(--ink-soft); }
.page-shell { width: min(1180px, 100%); margin: 0 auto; padding: 16px; }

/* ── Bayrak işareti ── */
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 1fr); width: 30px; height: 22px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); }
.brand-mark i:nth-child(1), .eyebrow b:nth-child(1), .pc-flag b:nth-child(1) { background: var(--indigo); }
.brand-mark i:nth-child(2), .eyebrow b:nth-child(2), .pc-flag b:nth-child(2) { background: var(--gold); }
.brand-mark i:nth-child(3), .eyebrow b:nth-child(3), .pc-flag b:nth-child(3) { background: var(--terra); }

/* ── Header ── */
.site-header {
  position: sticky; top: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 12px 10px 18px; min-height: 62px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: .2s; }
.main-nav a:hover, .main-nav a.on { color: var(--ink); background: var(--cream); }
.nav-cta { background: var(--terra) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(192,83,47,.28); }
.nav-cta:hover { background: var(--terra-deep) !important; }

/* ── Flash ── */
.flash { margin: 14px auto 0; max-width: 860px; padding: 13px 18px; border-radius: 14px; font-weight: 600; background: #eaf5ec; color: var(--green); border: 1px solid rgba(63,125,78,.25); }
.flash.warn { background: #fceee9; color: var(--terra-deep); border-color: rgba(192,83,47,.25); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .2s; }
.btn.primary { background: var(--terra); color: #fff; box-shadow: 0 12px 26px rgba(192,83,47,.26); }
.btn.primary:hover { background: var(--terra-deep); transform: translateY(-2px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--cream); }
.btn.small { padding: 9px 16px; font-size: 13.5px; }
.btn.block { width: 100%; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.eyebrow b, .pc-flag b { width: 8px; height: 13px; border-radius: 2px; }
.pc-flag { display: inline-flex; gap: 3px; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 56px 8px 40px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 18px 0 0; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 30em; margin: 18px 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats strong { font-family: var(--serif); font-size: 30px; display: block; color: var(--terra-deep); }
.hero-stats span { font-size: 13px; color: var(--ink-soft); }

.hero-visual { display: flex; justify-content: center; }
.phrase-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(-1.5deg); }
.phrase-card h3 { font-size: 40px; color: var(--terra); margin-top: 14px; }
.phrase-card > p { color: var(--ink-soft); margin: 2px 0 20px; font-size: 17px; }
.pc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--line); }
.pc-row span { font-weight: 700; }
.pc-row em { color: var(--ink-soft); font-style: normal; font-size: 14px; }

/* ── Sections ── */
.section { padding: 48px 8px; }
.section.narrow { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head { text-align: center; max-width: 38em; margin: 0 auto 38px; }
.section-head h2, .preview-copy h2, .page-intro h1, .lesson-block h2, .vocab-theme h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: .25s; }
.step-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-no { font-family: var(--serif); font-size: 15px; font-weight: 600; color: #fff; background: var(--indigo); width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.step-grid h3 { font-size: 21px; margin: 16px 0 8px; }
.step-grid p { color: var(--ink-soft); margin: 0; }

.preview { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.preview-copy p { color: var(--ink-soft); font-size: 17px; margin: 14px 0 22px; }
.lesson-sample { display: grid; gap: 10px; }
.sample-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm); transition: .2s; }
.sample-row:hover { transform: translateX(4px); border-color: var(--terra); }
.sample-row strong { flex: 1; }
.sample-row em { font-style: normal; color: var(--ink-soft); font-size: 14px; }

/* ── Tags ── */
.tag { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.tag-ders { background: rgba(47,74,124,.12); color: var(--indigo); }
.tag-ödev, .tag-odev { background: rgba(232,163,23,.16); color: #9a6c00; }
.tag-test { background: rgba(192,83,47,.13); color: var(--terra-deep); }
.tag-çalışma, .tag-calisma { background: rgba(63,125,78,.13); color: var(--green); }

/* ── Auth ── */
.auth-page { display: flex; justify-content: center; padding: 50px 8px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 38px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; margin: 14px 0 8px; }
.form-stack { display: grid; gap: 16px; margin-top: 24px; }
.form-stack label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; }
.form-stack input { padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line); background: var(--paper); transition: .2s; }
.form-stack input:focus { outline: none; border-color: var(--terra); background: #fff; box-shadow: 0 0 0 4px rgba(192,83,47,.12); }
.auth-switch { margin-top: 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.auth-switch a { color: var(--terra); font-weight: 700; }

/* ── Dashboard ── */
.dashboard { padding: 30px 8px 60px; }
.dash-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; background: linear-gradient(135deg, var(--cream), #fff); border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow-sm); }
.dash-hero h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px 0 8px; }
.dash-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.progress-card { text-align: center; }
.progress-card > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.ring { --p: 0; width: 130px; height: 130px; margin: 12px auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--terra) calc(var(--p) * 1%), var(--cream) 0); }
.ring::before { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: var(--surface); }
.ring strong { position: relative; font-family: var(--serif); font-size: 30px; }
.progress-card em { font-style: normal; font-size: 13px; color: var(--ink-soft); }

.lesson-block { padding: 38px 0 10px; }
.lesson-block h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.count { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--cream); padding: 3px 11px; border-radius: 999px; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lesson-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); transition: .22s; display: block; }
.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--terra); }
.lesson-card.done { background: linear-gradient(180deg, #f1f8f2, #fff); border-color: rgba(63,125,78,.3); }
.lc-top { display: flex; justify-content: space-between; align-items: center; }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.lesson-card h3 { font-size: 20px; margin: 14px 0 6px; }
.lc-file { font-size: 12.5px; color: var(--ink-soft); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-meta { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--terra); }

/* ── Reader (inline görsel okuyucu) ── */
.reader { padding: 24px 8px 60px; }
.reader-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; box-shadow: var(--shadow-sm); position: sticky; top: 84px; z-index: 10; }
.back-link { font-weight: 700; color: var(--ink-soft); }
.reader-title { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 200px; }
.reader-title h1 { font-size: 22px; }
.reader-actions { display: flex; gap: 10px; }
.inline-form { margin: 0; }
.reader-pages { display: grid; gap: 22px; max-width: 880px; margin: 26px auto 0; }
.page { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.page img { width: 100%; }
.page figcaption { position: absolute; bottom: 10px; right: 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(43,33,24,.55); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.page-empty { text-align: center; padding: 50px; background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; }
.reader-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 880px; margin: 30px auto 0; }
.reader-nav a.nav-prev, .reader-nav a.nav-next { font-weight: 700; color: var(--ink-soft); max-width: 40%; }
.reader-nav a:hover { color: var(--terra); }

/* ── Vocab flip cards ── */
.page-intro { text-align: center; max-width: 36em; margin: 30px auto 30px; }
.page-intro h1 { margin: 12px 0 8px; }
.vocab-theme { margin-bottom: 40px; }
.vocab-theme h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.flip-card { perspective: 800px; background: none; border: none; padding: 0; cursor: pointer; height: 110px; }
.fc-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flip-card.flipped .fc-inner { transform: rotateY(180deg); }
.fc-front, .fc-back { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; border-radius: 16px; backface-visibility: hidden; text-align: center; font-weight: 700; box-shadow: var(--shadow-sm); }
.fc-front { background: var(--surface); border: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.fc-back { background: var(--terra); color: #fff; transform: rotateY(180deg); font-size: 16px; }

/* ── Quiz ── */
.quiz { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.q-card h3 { font-size: 18px; display: flex; gap: 12px; align-items: flex-start; }
.q-card h3 span { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--cream); color: var(--terra-deep); display: grid; place-items: center; font-size: 14px; font-weight: 800; font-family: var(--sans); }
.q-opts { display: grid; gap: 9px; margin-top: 16px; }
.q-opt { text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; transition: .15s; }
.q-opt:hover { border-color: var(--terra); }
.q-opt.correct { background: #e9f6ec; border-color: var(--green); color: var(--green); }
.q-opt.wrong { background: #fcece7; border-color: var(--terra); color: var(--terra-deep); }
.q-opt:disabled { cursor: default; }
.quiz-result { text-align: center; background: var(--cream); border-radius: 18px; padding: 26px; display: grid; gap: 14px; justify-items: center; }
.quiz-result strong { font-family: var(--serif); font-size: 26px; }

/* ── Guide ── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); }
.guide-no { font-family: var(--serif); font-size: 14px; color: #fff; background: var(--indigo); width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.guide-card h2 { font-size: 21px; margin: 14px 0 10px; }
.guide-card p { color: var(--ink-soft); margin: 0; }
.guide-cta { text-align: center; margin-top: 40px; background: linear-gradient(135deg, var(--cream), #fff); border: 1px solid var(--line); border-radius: 24px; padding: 44px; }
.guide-cta h2 { font-size: 28px; margin-bottom: 8px; }
.guide-cta p { color: var(--ink-soft); margin-bottom: 20px; }

/* ── Footer ── */
.site-footer { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-top: 50px; padding: 36px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-sm); }
.site-footer strong { font-family: var(--serif); font-size: 18px; display: block; margin: 8px 0 4px; }
.site-footer p { color: var(--ink-soft); max-width: 32em; margin: 0; font-size: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--terra); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 880px) {
  .hero, .preview, .dash-hero { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; text-align: left; }
  .hero-visual { order: -1; }
  .reader-bar { position: static; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 8px 9px; font-size: 13px; }
  .hero-stats { gap: 18px; }
}
@media (max-width: 560px) {
  .site-header { border-radius: 20px; }
  .main-nav { width: 100%; justify-content: space-between; }
}
