@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700;800&family=Varela+Round&display=swap');

:root{
  color-scheme:light;
  --bg:#f7fbff;
  --card:#ffffff;
  --text:#10213f;
  --body:#1f2937;
  --muted:#526173;
  --border:#dce6f2;
  --focus:#fbbf24;
  --math:#2563eb;
  --turkish:#ef4444;
  --life:#16a34a;
  --english:#7c3aed;
  --green:#20c878;
  --green-dark:#0d8f5f;
  --sky:#38bdf8;
  --yellow:#fff4a8;
  --soft-blue:#eff6ff;
  --soft-red:#fff1f2;
  --soft-green:#ecfdf5;
  --soft-purple:#f5f3ff;
  --soft-yellow:#fffbea;
  --shadow:0 8px 18px rgba(15,23,42,.07);
  --shadow-strong:0 18px 44px rgba(15,23,42,.11);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  min-width:320px;
  margin:0;
  overflow-x:hidden;
  background:linear-gradient(180deg,#ffffff 0%,var(--bg) 48%,#ffffff 100%)!important;
  color:var(--body)!important;
  font-family:Quicksand,"Varela Round",Arial,sans-serif!important;
  font-size:17px!important;
  line-height:1.55!important;
  letter-spacing:0!important;
}
a{color:inherit}
[hidden]{display:none!important}
.container,.nav{width:min(1120px,calc(100% - 32px));margin-inline:auto}

.site-header{
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid var(--border)!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04)!important;
  backdrop-filter:saturate(1.2) blur(10px);
}
.nav{
  min-height:76px;
  display:flex;
  align-items:center!important;
  justify-content:space-between;
  gap:28px;
}
.logo{display:inline-flex;align-items:center;gap:10px;color:#111827!important;font-size:1.08rem!important;font-weight:800!important;text-decoration:none;white-space:nowrap}
.logo-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:14px;background:var(--green);color:#fff;box-shadow:inset 0 -3px 0 rgba(0,0,0,.12),0 8px 18px rgba(32,200,120,.24)!important}
.nav-links{display:flex;align-items:center;justify-content:flex-end;gap:16px!important;min-width:0;overflow-x:auto;scrollbar-width:thin}
.nav-links a{display:inline-flex;min-height:48px;align-items:center;justify-content:center;flex:0 0 auto;border-radius:999px;color:#344154!important;font-size:16px!important;font-weight:800!important;text-decoration:none;white-space:nowrap}
.nav-links a:not(.btn):hover,.nav-links a.active{color:var(--green-dark)!important;background:var(--soft-green)}

h1,h2,h3,.hero-copy h1,.theme-title h2,.section-head h2{color:var(--text)!important;letter-spacing:0!important}
h1,.hero-copy h1{font-size:clamp(28px,4vw,30px)!important;font-weight:800!important;line-height:1.16!important;margin:0 0 14px}
h2,.theme-title h2,.section-head h2{font-size:clamp(24px,2.4vw,28px)!important;font-weight:800!important;line-height:1.2!important;margin:0 0 10px}
h3,.skill-card strong,.exam-card h3,.student-card strong{font-size:20px!important;font-weight:800!important;line-height:1.25!important;margin:0 0 8px}
p,.lead,.muted,.skill-card small,.theme-title p,.theme-note,.student-card small{line-height:1.55!important}
.lead{max-width:760px;margin:0;color:var(--muted);font-size:18px!important;font-weight:600}
.muted{color:var(--muted);font-weight:600}

.btn,.grade-strip a,.quick-links a,.tabs a,.bank-band a{
  display:inline-flex;
  min-height:56px!important;
  align-items:center;
  justify-content:center;
  padding:0 24px!important;
  border:2px solid transparent;
  border-radius:18px!important;
  font-size:17px!important;
  font-weight:800!important;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  white-space:normal;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease!important;
}
.btn:hover,.grade-strip a:hover,.quick-links a:hover,.tabs a:hover,.bank-band a:hover{transform:translateY(-2px)!important;box-shadow:0 12px 24px rgba(15,23,42,.11)!important}
.btn:focus-visible,a:focus-visible,input:focus-visible{outline:4px solid var(--focus)!important;outline-offset:4px!important}
.btn-primary,.grade-strip a.active,.tabs a.active{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}
.btn-primary:hover{background:var(--green-dark)!important;border-color:var(--green-dark)!important}
.btn-light,.btn-soft{background:#fff!important;border-color:var(--green)!important;color:var(--green-dark)!important}
.btn-blue{background:var(--math)!important;border-color:var(--math)!important;color:#fff!important}

.hero,.math-hero,.page-hero{
  position:relative;
  padding-block:54px 48px!important;
  overflow:hidden;
  background:linear-gradient(135deg,#ffffff 0%,#ecfdf5 46%,#eff6ff 100%)!important;
  border-bottom:1px solid var(--border);
}
.hero::after,.math-hero::after,.page-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,var(--math),var(--turkish),var(--life),var(--english))}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:42px!important;align-items:center!important}
.hero-actions,.card-actions,.cta-row{display:flex;flex-wrap:wrap;gap:18px 40px;margin-top:24px}
.breadcrumb{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px;color:#64748b!important;font-size:15px;font-weight:800!important}
.eyebrow,.meb-hero-badge{display:inline-flex;min-height:36px;align-items:center;margin:0 0 12px;padding:0 14px;border:1px solid #bbf7d0;border-radius:999px;background:var(--soft-green);color:var(--green-dark);font-size:14px;font-weight:800;text-transform:none}

.section,.main-section,.exam-section{padding:42px 0!important;background:#fff}
.section.soft{background:var(--bg)!important}
.section-head{max-width:780px;margin-bottom:22px}
.grid-auto,.grid-3,.student-cards,.exam-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:22px!important}
.card,.stat-card,.student-card,.search-row,.theme-card,.exam-card,.today-panel{
  background:var(--card)!important;
  border:2px solid var(--border)!important;
  border-radius:22px!important;
  box-shadow:var(--shadow)!important;
}
.card{display:flex;min-height:250px;flex-direction:column;padding:24px!important}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.badge{display:inline-grid;min-width:48px;height:48px;place-items:center;border-radius:16px;background:var(--soft-blue);color:var(--math);font-weight:800}
.small{color:var(--muted);font-size:14px;font-weight:800}
.pill-row{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0}
.pill{display:inline-flex;min-height:34px;align-items:center;padding:0 12px;border-radius:999px;background:#f8fafc;border:1px solid var(--border);color:#344154;font-size:14px;font-weight:800}
.card-actions{margin-top:auto;padding-top:22px}
.card-actions .btn{flex:1 1 180px}

.accent-coral{border-color:rgba(37,99,235,.28)!important;background:linear-gradient(180deg,#fff,#eff6ff)!important}
.accent-teal{border-color:rgba(239,68,68,.24)!important;background:linear-gradient(180deg,#fff,#fff1f2)!important}
.accent-gold{border-color:rgba(22,163,74,.24)!important;background:linear-gradient(180deg,#fff,#ecfdf5)!important}
.accent-blue{border-color:rgba(124,58,237,.24)!important;background:linear-gradient(180deg,#fff,#f5f3ff)!important}
.accent-coral .badge{background:var(--soft-blue);color:var(--math)}
.accent-teal .badge{background:var(--soft-red);color:var(--turkish)}
.accent-gold .badge{background:var(--soft-green);color:var(--life)}
.accent-blue .badge{background:var(--soft-purple);color:var(--english)}

.stat-section{position:relative;padding-block:26px 34px!important;background:#fff!important}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.stat-card{display:grid;min-height:100px;align-content:center;text-align:center;padding:18px!important}
.stat-card strong{color:#111827!important;font-size:32px!important}
.stat-card small{font-weight:800!important;color:#475569!important}
.stat-section::after{
  content:"Matematik Macerası Haritası\A A Geometri Vadisi  •  B Sayılar Köprüsü  •  C İşlem Kalesi\A D Ölçme Pazarı  •  E Simetri Bahçesi  •  F Veri Limanı";
  white-space:pre-line;
  display:block;
  width:min(1120px,calc(100% - 32px));
  margin:24px auto 0;
  padding:24px 28px;
  border:2px solid rgba(37,99,235,.16);
  border-radius:22px;
  background:linear-gradient(135deg,#fff,var(--soft-yellow) 38%,var(--soft-blue));
  box-shadow:var(--shadow-strong);
  color:var(--text);
  font-size:17px;
  font-weight:800;
  line-height:1.7;
  text-align:center;
}

.today-panel{padding:24px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important}
.today-card{display:grid;gap:10px;padding:18px;border:2px solid #bbf7d0;border-radius:18px;background:linear-gradient(135deg,#ffffff,#ecfdf5)!important}
.grade-section{padding:18px 0;background:#fff!important;border-bottom:1px solid var(--border)}
.grade-strip,.quick-links,.tabs{display:flex;flex-wrap:wrap;gap:12px 18px}
.grade-strip a,.quick-links a,.tabs a{min-height:48px!important;padding:0 16px!important;border-color:#dbe3ef!important;background:#fff!important;color:#334155!important}
.grade-strip a.active,.tabs a.active{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}

.search-row{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:18px;align-items:end;margin-bottom:22px;padding:18px!important}
.search-box{display:grid;gap:8px;color:var(--muted);font-size:15px;font-weight:800}
.search-box input{width:100%;height:56px;padding:0 18px;border:2px solid #cbd5e1;border-radius:18px;background:#fff;color:var(--text);font:inherit;font-weight:700;outline:none}

.theme-card{--progress:0%;position:relative!important;overflow:hidden!important;padding:30px!important;margin-bottom:30px!important;scroll-margin-top:96px}
.theme-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:start;margin-bottom:18px}
.theme-badge{display:grid;width:56px;height:56px;place-items:center;border-radius:18px;background:linear-gradient(135deg,var(--green),var(--math))!important;color:#fff;font-size:24px;font-weight:800;box-shadow:0 12px 24px rgba(32,200,120,.22)!important}
.theme-meta{display:grid;gap:10px;min-width:190px!important}
.meb-chip,.theme-progress{display:inline-flex;min-height:34px;align-items:center;justify-content:center;padding:0 12px;border-radius:999px;font-size:14px;font-weight:800}
.meb-chip{border:1px solid #bbf7d0!important;background:var(--soft-green)!important;color:var(--green-dark)!important}
.theme-progress{position:relative!important;overflow:hidden!important;min-height:38px!important;padding:0 14px 11px!important;border:1px solid #cbd5e1!important;background:#f8fafc!important;color:#334155!important}
.theme-progress::before{content:"";position:absolute;left:10px;right:10px;bottom:6px;height:6px;border-radius:999px;background:#dbe3ef}
.theme-progress::after{content:"";position:absolute;left:10px;bottom:6px;width:var(--progress,0%);height:6px;border-radius:999px;background:linear-gradient(90deg,var(--green),var(--focus));transition:width 1s ease}

.skill-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;gap:18px!important}
.skill-card{position:relative;display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:14px;align-items:center;min-height:120px;padding:16px;border:2px solid var(--border)!important;border-radius:20px!important;background:#fff!important;color:var(--body);box-shadow:0 4px 12px rgba(15,23,42,.045)!important;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease!important}
.skill-card:nth-child(odd):hover{background:#fffdf0!important;border-color:#facc15!important}
.skill-card:nth-child(even):hover{background:#f0f9ff!important;border-color:#93c5fd!important}
.skill-card:hover{transform:translateY(-3px)!important;box-shadow:0 16px 32px rgba(15,23,42,.12)!important}
.skill-code{display:grid;min-width:54px;height:42px;place-items:center;border-radius:14px;background:var(--soft-green)!important;color:var(--green-dark)!important;border:1px solid rgba(32,200,120,.24)!important;font-weight:800}
.skill-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:16px;background:var(--soft-blue)!important;color:var(--text)!important}
.skill-icon svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.skill-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:4px}
.skill-footer em,.bank-band a{color:var(--green-dark)!important;font-style:normal;font-weight:800}
.mini-progress{display:inline-flex;align-items:center;gap:8px;color:#64748b;font-size:14px;font-weight:800}
.mini-progress i{display:block;width:72px!important;height:8px!important;border-radius:999px;background:#e5e7eb!important}
.mini-progress i::after{content:"";display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--green),var(--focus))!important}
.preview-tip{position:absolute;left:14px;right:14px;bottom:calc(100% + 8px);z-index:5;display:grid;gap:3px;padding:12px;border:2px solid #93c5fd!important;border-radius:16px;background:#fff!important;box-shadow:0 14px 32px rgba(15,23,42,.16)!important;color:#334155;font-size:15px;font-weight:700;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s ease .5s,transform .18s ease .5s,visibility .18s ease .5s!important}
.skill-card:hover .preview-tip{opacity:1;visibility:visible;transform:translateY(0)}

.bank-band{display:flex;align-items:center;justify-content:space-between;gap:18px 40px;margin-top:18px;padding:18px;border:2px solid rgba(32,200,120,.35)!important;border-radius:20px!important;background:linear-gradient(135deg,var(--soft-green),var(--soft-blue))!important}
.exam-card{display:grid;gap:10px;padding:22px!important;text-decoration:none;border-top:6px solid var(--math)!important}
.exam-card:nth-child(2){border-top-color:var(--life)!important}
.exam-card:nth-child(3){border-top-color:var(--focus)!important}
.site-footer{padding:24px 0;border-top:1px solid var(--border);background:#fff!important;color:var(--muted);font-weight:800}

.theme-card.is-complete{border-color:rgba(251,191,36,.62)!important;box-shadow:0 20px 46px rgba(251,191,36,.16)!important}
.theme-medal{display:inline-grid;width:38px;height:38px;place-items:center;margin-left:8px;border-radius:999px;background:radial-gradient(circle at 30% 30%,#fff7ad,#f59e0b 68%,#d97706);color:#fff;font-size:20px;font-weight:800;box-shadow:0 10px 22px rgba(245,158,11,.28)}
.theme-card.is-complete .theme-medal::before{content:"★"}
.skill-card.is-progressed .mini-progress i::after{width:var(--skill-progress,0%)!important}
.skill-card.is-mastered .skill-code{background:#fff7ed!important;border-color:rgba(245,158,11,.35)!important;color:#c2410c!important}
.skill-card.is-mastered .mini-progress::after{content:"  Yıldız";color:#c2410c;font-weight:800}

@media(max-width:980px){
  .hero-grid,.search-row{grid-template-columns:1fr}
  .theme-head{grid-template-columns:auto minmax(0,1fr)}
  .theme-meta{grid-column:1/-1;display:flex;flex-wrap:wrap}
}
@media(max-width:768px){
  .container,.nav{width:min(100% - 24px,1120px)}
  body{font-size:16px!important}
  .nav{align-items:flex-start;flex-direction:column;padding-block:14px;gap:12px}
  .nav-links{width:100%;justify-content:flex-start}
  .hero,.math-hero,.page-hero{padding-block:36px!important}
  h1,.hero-copy h1{font-size:28px!important}
  h2,.theme-title h2,.section-head h2{font-size:24px!important}
  .hero-actions,.card-actions,.cta-row,.bank-band{gap:16px}
  .hero-actions .btn,.card-actions .btn,.bank-band a{width:100%}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .grid-auto,.grid-3,.student-cards,.exam-grid,.skill-list{grid-template-columns:1fr!important}
  .theme-card{padding:20px!important}
  .skill-card{grid-template-columns:auto minmax(0,1fr)}
  .skill-icon{grid-column:1}.skill-card>span:nth-child(3){grid-column:2}
  .preview-tip{display:none}
  .stat-section::after{width:min(100% - 24px,1120px);padding:20px;font-size:16px;text-align:left}
}
