/* =================================================================
   EMMET ÖDEVİ — Editorial / Magazine Theme (standalone)
   Ödev arşivinin diğer sayılarıyla aynı tasarım dili.
   ================================================================= */

:root {
  --paper: #f6f1e7;
  --paper-dim: #ebe4d4;
  --paper-tint: #efe8d9;
  --paper-deep: #e4dcc8;
  --ink: #171412;
  --ink-mute: #5c544b;
  --ink-soft: #8a8278;
  --rule: #d9d0bd;
  --rule-strong: #221d18;

  --accent: #b2401f;
  --accent-dim: rgba(178,64,31,0.08);
  --emmet: #4a7a2e;          /* Emmet yeşili — kısaltma rengi */
  --emmet-dim: rgba(74,122,46,0.1);

  /* Koyu panel (editör) paleti */
  --night: #1a1714;
  --night-2: #221e1a;
  --night-3: #2c2722;
  --night-rule: #3a332c;
  --night-ink: #efe7d8;
  --night-mute: #a59a8a;

  /* Sözdizimi renkleri */
  --syn-tag: #e07a52;
  --syn-attr: #d9b36c;
  --syn-str: #9cc47a;
  --syn-text: #efe7d8;
  --syn-punc: #8a7f70;
  --syn-op: #e8c547;
  --syn-num: #c792ea;

  --f-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', 'IBM Plex Mono', Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 16px; overflow-x: clip; scroll-padding-top: 70px; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: clip;
  background-image:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(178,64,31,0.035), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(74,122,46,0.035), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
code, kbd { font-family: var(--f-mono); }
p code, li code, td code, .footnote code {
  font-size: 0.84em;
  background: var(--paper-dim);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}
kbd {
  display: inline-block;
  font-size: 0.78em;
  line-height: 1;
  padding: 0.3em 0.55em 0.35em;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  vertical-align: 0.1em;
}
::selection { background: var(--accent); color: var(--paper); }

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.03; mix-blend-mode: multiply;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

/* --- Progress bar --- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emmet), var(--accent)); transition: width 80ms linear; }

/* ============================================================ */
/*  NAV                                                         */
/* ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper), transparent 8%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-brand { display: flex; align-items: baseline; gap: 0.75rem; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.nav-brand-icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-brand-icon::before {
  content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; transform: translateY(-2px);
}
.nav-brand .sub {
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.08em; padding-left: 0.75rem; border-left: 1px solid var(--rule);
}
.nav-links {
  display: flex; align-items: center; gap: 1.35rem;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-mute); text-transform: uppercase;
}
.nav-links a { transition: color 180ms var(--ease); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 180ms var(--ease), opacity 180ms var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================ */
/*  HERO                                                        */
/* ============================================================ */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.crumb {
  display: block;
  font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute);
  padding-bottom: 1.25rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule-strong);
  transition: color 180ms var(--ease);
}
.crumb:hover { color: var(--accent); }

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 600; margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-title em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero-title .mono-word {
  display: block; width: fit-content;
  font-family: var(--f-mono); font-weight: 600; font-size: 0.5em; letter-spacing: -0.02em;
  color: var(--emmet); background: var(--emmet-dim);
  padding: 0.12em 0.45em; border-radius: 8px; margin-bottom: 0.9rem;
}
.hero-title .mono-word::after { content: '|'; margin-left: 2px; animation: blink 1s steps(1) infinite; font-weight: 400; }
.lead {
  font-family: var(--f-display); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.6;
  color: var(--ink); max-width: 46ch; margin-top: 1.75rem; font-variation-settings: "opsz" 20;
}
.lead strong { font-weight: 600; }
.lead em { color: var(--accent); }
.lead code { font-size: 0.8em; background: var(--emmet-dim); color: var(--emmet); padding: 0.1em 0.4em; border-radius: 4px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.3rem; border-radius: 999px; transition: transform 200ms var(--ease), background 200ms, color 200ms;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); }
.btn--line { border: 1px solid var(--rule-strong); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* --- Editor window (shared) --- */
.win {
  background: var(--night); color: var(--night-ink);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(23,20,18,0.45), 0 0 0 1px rgba(23,20,18,0.9);
}
.win-bar {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 1rem; background: var(--night-2); border-bottom: 1px solid var(--night-rule);
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--night-mute);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #e0604c; }
.dots i:nth-child(2) { background: #e6b54a; }
.dots i:nth-child(3) { background: #6fb25a; }
.win-title { flex: 1; }
.win-badge { padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--night-3); color: var(--syn-str); font-size: 0.65rem; letter-spacing: 0.08em; }
.win-body { padding: 1.2rem 1.25rem 1.4rem; min-height: 290px; font-family: var(--f-mono); font-size: 0.85rem; }
.demo-line { display: flex; align-items: center; gap: 1rem; }
.ln { color: var(--night-mute); opacity: 0.5; width: 1ch; text-align: right; }
.demo-abbr { color: var(--syn-str); white-space: pre; }
.demo-abbr .t-op { color: var(--syn-op); }
.caret { width: 2px; height: 1.15em; background: var(--syn-op); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.demo-tab {
  margin: 0.9rem 0 0 2rem; font-size: 0.72rem; color: var(--night-mute);
  opacity: 0; transform: translateY(-4px); transition: all 300ms var(--ease);
}
.demo-tab.show { opacity: 1; transform: none; }
.demo-tab.press kbd { transform: translateY(2px); border-bottom-width: 1px; background: var(--syn-op); }
.demo-tab kbd { background: var(--night-3); color: var(--night-ink); border-color: var(--night-rule); transition: all 120ms; }
.demo-out { margin: 0.9rem 0 0 2rem; font-family: var(--f-mono); font-size: 0.8rem; line-height: 1.65; white-space: pre; overflow: hidden; }
.demo-out .line { display: block; opacity: 0; transform: translateX(-6px); animation: lineIn 380ms var(--ease) forwards; }
.demo-caption { margin-top: 0.9rem; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-mute); text-align: center; letter-spacing: 0.04em; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes lineIn { to { opacity: 1; transform: none; } }

/* --- Stats --- */
.stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 2rem 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.stat { padding: 0 1.5rem; border-right: 1px dashed var(--rule); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.03em; line-height: 1; }
.stat-num .accent { color: var(--accent); }
.stat-label { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.8rem; line-height: 1.5; }

/* ============================================================ */
/*  SECTIONS                                                    */
/* ============================================================ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--tint { background: var(--paper-tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--dark { background: var(--night); color: var(--night-ink); }
.section--dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(239,231,216,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-tag {
  display: inline-block; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.1rem; font-variation-settings: "opsz" 144;
}
.section-head p { font-size: 1.05rem; color: var(--ink-mute); max-width: 62ch; }
.section-head p strong { color: var(--ink); }
.section-head p em { color: var(--accent); }
.section-head--dark .section-tag { color: var(--syn-op); }
.section-head--dark p { color: var(--night-mute); }
.section-head--dark p strong { color: var(--night-ink); }

.mini-label {
  font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft); margin-bottom: 0.75rem;
}
.mini-label--dark { color: var(--night-mute); }

/* --- Code blocks --- */
.code {
  font-family: var(--f-mono); font-size: 0.8rem; line-height: 1.65;
  background: var(--night); color: var(--syn-text);
  padding: 1rem 1.15rem; border-radius: 10px; overflow-x: auto; white-space: pre;
  tab-size: 2;
}
.code--light { background: #fffdf8; color: var(--ink); border: 1px solid var(--rule); }
.code .h-tag { color: var(--syn-tag); }
.code .h-attr { color: var(--syn-attr); }
.code .h-str { color: var(--syn-str); }
.code .h-punc { color: var(--syn-punc); }
.code--light .h-tag { color: #b2401f; }
.code--light .h-attr { color: #8a5a0f; }
.code--light .h-str { color: #3f6e25; }
.code--light .h-punc { color: #a39a8d; }
.t-sel { color: #b2401f; } .t-op { color: #c08a00; } .t-cls { color: #3f6e25; }
.t-prop { color: #1f5a8f; } .t-val { color: #6b3f7a; }
.t-key { color: var(--syn-attr); } .t-str { color: var(--syn-str); } .t-punc { color: var(--syn-punc); }
.code .t-val { color: var(--syn-num); }

/* ============================================================ */
/*  NEDİR                                                       */
/* ============================================================ */
.define { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.define-pron { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-soft); }
.define-word h3 { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; margin: 0.25rem 0 1rem; color: var(--emmet); }
.define-word p { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.6; font-variation-settings: "opsz" 20; }
.define-side { border-left: 1px dashed var(--rule); padding-left: 2.5rem; align-self: center; }
.define-side p { color: var(--ink-mute); }
.define-side strong { color: var(--ink); }

.mirror { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; margin: 3rem 0; }
.mirror-arrow { font-size: 2rem; color: var(--accent); font-family: var(--f-display); }
.mirror .code { min-height: 130px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.why { background: var(--paper); padding: 1.75rem 1.5rem; transition: background 250ms; }
.why:hover { background: #fffdf8; }
.why-num { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); margin-bottom: 1.25rem; }
.why h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; margin-bottom: 0.5rem; }
.why p { font-size: 0.92rem; color: var(--ink-mute); }

/* ============================================================ */
/*  TARİHÇE                                                     */
/* ============================================================ */
.timeline { position: relative; padding-left: 0; }
.timeline::before { content: ''; position: absolute; left: 7.5rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--rule-strong); }
.tl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 2.5rem; padding: 1.4rem 0; position: relative; }
.tl::before {
  content: ''; position: absolute; left: calc(7.5rem - 6px); top: 2.05rem; width: 13px; height: 13px;
  border-radius: 50%; background: var(--paper-tint); border: 2px solid var(--rule-strong);
}
.tl--now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-dim); }
.tl-year { font-family: var(--f-display); font-size: 2rem; letter-spacing: -0.03em; line-height: 1.2; padding-right: 1.5rem; text-align: right; }
.tl--now .tl-year { color: var(--accent); font-style: italic; }
.tl-body { padding-left: 0.5rem; max-width: 62ch; }
.tl-body h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.35rem; }
.tl-body p { color: var(--ink-mute); }
.tl-body strong { color: var(--ink); }

/* ============================================================ */
/*  OPERATÖRLER                                                 */
/* ============================================================ */
.ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.op {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: #fffdf8; border: 1px solid var(--rule); border-radius: 14px; padding: 1.4rem;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms;
}
.op:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(23,20,18,0.35); border-color: var(--rule-strong); }
.op-head { display: flex; align-items: center; gap: 1rem; }
.op-sym {
  display: grid; place-items: center; min-width: 3.2rem; height: 3.2rem; padding: 0 0.5rem;
  font-family: var(--f-mono); font-weight: 600; font-size: 1.35rem;
  background: var(--night); color: var(--syn-op); border-radius: 10px;
}
.op-head h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.1; }
.op-en { font-family: var(--f-mono); font-size: 0.68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; }
.op > p { font-size: 0.9rem; color: var(--ink-mute); }
.op-abbr { font-size: 0.85rem; color: var(--emmet); background: var(--emmet-dim); padding: 0.45rem 0.7rem; border-radius: 6px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.op .code { flex: 1; font-size: 0.74rem; }
.op-try {
  align-self: flex-start; font-family: var(--f-mono); font-size: 0.74rem; color: var(--accent);
  padding: 0.35rem 0; border-bottom: 1px solid currentColor; transition: gap 200ms, color 200ms;
}
.op-try:hover { color: var(--ink); }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--rule-strong); }
.extra p { color: var(--ink-mute); margin-bottom: 1rem; font-size: 0.95rem; }
.extra strong { color: var(--ink); }
.snip-table, .css-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.snip-table th, .css-table th {
  text-align: left; font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft); font-weight: 500; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rule-strong);
}
.snip-table td, .css-table td { padding: 0.55rem 0.75rem; border-bottom: 1px dashed var(--rule); font-family: var(--f-mono); vertical-align: top; }
.snip-table td:first-child, .css-table td:nth-child(odd) { color: var(--emmet); font-weight: 600; white-space: nowrap; }
.snip-table td:last-child { color: var(--ink-mute); font-size: 0.76rem; overflow-wrap: anywhere; }
.css-table td:nth-child(even) { color: var(--ink-mute); }
.snip-table tr, .css-table tr { cursor: pointer; transition: background 150ms; }
.snip-table tbody tr:hover, .css-table tbody tr:hover { background: var(--emmet-dim); }

/* ============================================================ */
/*  PLAYGROUND                                                  */
/* ============================================================ */
.pg { position: relative; }
.pg-label { display: block; font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--night-mute); margin-bottom: 0.6rem; }
.pg-label--light { color: var(--ink-soft); }
.pg-input-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 12px; padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  transition: border-color 200ms, box-shadow 200ms;
}
.pg-input-row:focus-within { border-color: var(--syn-op); box-shadow: 0 0 0 4px rgba(232,197,71,0.12); }
.pg-prompt { font-family: var(--f-mono); color: var(--syn-op); font-size: 1.2rem; }
.pg-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-family: var(--f-mono); font-size: clamp(0.88rem, 1.6vw, 1.05rem); color: var(--syn-str); padding: 0.55rem 0;
}
.pg-input::placeholder { color: var(--night-mute); opacity: 0.6; }
.pg-btn {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  background: var(--syn-op); color: var(--night); padding: 0.65rem 1rem; border-radius: 8px; font-weight: 600;
  transition: transform 150ms, opacity 150ms, background 150ms;
}
.pg-btn:hover:not(:disabled) { transform: translateY(-1px); }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pg-btn--ghost { background: transparent; color: var(--night-ink); border: 1px solid var(--night-rule); font-weight: 400; }
.pg-btn--ghost:hover { border-color: var(--night-mute); }

.pg-tokens { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.85rem; min-height: 26px; font-family: var(--f-mono); font-size: 0.72rem; }
.tok { padding: 0.2rem 0.45rem; border-radius: 5px; background: var(--night-3); color: var(--night-ink); position: relative; animation: tokIn 260ms var(--ease); }
.tok[data-kind]::after {
  content: attr(data-kind); position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--night-mute); white-space: nowrap;
  opacity: 0; transition: opacity 150ms; pointer-events: none;
}
.tok:hover::after { opacity: 1; }
.tok--tag { color: var(--syn-tag); }
.tok--op { color: var(--night); background: var(--syn-op); font-weight: 600; }
.tok--id { color: #f28b82; }
.tok--class { color: var(--syn-str); }
.tok--attr { color: var(--syn-attr); }
.tok--text { color: #b5c7d3; font-style: italic; }
.tok--mult { color: var(--syn-num); }
.tok--group { color: var(--night); background: var(--night-mute); }
@keyframes tokIn { from { opacity: 0; transform: translateY(4px); } }

.pg-error { min-height: 1.4rem; margin-top: 0.4rem; font-family: var(--f-mono); font-size: 0.75rem; color: #f28b82; }
.pg-error--light { color: var(--accent); }

.pg-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.75rem 0 1.5rem; }
.pg-presets-label { font-family: var(--f-mono); font-size: 0.7rem; color: var(--night-mute); margin-right: 0.25rem; }
.pg-presets button {
  font-family: var(--f-mono); font-size: 0.72rem; padding: 0.4rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--night-rule); color: var(--night-ink); transition: all 180ms;
}
.pg-presets button:hover { border-color: var(--syn-op); color: var(--syn-op); }
.pg-presets--light button { border-color: var(--rule); color: var(--ink-mute); }
.pg-presets--light button:hover { border-color: var(--accent); color: var(--accent); }

.pg-panels { display: grid; grid-template-columns: 1fr 260px; gap: 1.25rem; }
.pg-panel { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-height: 420px; }
.pg-tabs { display: flex; align-items: center; gap: 0.25rem; padding: 0.5rem; border-bottom: 1px solid var(--night-rule); background: var(--night); }
.pg-tabs button { font-family: var(--f-mono); font-size: 0.72rem; padding: 0.45rem 0.85rem; border-radius: 7px; color: var(--night-mute); transition: all 150ms; }
.pg-tabs button:hover { color: var(--night-ink); }
.pg-tabs button.active { background: var(--night-3); color: var(--night-ink); }
.pg-xray { margin-left: auto; font-family: var(--f-mono); font-size: 0.68rem; color: var(--night-mute); display: flex; align-items: center; gap: 0.35rem; padding-right: 0.5rem; cursor: pointer; }
.pg-xray input { accent-color: var(--syn-op); }
.pg-view { display: none; flex: 1; min-height: 0; }
.pg-view.active { display: flex; flex-direction: column; }
.pg-code {
  flex: 1; margin: 0; padding: 1.1rem 1.25rem; font-family: var(--f-mono); font-size: 0.8rem; line-height: 1.7;
  color: var(--syn-text); white-space: pre; overflow: auto; max-height: 520px; tab-size: 2;
}
.pg-code .h-tag { color: var(--syn-tag); } .pg-code .h-attr { color: var(--syn-attr); }
.pg-code .h-str { color: var(--syn-str); } .pg-code .h-punc { color: var(--syn-punc); }
.pg-code .line { display: block; animation: lineIn 260ms var(--ease) both; }
.pg-code--dim { opacity: 0.85; }
#pgFrame, .ed-frame { flex: 1; width: 100%; min-height: 380px; border: 0; background: #fff; }

/* AST tree */
.pg-tree { padding: 1.1rem 1.25rem; font-family: var(--f-mono); font-size: 0.78rem; overflow: auto; max-height: 520px; }
.tree-node { position: relative; padding-left: 1.4rem; }
.tree-node::before { content: ''; position: absolute; left: 0.45rem; top: 0; bottom: 0; border-left: 1px dashed var(--night-rule); }
.tree-node::after { content: ''; position: absolute; left: 0.45rem; top: 0.95rem; width: 0.7rem; border-top: 1px dashed var(--night-rule); }
.tree-node:last-child::before { bottom: auto; height: 0.95rem; }
.tree-root > .tree-node { padding-left: 0; }
.tree-root > .tree-node::before, .tree-root > .tree-node::after { display: none; }
.tree-label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0.3rem 0; }
.tree-badge { padding: 0.12rem 0.45rem; border-radius: 4px; background: var(--night-3); }
.tree-badge--tag { color: var(--syn-tag); font-weight: 600; }
.tree-badge--implicit { color: var(--night-mute); font-style: italic; }
.tree-badge--group { background: var(--night-mute); color: var(--night); }
.tree-badge--id { color: #f28b82; } .tree-badge--class { color: var(--syn-str); }
.tree-badge--attr { color: var(--syn-attr); } .tree-badge--text { color: #b5c7d3; font-style: italic; }
.tree-badge--mult { background: var(--syn-num); color: var(--night); font-weight: 600; }
.tree-empty { color: var(--night-mute); }

/* Meter */
.pg-meter { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px dashed var(--night-rule); font-size: 0.82rem; color: var(--night-mute); }
.meter-row strong { font-family: var(--f-mono); color: var(--night-ink); font-size: 1rem; }
.meter-ring { position: relative; width: 150px; height: 150px; margin: 1.5rem auto 1rem; }
.meter-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter-ring circle { fill: none; stroke-width: 10; }
.meter-ring .track { stroke: var(--night-3); }
.meter-ring .fill { stroke: var(--syn-str); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 600ms var(--ease), stroke 300ms; }
.meter-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.meter-val span { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.meter-val small { font-family: var(--f-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--night-mute); margin-top: 0.3rem; }
.meter-note { font-size: 0.72rem; color: var(--night-mute); margin-top: auto; line-height: 1.5; }

/* ============================================================ */
/*  CSS LAB                                                     */
/* ============================================================ */
.cssl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: stretch; }
.css-input {
  width: 100%; font-family: var(--f-mono); font-size: 0.95rem; color: var(--emmet);
  background: #fffdf8; border: 1px solid var(--rule-strong); border-radius: 10px; padding: 0.85rem 1rem; outline: none;
  transition: box-shadow 200ms;
}
.css-input:focus { box-shadow: 0 0 0 4px var(--emmet-dim); }
.css-out { min-height: 180px; }
.cssl-right { display: flex; flex-direction: column; }
.css-stage {
  flex: 1; min-height: 320px; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background-color: #fffdf8; border: 1px solid var(--rule);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.css-box { transition: all 400ms var(--ease); font-family: var(--f-display); }
.css-table-wrap { margin-top: 3rem; }
.footnote { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-mute); }

/* ============================================================ */
/*  TAB EDITOR                                                  */
/* ============================================================ */
.tabed { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: stretch; }
.win--big { display: flex; flex-direction: column; }
.ed-mode { display: flex; background: var(--night); border-radius: 6px; padding: 2px; }
.ed-mode button { font-family: var(--f-mono); font-size: 0.66rem; padding: 0.25rem 0.6rem; border-radius: 4px; color: var(--night-mute); }
.ed-mode button.active { background: var(--night-3); color: var(--syn-op); }
.ed-body { display: flex; flex: 1; min-height: 380px; }
.ed-gutter {
  padding: 1rem 0.6rem 1rem 1rem; font-family: var(--f-mono); font-size: 0.82rem; line-height: 1.7; color: var(--night-mute);
  opacity: 0.5; text-align: right; white-space: pre; user-select: none; border-right: 1px solid var(--night-rule); min-width: 3rem;
}
.ed-area {
  flex: 1; resize: none; border: none; outline: none; background: transparent; color: var(--night-ink);
  font-family: var(--f-mono); font-size: 0.82rem; line-height: 1.7; padding: 1rem; white-space: pre; overflow: auto; tab-size: 2;
  caret-color: var(--syn-op);
}
.ed-status {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 1rem; background: var(--emmet); color: #f0f6ea;
  font-family: var(--f-mono); font-size: 0.68rem;
}
.ed-status kbd { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); font-size: 0.9em; }
.ed-hint { opacity: 0.75; }
.tabed-side { display: flex; flex-direction: column; position: relative; }
.ed-frame { border-radius: 14px; border: 1px solid var(--rule) !important; }
.toast {
  position: absolute; left: 50%; bottom: 1rem; transform: translate(-50%, 10px);
  background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 0.75rem;
  padding: 0.6rem 1rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: all 300ms var(--ease); white-space: nowrap; max-width: 95%; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--syn-str); font-weight: 500; }

.wrapdemo { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule-strong); }
.wrapdemo h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.wrapdemo-head p { color: var(--ink-mute); max-width: 64ch; margin-bottom: 1.75rem; }
.wrapdemo-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; }
.wrap-text {
  width: 100%; min-height: 130px; resize: vertical; margin-bottom: 1rem;
  font-family: var(--f-mono); font-size: 0.88rem; line-height: 1.6; color: var(--ink);
  background: #fffdf8; border: 1px solid var(--rule); border-radius: 10px; padding: 0.85rem 1rem; outline: none;
}
.wrap-text:focus { border-color: var(--rule-strong); }
#wrapOut { min-height: 260px; }

/* ============================================================ */
/*  RACE                                                        */
/* ============================================================ */
.race { display: flex; flex-direction: column; gap: 1.6rem; }
.race-row { display: grid; grid-template-columns: 220px 1fr 90px; gap: 1.5rem; align-items: center; }
.race-name h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.race-name code { font-size: 0.68rem; color: var(--emmet); overflow-wrap: anywhere; }
.race-bars { display: flex; flex-direction: column; gap: 6px; }
.bar-line { display: flex; align-items: center; gap: 0.65rem; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-mute); }
.bar-line span { white-space: nowrap; }
.bar { height: 22px; border-radius: 5px; width: 0; transition: width 1.4s var(--ease); }
.bar--manual { background: var(--paper-deep); }
.bar--emmet { background: var(--emmet); }
.race-pct { font-family: var(--f-display); font-size: 2rem; letter-spacing: -0.03em; color: var(--accent); text-align: right; line-height: 1; }
.race-pct small { display: block; font-family: var(--f-mono); font-size: 0.6rem; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.25rem; }

/* ============================================================ */
/*  QUIZ                                                        */
/* ============================================================ */
.quiz { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); }
.quiz-top { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.quiz-level { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.quiz-level small { font-size: 0.4em; color: var(--night-mute); margin-left: 0.25rem; }
.quiz-dots { display: flex; gap: 6px; flex: 1; }
.quiz-dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--night-3); transition: background 300ms; cursor: pointer; }
.quiz-dots i.done { background: var(--syn-str); }
.quiz-dots i.revealed { background: var(--syn-attr); }
.quiz-dots i.current { outline: 2px solid var(--syn-op); outline-offset: 2px; }
.quiz-score { font-family: var(--f-mono); font-size: 0.8rem; color: var(--night-mute); }
.quiz-score strong { color: var(--syn-op); font-size: 1.4rem; margin-left: 0.4rem; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.quiz-grid .pg-code { background: var(--night); border-radius: 10px; min-height: 220px; border: 1px solid var(--night-rule); transition: border-color 300ms; }
.quiz.correct .quiz-answer .pg-code { border-color: var(--syn-str); box-shadow: 0 0 0 4px rgba(156,196,122,0.12); }
.quiz-actions { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.quiz-msg { flex: 1; font-family: var(--f-mono); font-size: 0.78rem; color: var(--night-mute); min-width: 200px; }
.quiz-msg.ok { color: var(--syn-str); }
.quiz-msg.hint { color: var(--syn-attr); }
.quiz.correct { animation: pop 500ms var(--ease); }
@keyframes pop { 30% { transform: scale(1.01); } }

/* ============================================================ */
/*  EDİTÖRLER                                                   */
/* ============================================================ */
.eds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ed-card { border: 1px solid var(--rule); border-radius: 12px; padding: 1.4rem; background: #fffdf8; transition: border-color 200ms, transform 300ms var(--ease); }
.ed-card:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.ed-card h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; margin: 0.8rem 0 0.35rem; }
.ed-card p { font-size: 0.88rem; color: var(--ink-mute); }
.ed-pill { font-family: var(--f-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-mute); }
.ed-pill--in { background: var(--emmet); border-color: var(--emmet); color: #f0f6ea; }

.vscode { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--rule-strong); align-items: start; }
.vscode h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.vs-list li { padding: 0.5rem 0 0.5rem 1.2rem; border-bottom: 1px dashed var(--rule); font-size: 0.92rem; color: var(--ink-mute); position: relative; }
.vs-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.vs-list strong { color: var(--ink); font-weight: 600; }
.vs-json { font-size: 0.82rem; position: sticky; top: 90px; }

/* ============================================================ */
/*  TIPS                                                        */
/* ============================================================ */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tip { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tip-bad, .tip-good { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; padding: 0.45rem 0.7rem; border-radius: 6px; font-family: var(--f-mono); overflow-wrap: anywhere; }
.tip-bad { background: rgba(178,64,31,0.08); color: var(--accent); text-decoration: line-through; text-decoration-color: rgba(178,64,31,0.4); }
.tip-good { background: var(--emmet-dim); color: var(--emmet); }
.tip-bad span, .tip-good span { font-weight: 700; text-decoration: none; }
.tip p { font-size: 0.88rem; color: var(--ink-mute); margin-top: 0.4rem; }
.tip p strong { color: var(--ink); }

/* ============================================================ */
/*  CONCLUSION + RESOURCES + FOOTER                             */
/* ============================================================ */
.conclusion { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); padding: 2.5rem 0; }
.conclusion-text { font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.45; letter-spacing: -0.015em; max-width: 34ch; font-variation-settings: "opsz" 60; }
.conclusion-text em { color: var(--accent); }
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.res { border: 1px solid var(--rule); border-radius: 12px; padding: 1.3rem; background: #fffdf8; transition: all 250ms var(--ease); }
.res:hover { border-color: var(--accent); transform: translateY(-3px); }
.res .host { font-family: var(--f-mono); font-size: 0.68rem; color: var(--accent); margin-bottom: 0.5rem; }
.res h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.35rem; }
.res p { font-size: 0.85rem; color: var(--ink-mute); }

.footer { border-top: 1px solid var(--rule-strong); padding: 2.5rem 0 3rem; font-size: 0.85rem; color: var(--ink-mute); }
.footer p { margin-bottom: 0.4rem; }
.footer strong { color: var(--ink); }
.footer a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* --- Fade-in --- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================ */
/*  RESPONSIVE                                                  */
/* ============================================================ */
@media (max-width: 1080px) {
  .nav-links { gap: 1rem; font-size: 0.66rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0.5rem clamp(1.25rem, 5vw, 4rem) 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0; width: 100%; border-bottom: 1px dashed var(--rule); font-size: 0.78rem; }
  .hero-grid, .define, .cssl, .tabed, .wrapdemo-grid, .vscode, .extras { grid-template-columns: 1fr; }
  .define-side { border-left: none; padding-left: 0; border-top: 1px dashed var(--rule); padding-top: 1.5rem; }
  .pg-panels { grid-template-columns: 1fr; }
  .pg-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .pg-meter .mini-label, .meter-note { grid-column: 1 / -1; }
  .meter-ring { grid-column: 2; grid-row: 2 / span 3; margin: 0 auto; width: 120px; height: 120px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .eds, .tips, .resources { grid-template-columns: 1fr 1fr; }
  .vs-json { position: static; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { padding-left: 0; }
  .mirror { grid-template-columns: 1fr; }
  .mirror-arrow { transform: rotate(90deg); justify-self: center; }
  .why-grid, .eds, .tips, .resources, .quiz-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 0.4rem; }
  .tl { grid-template-columns: 1fr; padding-left: 2rem; }
  .tl::before { left: calc(0.4rem - 6px); top: 1.85rem; }
  .tl-year { text-align: left; font-size: 1.6rem; }
  .race-row { grid-template-columns: 1fr 70px; }
  .race-bars { grid-column: 1 / -1; grid-row: 2; }
  .pg-meter { grid-template-columns: 1fr; }
  .meter-ring { grid-column: 1; grid-row: auto; margin: 1rem auto; }
  .ed-hint { display: none; }
  .quiz-dots i { width: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-in { opacity: 1; transform: none; }
}

