/* KitAppLa — tasarım sistemi.
   Yazı tipi <head>'de (fragments :: head) preconnect ile yüklenir; CSS içinden @import
   ikinci bir zincirleme istek açıp ilk çizimi geciktiriyordu. */

:root{
  color-scheme: light;
  --bg:#F3EAD3; --surface:#FCF8EE; --surface2:#FBF3E2; --line:#E6D8BC;
  --ink:#3E2723; --muted:#8C7B6B; --faint:#B4A594;
  --accent:#C65D47; --accent-strong:#a84734; --accent-soft:#F4DCD3;
  --sage:#8FA89B; --sage-soft:#E1E9E2; --sage-ink:#48594F;
  --espresso:#3E2723;
  --radius:14px; --radius-lg:18px;
  --shadow:0 14px 30px rgba(62,39,35,.10);
  --shadow-lg:0 20px 44px rgba(62,39,35,.16);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  color-scheme: dark;
  --bg:#211B17; --surface:#2A231D; --surface2:#2F271F; --line:#3A2F27;
  --ink:#ECE3D4; --muted:#A99C88; --faint:#8A7C6A;
  --accent:#D6785F; --accent-soft:#3A2A23; --sage-soft:#26312B; --sage-ink:#B7C9BD;
  --shadow:0 14px 30px rgba(0,0,0,.4); --shadow-lg:0 20px 44px rgba(0,0,0,.5);
}}
:root[data-theme="dark"]{ color-scheme: dark; }
:root[data-theme="light"]{ color-scheme: light; }

*{ box-sizing:border-box; scrollbar-width:thin; scrollbar-color:var(--muted) transparent; }
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-track{ background:transparent; }
*::-webkit-scrollbar-thumb{ background:var(--muted); border:3px solid transparent; border-radius:999px; background-clip:content-box; }
*::-webkit-scrollbar-thumb:hover{ background-color:var(--sage); }
*::-webkit-scrollbar-corner{ background:transparent; }
html{ scroll-behavior:smooth; height:100%; }
body{ margin:0; background:var(--bg); color:var(--ink);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
a{ color:var(--accent); text-decoration:none; } a:hover{ color:var(--accent-strong); }
img{ max-width:100%; }
h1,h2,h3{ text-wrap:balance; }

.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 32px; }
.container-narrow{ width:100%; max-width:820px; margin:0 auto; padding:0 32px; }

/* NAV */
.nav{ display:flex; align-items:center; gap:28px; padding:16px 32px; background:var(--surface);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; width:100%; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.4px; font-size:20px; color:var(--ink); }
.brand svg{ display:block; }
.nav-links{ display:flex; align-items:center; gap:4px; font-size:14px; font-weight:700; }
.nav-links a{ color:var(--muted); padding:8px 14px; border-radius:9px; }
.nav-links a:hover{ color:var(--ink); background:var(--bg); }
.nav-links a.active{ color:var(--accent); background:var(--accent-soft); }
.nav-spacer{ flex:1; }
.avatar{ width:38px; height:38px; border-radius:50%; background:var(--sage); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; }

/* BUTONLAR */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
  font-family:inherit; font-size:15px; font-weight:800; border-radius:12px; padding:12px 22px;
  border:1px solid transparent; text-decoration:none; }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-strong); color:#fff; }
.btn-soft{ background:var(--surface); color:var(--ink); border-color:var(--line); }
.btn-soft:hover{ color:var(--ink); }
.btn-sage{ background:var(--sage); color:#fff; }
.btn-block{ display:flex; width:100%; }
.btn-sm{ padding:9px 15px; font-size:13px; border-radius:10px; }

/* KART */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); }
.card-pad{ padding:20px; }

/* ROZET */
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700;
  border-radius:8px; padding:5px 10px; }
.badge-sage{ color:var(--sage-ink); background:var(--sage-soft); }
.badge-accent{ color:var(--accent); background:var(--accent-soft); }
.badge-muted{ color:var(--muted); background:var(--bg); border:1px solid var(--line); }

/* KİTAP KAPAK (renk title'dan) */
.cover{ border-radius:10px; box-shadow:inset -7px 0 0 rgba(0,0,0,.16); display:flex;
  flex-direction:column; justify-content:flex-end; padding:12px; color:#F3E7D6; }
.cover .ct{ font-size:14px; font-weight:800; line-height:1.1; }
.cover .ca{ font-size:10px; margin-top:3px; opacity:.85; }

/* FORM */
.field{ margin-bottom:16px; }
.label{ font-size:13px; font-weight:700; margin-bottom:6px; display:block; }
.input, textarea.input, select.input{ width:100%; background:var(--surface); border:1px solid var(--line);
  border-radius:12px; padding:13px 14px; font-size:14px; font-weight:600; color:var(--ink);
  font-family:inherit; }
.input:focus{ outline:2px solid var(--accent); outline-offset:1px; border-color:transparent; }
textarea.input{ min-height:84px; resize:vertical; }
select.input{ appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:42px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C7B6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:16px; }
select.input::-ms-expand{ display:none; }
select.input option{ background:var(--surface); color:var(--ink); }
select.input option:checked{ background:var(--sage); color:#fff; }
input[type="file"].input{ padding:7px; cursor:pointer; }
input[type="file"].input::file-selector-button{ margin-right:12px; padding:8px 12px; border:0;
  border-radius:8px; background:var(--accent-soft); color:var(--accent); cursor:pointer;
  font:700 13px/1 'Plus Jakarta Sans',system-ui,sans-serif; }
input[type="file"].input::file-selector-button:hover{ background:var(--accent); color:#fff; }
input[type="file"].input::-webkit-file-upload-button{ margin-right:12px; padding:8px 12px; border:0;
  border-radius:8px; background:var(--accent-soft); color:var(--accent); cursor:pointer;
  font:700 13px/1 'Plus Jakarta Sans',system-ui,sans-serif; }

/* SAYI ALANLARI VE ADET ARTTIRMA / AZALTMA (STEPPER) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: border-color .15s ease, box-shadow .15s ease;
  user-select: none;
  -webkit-user-select: none;
  width: fit-content;
}
.qty-stepper:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
  flex-shrink: 0;
}
.qty-dec {
  border-right: 1px solid var(--line);
}
.qty-inc {
  border-left: 1px solid var(--line);
}
.qty-btn:hover:not(:disabled) {
  background: var(--surface2);
  color: var(--accent);
}
.qty-btn:active:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.qty-btn:disabled {
  opacity: .32;
  cursor: not-allowed;
  color: var(--muted);
}
.qty-input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 0;
  margin: 0;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ONAY KUTUSU VE RADYO BUTONLARI (CHECKBOX & RADIO) */
input[type="checkbox"], input[type="radio"]{
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  background-color: var(--surface2);
  border: 1.5px solid var(--line);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  accent-color: var(--accent);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
input[type="checkbox"]{
  border-radius: 5px;
}
input[type="radio"]{
  border-radius: 50%;
}
input[type="checkbox"]:hover, input[type="radio"]:hover{
  border-color: var(--accent);
}
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
input[type="checkbox"]:checked{
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 11px;
}
input[type="radio"]:checked{
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Ccircle cx='8' cy='8' r='3.5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 8px 8px;
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled{
  opacity: .45;
  cursor: not-allowed;
}

/* YARDIMCI */
.muted{ color:var(--muted); }
.stack{ display:flex; flex-direction:column; }
.row{ display:flex; align-items:center; }
.gap-8{ gap:8px; } .gap-10{ gap:10px; } .gap-12{ gap:12px; } .gap-14{ gap:14px; } .gap-16{ gap:16px; }
.grid{ display:grid; }
.section{ padding:64px 0; }
.eyebrow{ font-size:13px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent); }

.alert{ border-radius:12px; padding:13px 15px; font-size:14px; font-weight:600; margin-bottom:16px; }
.alert-error{ background:var(--accent-soft); color:var(--accent-strong); }
.alert-ok{ background:var(--sage-soft); color:var(--sage-ink); }

/* FOOTER */
.footer{ border-top:1px solid var(--line); padding:36px 32px; display:flex; align-items:center;
  justify-content:space-between; flex-wrap:wrap; gap:16px; margin-top:auto; width:100%; }
.footer .links{ display:flex; gap:24px; font-size:14px; color:var(--muted); font-weight:600; }

/* Uygulama navigasyonu tek satıra sığmayacak kadar uzun (üye ~1136px,
   yönetici ~1232px). Bağlantıları gizlemek yerine alta kaydırılabilir bir
   şeride alıyoruz ki dar ekranda da her bölüme erişilebilsin. */
@media (max-width:1280px){
  .nav{ flex-wrap:wrap; gap:12px; padding:12px 22px; }
  .nav-spacer{ display:none; }
  .nav > .row{ margin-left:auto; gap:10px; }
  .nav-links{ order:3; width:100%; overflow-x:auto; gap:2px; scrollbar-width:none; }
  .nav-links::-webkit-scrollbar{ display:none; }
  .nav-links a{ white-space:nowrap; padding:7px 11px; }
}
@media (max-width:720px){
  .nav{ padding:12px 18px; }
  .btn{ padding:10px 16px; font-size:14px; }
  .btn-sm{ padding:8px 13px; }
  .container,.container-narrow{ padding:0 18px; }
  .section{ padding:44px 0; }
  .footer{ padding:28px 18px; }
}
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

/* Giriş/kayıt ekranı: geniş ekranda iki sütun, dar ekranda tek sütun */
.split-auth{ display:grid; grid-template-columns:minmax(0,520px) 1fr; width:100%; flex:1; }
@media (max-width:860px){
  .split-auth{ grid-template-columns:1fr; }
  .split-auth > div:first-child{ padding:28px !important; min-height:auto; }
  .split-auth > div:first-child > div{ margin-top:22px !important; }
  .split-auth > div:first-child div[style*="font-size:38px"]{ font-size:27px !important; }
  .split-auth > div:last-child{ padding:28px !important; }
}

/* ÇOK SÜTUNLU DÜZENLER
   Sabit piksel sütunlar dar ekranda taşıyordu; hepsi tek sütuna iner. */
.split-side{ display:grid; grid-template-columns:244px 1fr; gap:28px; align-items:start; }
.split-main{ display:grid; grid-template-columns:1fr 320px; gap:28px; align-items:start; }
.split-detail{ display:grid; grid-template-columns:300px 1fr 320px; gap:32px; align-items:start; }
.split-hero{ display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; }
.duo{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.duo-sm{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.split-qty{ display:grid; grid-template-columns:140px 1fr; gap:16px; }

@media (max-width:980px){
  .split-detail{ grid-template-columns:1fr; gap:24px; }
  .split-main{ grid-template-columns:1fr; gap:24px; }
  .split-hero{ grid-template-columns:1fr; gap:28px; }
}
@media (max-width:720px){
  .split-side{ grid-template-columns:1fr; gap:20px; }
  .duo, .duo-sm, .split-qty{ grid-template-columns:1fr; }
}

/* Sabit sütun sayıları dar ekranda daralıyor: kademeli olarak azalt */
.cols-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.cols-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.cols-3-sm{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:900px){
  .cols-4{ grid-template-columns:repeat(2,1fr); }
  .cols-3{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .cols-3-sm{ grid-template-columns:1fr; }
}

/* Ana sayfa görseli dekoratiftir: dar ekranda kırpılır, taşma yapmaz */
.hero-art{ position:relative; height:420px; }
@media (max-width:980px){
  .hero-art{ height:340px; overflow:hidden; border-radius:28px; }
}
@media (max-width:560px){
  .hero-art{ height:280px; }
}

/* ---------- PANO ---------- */
.pano{ padding-top:32px; padding-bottom:56px; display:flex; flex-direction:column; gap:22px; }
.pano-ust{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.pano-baslik{ font-size:28px; font-weight:800; letter-spacing:-.6px; margin:0; }
.pano-alt-baslik{ font-weight:500; margin:4px 0 0; }
.pano-istatistik{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.stat{ display:flex; flex-direction:column; gap:10px; }
.stat-etiket{ font-size:13px; font-weight:700; color:var(--muted); }
.stat-deger{ display:flex; align-items:baseline; gap:6px; }
.stat-deger b{ font-size:34px; font-weight:800; line-height:1; color:var(--accent); }
.stat-deger span{ font-size:15px; font-weight:700; color:var(--muted); }
.ilerleme{ height:6px; border-radius:999px; background:var(--bg); overflow:hidden; margin-top:auto; }
.ilerleme > span{ display:block; height:100%; border-radius:inherit; background:var(--accent); }
.stat-durum{ font-size:22px; font-weight:800; line-height:1.1; color:var(--ink); }
.stat-durum-iyi{ color:var(--sage-ink); }
.stat-not{ font-size:13px; font-weight:500; color:var(--muted); line-height:1.5; margin:0; }
.stat-not a{ font-weight:700; white-space:nowrap; }
.stat-ogrenci{ background:var(--sage-soft); border-color:transparent; }

.pano-bolum{ padding:20px 20px 8px; }
.pano-bolum-bas{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.pano-bolum-bas h2, .grup-bas h2{ font-size:16px; font-weight:800; margin:0; }
.gorevler{ list-style:none; margin:0; padding:0; }
.gorevler li + li{ border-top:1px solid var(--line); }
.gorevler a{ display:flex; align-items:center; gap:14px; padding:12px 4px; color:var(--ink); font-weight:600; font-size:14px; }
.gorevler a:hover{ color:var(--accent); }
.gorevler b{ min-width:30px; height:30px; padding:0 8px; border-radius:9px; display:inline-flex; align-items:center;
  justify-content:center; background:var(--accent-soft); color:var(--accent); font-weight:800; }
.gorevler span:not(.ok){ flex:1; }
.pano-bos{ margin:4px 0 12px; font-weight:500; font-size:14px; }
.ok{ color:var(--faint); font-weight:700; transition:transform .15s ease; }
a:hover > .ok{ transform:translateX(3px); color:var(--accent); }

.pano-gruplar{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.grup{ display:flex; flex-direction:column; gap:4px; }
.grup-bas{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.grup-ikon{ width:34px; height:34px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center;
  background:var(--accent-soft); color:var(--accent); flex-shrink:0; }
.grup-link{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; margin:0 -12px;
  border-radius:12px; color:var(--ink); }
.grup-link:hover{ background:var(--bg); color:var(--ink); }
.grup-link b{ display:block; font-size:15px; font-weight:800; }
.grup-link small{ display:block; font-size:13px; font-weight:500; color:var(--muted); margin-top:2px; }
.pano-dip{ text-align:center; font-size:13px; font-weight:600; margin:0; }

@media (max-width:900px){
  .pano-istatistik{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat-ogrenci{ grid-column:1 / -1; }
  .pano-gruplar{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .pano{ padding-top:22px; gap:16px; }
  .pano-baslik{ font-size:24px; }
  .pano-eylem{ width:100%; }
  .pano-eylem .btn{ flex:1; }
  .stat-deger b{ font-size:28px; }
  .stat{ padding:16px; }
}

/* ---------- MOBİL MENÜ ----------
   Dar ekranda üst satır (marka + eylemler) tek sıraya sığmıyor, bağlantı şeridi de sağdan
   kesildiği hâlde kaydırılabildiği anlaşılmıyordu. "Çıkış" profil sayfasına taşındı; şeridin
   sağ kenarı soluklaşarak devam ettiğini gösterir, etkin sekme görünür alana kaydırılır. */
@media (max-width:1280px){
  .nav-links{ -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
              mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
              padding-right:28px; scroll-snap-type:x proximity; }
  .nav-links a{ scroll-snap-align:start; }
}
@media (max-width:560px){
  .nav .brand{ font-size:18px; }
  .nav-cikis{ display:none; }
  .nav > .row .btn-sm{ padding:8px 12px; }
}
