/* ============ ÖĞRENME MERKEZİ ============ */
.edu-hub {
  background: var(--paper-card);
  border: 2px solid var(--ink); border-radius: 26px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}
.edu-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 2px solid var(--ink); }
.edu-tab {
  --t: var(--yellow); --tc: var(--ink);
  display: grid; justify-items: start; align-content: start; gap: .1rem;
  padding: 1.1rem 1rem 1rem; text-align: left;
  background: var(--paper-card); border: 0; border-right: 2px solid var(--ink);
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.edu-tab:last-child { border-right: 0; }
.t-violet { --t: var(--violet); --tc: #fff; }
.t-lime { --t: var(--lime); }
.t-coral { --t: var(--coral); }
.t-yellow { --t: var(--yellow); }
.t-blue { --t: #BFD4FF; }
.t-ink { --t: var(--ink); --tc: var(--yellow); }
.edu-tab .lucide {
  width: 44px; height: 44px; padding: 9px; margin-bottom: .6rem;
  background: var(--t); color: var(--tc);
  border: 2px solid var(--ink); border-radius: 13px;
  transition: rotate .25s var(--ease), background-color .2s, color .2s;
}
.edu-tab span { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.edu-tab small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .02em; opacity: .7; }
.edu-tab:hover { background: var(--paper-2); }
.edu-tab:hover .lucide { rotate: -8deg; }
.edu-tab.active { background: var(--t); color: var(--tc); }
.edu-tab.active .lucide { background: var(--paper-card); color: var(--ink); rotate: -6deg; }
.edu-tab.active small { opacity: .85; }

.edu-panels { padding: clamp(1.2rem, 3vw, 2.4rem); }
.edu-panel { display: none; }
.edu-panel.active { display: block; animation: fade .35s ease; }

.topic-chip {
  padding: .4rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px;
  background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.topic-chip:hover { background: var(--yellow); }
.topic-chip.active { background: var(--ink); color: var(--paper); }
.qstat {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .7rem; border: 1.5px dashed var(--ink-3); border-radius: 999px;
  font-family: var(--f-mono); font-size: .78rem;
}
.qstat b { font-weight: 700; }
.qstat.streak.on { background: var(--coral); border: 1.5px solid var(--ink); }
.calc-desc { color: var(--ink-2); font-size: .98rem; max-width: 64ch; }
.calc-desc em { font-size: .92em; }

/* Soru çöz */
.quiz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem; }
.quiz-topics { display: flex; flex-wrap: wrap; gap: .45rem; }
.quiz-stats { display: flex; gap: .5rem; }
.quiz-progress { height: 9px; margin: 1.1rem 0 1.6rem; overflow: hidden; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 999px; }
.quiz-progress span { display: block; width: 0; height: 100%; background: var(--green); transition: width .4s var(--ease); }
.quiz-topic-badge {
  display: inline-block; margin-bottom: .9rem; padding: .2rem .65rem; rotate: -1.5deg;
  background: var(--yellow); border: 1.5px solid var(--ink);
  font-family: var(--f-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
.quiz-topic-badge:empty { display: none; }
.quiz-q { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; max-width: 46ch; margin-bottom: 1.4rem; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.quiz-options button { font-weight: 600; }
.quiz-options button:disabled { cursor: default; }
.quiz-options button:disabled:not(.correct):not(.wrong) { opacity: .5; }
.quiz-options button.correct { background: var(--green-soft); border-color: var(--green); }
.quiz-options button.correct::before { content: '✓'; background: var(--green); border-color: var(--green); color: #fff; }
.quiz-options button.wrong { background: var(--red-soft); border-color: var(--red); }
.quiz-options button.wrong::before { content: '✕'; background: var(--red); border-color: var(--red); color: #fff; }
.quiz-feedback { min-height: 1.6em; margin: 1.1rem 0; font-weight: 600; }
.quiz-feedback.ok { color: #1F7A50; }
.quiz-feedback.no { color: var(--red-d); }
.edu-cta {
  display: none; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 1.7rem; padding: 1rem 1.2rem;
  background: color-mix(in srgb, var(--yellow) 45%, transparent); border: 2px dashed var(--ink); border-radius: 16px;
}
.edu-cta.show { display: flex; animation: fade .35s ease; }
.edu-cta > .lucide { width: 30px; height: 30px; }
.edu-cta p { flex: 1 1 240px; font-size: .96rem; }

/* Hız oyunu */
.speed-start, .speed-game, .speed-end {
  display: grid; justify-items: center; gap: .95rem;
  max-width: 540px; margin-inline: auto; padding: .6rem 0; text-align: center;
}
.speed-hero {
  display: grid; place-items: center; width: 74px; height: 74px;
  background: var(--lime); border: 2px solid var(--ink); border-radius: var(--sketch);
  rotate: -5deg; font-size: 2rem;
}
.speed-start h3, .speed-end h3 { font-size: 1.8rem; }
.speed-levels { display: flex; gap: .5rem; }
.speed-best { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .84rem; }
.speed-bar { width: 100%; height: 14px; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.speed-bar span { display: block; height: 100%; background: var(--lime); transition: width .1s linear, background-color .3s; }
.speed-bar span.low { background: var(--red); }
.speed-meta { display: flex; gap: .6rem; }
.speed-q { font-family: var(--f-mono); font-weight: 700; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.1; letter-spacing: -.03em; }
.speed-input {
  width: 190px; padding: .4rem; text-align: center;
  background: transparent; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0;
  font-family: var(--f-mono); font-weight: 700; font-size: 2.1rem; outline: none;
}
.speed-input:focus { background: color-mix(in srgb, var(--yellow) 40%, transparent); }
.speed-input.ok { border-color: var(--green); color: var(--green); }
.speed-end-score { font-family: var(--f-display); font-size: 2.2rem; font-weight: 600; }
.speed-end-score b { color: var(--red); }
.speed-end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }

/* Günün sorusu */
.daily-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.daily-head .quiz-topic-badge { margin-bottom: 0; }
.daily-next { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); }
.daily-q { margin-top: 1rem; max-width: 58ch; }
.daily-solution { margin-top: 1.4rem; padding: 1.1rem 1.3rem 1.2rem; background: var(--yellow-soft); border-left: 3px solid var(--red); }
.daily-solution strong { display: flex; align-items: center; gap: .5rem; }
.daily-solution ol { margin: .7rem 0 1rem 1.6rem; list-style: decimal; }
.daily-solution li { padding: .15rem 0; font-family: var(--f-hand); font-weight: 700; font-size: 1.45rem; line-height: 1.25; color: var(--blue); animation: fade .35s ease; }
.daily-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }

/* Net hesapla */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; margin-top: 1.4rem; }
.calc-row { --rc: var(--ink-3); margin-bottom: 1.1rem; }
.calc-row.r-ok { --rc: var(--green); }
.calc-row.r-no { --rc: var(--red); }
.calc-row label { display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; font-weight: 600; }
.calc-row label .lucide { color: var(--rc); stroke-width: 3; }
.calc-row output { margin-left: auto; min-width: 2.6rem; padding: .05rem .55rem; text-align: center; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; font-family: var(--f-mono); font-weight: 700; }
.calc-row input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 12px;
  background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rc); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.calc-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--rc); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.calc-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.3rem 0 1rem; }
.cchip { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--f-mono); font-size: .74rem; }
.cchip.ok { background: var(--green-soft); }
.cchip.no { background: var(--red-soft); }
.cchip.blank { background: var(--paper-2); }
.cchip.total { background: var(--ink); color: var(--paper); }
.net-comment { font-family: var(--f-hand); font-weight: 700; font-size: 1.55rem; line-height: 1.2; color: var(--blue); }
.net-lost { margin-top: .35rem; font-size: .88rem; color: var(--ink-2); }
.net-circle, .tracker-ring { position: relative; flex: none; width: 190px; aspect-ratio: 1; }
.net-circle svg, .tracker-ring svg { display: block; width: 100%; rotate: -90deg; }
.net-track { fill: none; stroke: #E9E1CC; stroke-width: 10; }
.net-bar { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset .5s var(--ease); }
.net-value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.net-value strong { font-family: var(--f-display); font-size: 3rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.net-value span { margin-top: .2rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--ink-2); }

/* Formül kartları */
.flash-filter { justify-content: center; margin-bottom: 1.6rem; }
.flashcard { width: min(470px, 100%); height: 250px; margin-inline: auto; perspective: 1200px; cursor: pointer; border-radius: 10px; }
.flashcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: .75rem;
  padding: 1.6rem; text-align: center;
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flashcard-front {
  background:
    linear-gradient(var(--red), var(--red)) no-repeat 0 2.6rem / 100% 2px,
    repeating-linear-gradient(transparent 0 31px, rgba(194, 66, 127, .1) 31px 32px) 0 2.6rem,
    #fff;
}
.flashcard-back { background: var(--yellow); transform: rotateY(180deg); }
.flash-cat { padding: .2rem .65rem; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.flashcard h4 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.flash-hint { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-2); }
.flash-label { font-family: var(--f-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.flashcard-back p { font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.05rem, 3.2vw, 1.5rem); line-height: 1.35; }
.flash-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.7rem; }
.flash-btn { display: grid; place-items: center; width: 46px; height: 46px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: background-color .15s; }
.flash-btn:hover { background: var(--yellow); }
.flash-count { font-family: var(--f-mono); font-size: .9rem; }

/* İpuçları */
.tips-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.edu-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.edu-head h3 { font-size: 1.4rem; }
.edu-head .lucide { width: 24px; height: 24px; }
.tips-side { padding: 1.4rem; background: #fff; border: 2px solid var(--ink); border-radius: 18px; }
.tip-slider { min-height: 150px; }
.tip { display: none; }
.tip.active { display: block; animation: fade .35s ease; }
.tip strong { display: block; margin-bottom: .4rem; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; }
.tip b { background: var(--yellow); padding: 0 .25em; }
.tip-dots { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tip-dots button { width: 12px; height: 12px; padding: 0; background: none; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; transition: width .25s var(--ease), background-color .2s; }
.tip-dots button.active { width: 30px; background: var(--ink); }
.fact-side { padding: 1.4rem; background: #D6E6FF; border-radius: 2px 2px 20px 2px; box-shadow: 4px 7px 0 rgba(20, 40, 77, .14); rotate: 1.4deg; }
#factText { margin-bottom: 1.1rem; font-family: var(--f-hand); font-weight: 700; font-size: 1.6rem; line-height: 1.18; }

/* ============ VELİ REHBERİ ============ */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); counter-reset: guide; border-top: 2px solid var(--ink); }
.guide-card {
  counter-increment: guide;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.2rem; align-content: start;
  padding: 1.5rem .3rem; text-align: left;
  background: none; border: 0; border-bottom: 1.5px solid var(--ink); cursor: pointer;
}
.guide-card::before {
  content: counter(guide, decimal-leading-zero);
  grid-row: 1 / span 4;
  font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; line-height: .95;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  transition: color .2s, -webkit-text-stroke-color .2s;
}
.guide-card:hover::before { color: var(--red); -webkit-text-stroke-color: var(--red); }
.guide-icon { display: none; }
.guide-card > * { grid-column: 2; }
.guide-tag { font-family: var(--f-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--red-d); }
.guide-card strong { margin: .35rem 0; font-family: var(--f-display); font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.guide-card:hover strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .4em; text-underline-offset: -.18em; text-decoration-skip-ink: none; }
.guide-summary { color: var(--ink-2); font-size: .95rem; }
.guide-read { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-weight: 700; font-size: .88rem; transition: gap .15s; }
.guide-card:hover .guide-read { gap: .7rem; }

/* ============ LGS KONU TAKİBİ ============ */
.tracker {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(1.3rem, 3.5vw, 2.6rem);
  background: var(--paper-card);
  border: 2px solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
}
.tracker-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.tracker-head h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.tracker-head p:not(.eyebrow) { margin-top: .6rem; color: var(--ink-2); max-width: 54ch; }
.tracker-ring { width: 150px; }
.tracker-ring .net-bar { stroke: var(--green); }
.tracker-ring .net-value strong { font-size: 2.2rem; }
.tracker-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4rem; margin: 1.7rem 0; border-top: 1.5px solid var(--rule); }
.tracker-list li { border-bottom: 1.5px solid var(--rule); }
.tracker-item { position: relative; display: flex; align-items: center; gap: .85rem; padding: .78rem .2rem; cursor: pointer; }
.tracker-item input { position: absolute; opacity: 0; pointer-events: none; }
.tracker-box { display: grid; place-items: center; flex: none; width: 27px; height: 27px; background: #fff; border: 2px solid var(--ink); border-radius: var(--sketch); transition: background-color .15s; }
.tracker-box .lucide { width: 20px; height: 20px; color: var(--green); stroke-width: 3.6; opacity: 0; scale: .3; transition: opacity .15s, scale .25s var(--ease); }
.tracker-item:hover .tracker-box { background: var(--yellow); }
.tracker-item input:checked + .tracker-box { background: var(--green-soft); }
.tracker-item input:checked + .tracker-box .lucide { opacity: 1; scale: 1.1; }
.tracker-item input:focus-visible + .tracker-box { outline: 3px solid var(--blue); outline-offset: 3px; }
.tracker-text strong { display: block; font-size: .99rem; line-height: 1.3; }
.tracker-text small { font-size: .82rem; color: var(--ink-2); }
.tracker-item input:checked ~ .tracker-text strong { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.tracker-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.tracker-foot p { font-family: var(--f-hand); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--blue); }

/* ============ DUYARLI ============ */
@media (max-width: 900px) {
  .edu-tabs { grid-template-columns: repeat(3, 1fr); }
  .edu-tab:nth-child(3) { border-right: 0; }
  .edu-tab:nth-child(-n + 3) { border-bottom: 2px solid var(--ink); }
  .guide-grid, .tracker-list, .tips-layout { grid-template-columns: 1fr; }
  .fact-side { rotate: 0deg; }
}
@media (max-width: 760px) {
  .edu-hub, .tracker { box-shadow: 6px 6px 0 var(--ink); border-radius: 20px; }
  .edu-tab { justify-items: center; padding: .8rem .3rem .7rem; text-align: center; }
  .edu-tab .lucide { width: 38px; height: 38px; padding: 8px; margin-bottom: .4rem; }
  .edu-tab span { font-size: .8rem; }
  .edu-tab small { display: none; }
  .calc-layout { grid-template-columns: 1fr; justify-items: center; }
  .calc-rows { width: 100%; }
  .calc-result { order: -1; }
  .net-circle { width: 160px; }
  .tracker-head { flex-direction: column-reverse; align-items: flex-start; gap: 1.2rem; }
  .tracker-ring { width: 120px; }
  .tracker-ring .net-value strong { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .quiz-options { grid-template-columns: 1fr; }
  .flashcard { height: 230px; }
}
