/* 33HORARY Akademi — web app (sol ağaç + sağ kart + sekmeler).
   Uygulamayla aynı marka dili; tokenlar styles.css'ten (--gold, --navy, --card...). */

/* ── Akademi hero (ilk göze çarpan: 33 Academy + Uygulamayı İndir) ── */
.ak-hero { text-align: center; padding: 40px 0 28px; }
.ak-hero .ak-emblem {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 0 60px -10px rgba(216,184,122,.55), 0 0 0 1px rgba(216,184,122,.3);
  animation: breathe 6s ease-in-out infinite;
}
.ak-hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: 3px;
  font-size: clamp(30px, 5.4vw, 46px); color: var(--gold); margin-bottom: 8px;
}
.ak-hero .ak-kicker { font-family: var(--serif); color: var(--gold-soft); letter-spacing: 2px;
  font-size: 13px; text-transform: uppercase; margin-bottom: 12px; }
.ak-hero .ak-lede { font-family: var(--serif); font-weight: 400; color: var(--gold-soft);
  font-size: clamp(20px, 3.2vw, 26px); line-height: 1.3; margin: 0 auto 12px; max-width: 620px; }
.ak-hero .ak-sub { color: var(--muted); max-width: 620px; margin: 0 auto 22px; font-size: 15.5px; }
.ak-ladder-intro { color: var(--muted); text-align: center; max-width: 680px;
  margin: 4px auto 24px; font-size: 15px; line-height: 1.6; }
.ak-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ak-hero-prog { display: flex; align-items: center; gap: 12px; justify-content: center;
  margin: 22px auto 0; max-width: 420px; color: var(--muted); font-size: 13px; }
.ak-pbar { flex: 1; height: 6px; border-radius: 999px; background: rgba(216,184,122,.14); overflow: hidden; }
.ak-pbar i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .4s ease; }

/* ── Uygulama gövdesi: 2 sütun (sol ağaç sticky + sağ sahne) ── */
.ak-app { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start;
  margin: 8px 0 40px; }

/* Sol: şelale ağaç */
.ak-tree { position: sticky; top: 78px; align-self: start;
  border: 1px solid var(--card-border); border-radius: 18px; background: var(--card);
  backdrop-filter: blur(6px); overflow: hidden; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.ak-tree-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--card-border); }
.ak-tree-head b { font-family: var(--serif); color: var(--gold-soft); font-size: 15px; letter-spacing: 1px; font-weight: 400; }
.ak-tree-head small { color: var(--muted); font-size: 12px; }
.ak-tree-toggle { display: none; background: none; border: 1px solid var(--card-border);
  border-radius: 10px; color: var(--gold); font-size: 16px; padding: 4px 10px; cursor: pointer; }
.ak-tree-body { overflow-y: auto; padding: 6px; }

.ak-bolum { border-radius: 12px; }
.ak-bolum + .ak-bolum { margin-top: 2px; }
.ak-bolum-head { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: none; border: 0; color: var(--text); cursor: pointer; padding: 11px 10px; border-radius: 10px;
  font: inherit; transition: background .15s; }
.ak-bolum-head:hover { background: rgba(216,184,122,.07); }
.ak-bolum-head .ord { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 13px; color: var(--gold); border: 1px solid var(--card-border);
  background: rgba(216,184,122,.06); }
.ak-bolum-head .t { flex: 1; font-size: 14.5px; line-height: 1.3; }
.ak-bolum-head .chev { flex: none; color: var(--muted); font-size: 12px; transition: transform .2s; }
.ak-bolum.open > .ak-bolum-head .chev { transform: rotate(90deg); color: var(--gold); }
.ak-bolum.done > .ak-bolum-head .ord { color: #7fe0a8; border-color: rgba(127,224,168,.5); }

.ak-bolum-body { display: none; padding: 2px 0 8px 10px; margin-left: 12px;
  border-left: 1px solid rgba(216,184,122,.16); }
.ak-bolum.open > .ak-bolum-body { display: block; }
.ak-mini-prog { height: 3px; border-radius: 999px; background: rgba(216,184,122,.12); margin: 2px 10px 8px 6px; overflow: hidden; }
.ak-mini-prog i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .3s; }

.ak-konu, .ak-node { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 10px; border-radius: 9px;
  font: inherit; font-size: 13.5px; line-height: 1.3; transition: background .12s, color .12s; }
.ak-konu:hover, .ak-node:hover { background: rgba(216,184,122,.07); color: var(--text); }
.ak-konu.active, .ak-node.active { background: rgba(216,184,122,.13); color: var(--gold-soft); }
.ak-konu .kn { flex: none; width: 20px; color: #6a7092; font-variant-numeric: tabular-nums; font-size: 12px; }
.ak-konu .kt { flex: 1; }
.ak-konu .chk { flex: none; color: #7fe0a8; font-size: 13px; opacity: 0; }
.ak-konu.read .chk { opacity: 1; }
.ak-node { color: var(--gold); font-family: var(--serif); letter-spacing: .3px; margin-top: 2px; }
.ak-node .st { flex: none; }

/* Sağ: sahne (kart + sekmeler) */
.ak-stage { border: 1px solid var(--card-border); border-radius: 18px; background: var(--card);
  backdrop-filter: blur(6px); overflow: hidden; min-height: 460px; }
.ak-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--card-border); background: rgba(216,184,122,.04); }
.ak-tab { flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px;
  padding: 12px 8px; border-radius: 11px; cursor: pointer; transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; }
.ak-tab .tn { flex: none; font-size: 11px; color: #6a7092; }
.ak-tab:hover { color: var(--text); }
.ak-tab.active { background: rgba(216,184,122,.14); color: var(--gold-soft); }
.ak-tab[disabled] { opacity: .4; cursor: not-allowed; }
.ak-panel { padding: 26px 26px 8px; }

/* Ders içeriği */
.ak-ders .ak-eyebrow { color: var(--muted); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.ak-ders h2 { font-family: var(--serif); font-weight: 400; color: var(--gold); font-size: clamp(21px, 3.2vw, 27px);
  letter-spacing: .5px; margin-bottom: 12px; line-height: 1.2; }
.ak-ders .ak-lead { color: var(--text); font-size: 16.5px; margin-bottom: 18px; line-height: 1.6; }
.ak-blok { border: 1px solid var(--card-border); border-radius: 14px; background: rgba(20,28,60,.32);
  padding: 16px 18px; margin: 12px 0; }
.ak-blok-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ak-blok .astro { font-family: 'AstroSymbols', var(--serif); color: var(--gold); font-size: 24px; line-height: 1;
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--card-border); background: rgba(216,184,122,.07); }
.ak-blok h3 { font-family: var(--serif); font-weight: 400; color: var(--gold-soft); font-size: 16.5px; margin: 0; }
.ak-blok p { color: #cdd1e0; font-size: 15px; margin: 0; line-height: 1.6; }
.ak-blok p + p { margin-top: 8px; }
.ak-ornek { border-left: 3px solid var(--card-border); padding: 8px 0 8px 16px; color: var(--muted);
  font-style: italic; margin: 16px 0; font-size: 15px; }
.ak-kaynak { color: #6a7092; font-size: 12.5px; margin-top: 18px; padding-top: 12px;
  border-top: 1px solid rgba(216,184,122,.12); }

/* Konu Testi çağrısı (ders sonunda) */
.ak-testcta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  border: 1px solid var(--card-border); border-radius: 14px; background: rgba(216,184,122,.07);
  padding: 16px 18px; margin: 18px 0 6px; }
.ak-testcta .tx b { color: var(--gold-soft); font-family: var(--serif); font-weight: 400; font-size: 16px; display: block; }
.ak-testcta .tx span { color: var(--muted); font-size: 13.5px; }
.ak-testcta button { flex: none; }

/* Sahne alt gezinme */
.ak-stage-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 22px 20px; border-top: 1px solid var(--card-border); margin-top: 8px; }
.ak-stage-nav button { background: none; border: 1px solid var(--card-border); border-radius: 11px;
  color: var(--gold); font: inherit; font-size: 13.5px; padding: 9px 14px; cursor: pointer; transition: background .15s; }
.ak-stage-nav button:hover:not([disabled]) { background: rgba(216,184,122,.1); }
.ak-stage-nav button[disabled] { opacity: .35; cursor: default; }
.ak-stage-nav .read-flag { color: #7fe0a8; font-size: 13px; }

/* ── Quiz motoru (uygulamadaki his: tek soru, yanlışta ipucu+tekrar, doğruda açıklama) ── */
.qz { padding: 4px 0; }
.qz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qz-top .qz-count { color: var(--muted); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; flex: none; }
.qz-top .ak-pbar { flex: 1; }
.qz-scope { color: #6a7092; font-size: 12.5px; margin-bottom: 12px; }
.qz-scope b { color: var(--gold-soft); font-weight: 400; }
.qz-q { font-family: var(--serif); font-weight: 400; color: var(--text); font-size: 19px; line-height: 1.4; margin-bottom: 16px; }
.qz-opts { display: flex; flex-direction: column; gap: 10px; }
.qz-opt { text-align: left; background: rgba(20,28,60,.4); border: 1px solid var(--card-border); border-radius: 12px;
  color: var(--text); font: inherit; font-size: 15px; padding: 13px 16px; cursor: pointer; min-height: 48px;
  display: flex; align-items: center; gap: 10px; transition: border-color .15s, background .15s, transform .06s; }
.qz-opt:hover:not([disabled]) { border-color: rgba(216,184,122,.5); background: rgba(216,184,122,.06); }
.qz-opt .mk { flex: none; width: 18px; color: var(--muted); }
.qz-opt.wrong { border-color: rgba(224,90,90,.7); background: rgba(224,90,90,.1); animation: qzshake .3s; }
.qz-opt.wrong .mk { color: #e05a5a; }
.qz-opt.correct { border-color: rgba(127,224,168,.7); background: rgba(127,224,168,.12); }
.qz-opt.correct .mk { color: #7fe0a8; }
.qz-opt[disabled] { cursor: default; }
@keyframes qzshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.qz-hint { color: #e0a05a; font-size: 14px; margin: 14px 2px 0; min-height: 20px; }
.qz-explain { border-left: 3px solid rgba(127,224,168,.6); background: rgba(127,224,168,.08); border-radius: 8px;
  padding: 12px 14px; margin: 14px 0 0; color: #d6ecdd; font-size: 14.5px; }
.qz-explain b { color: #9fe6ba; }
.qz-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.qz-actions .btn { padding: 11px 22px; }

/* Sonuç */
.qz-result { text-align: center; padding: 10px 0; }
.qz-result .trophy { font-family: var(--serif); font-size: 40px; color: var(--gold); }
.qz-result h3 { font-family: var(--serif); font-weight: 400; color: var(--gold-soft); font-size: 22px; margin: 8px 0; }
.qz-result .score { color: var(--text); font-size: 17px; margin-bottom: 4px; }
.qz-result .msg { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.qz-review { text-align: left; margin: 14px 0; }
.qz-review .row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(216,184,122,.1); color: var(--muted); font-size: 14px; }
.qz-review .row .m { flex: none; }
.qz-review .row.ok .m { color: #7fe0a8; }
.qz-review .row.miss .m { color: #e0a05a; }
.qz-result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

.ak-empty { color: var(--muted); text-align: center; padding: 60px 20px; }
.ak-empty .astro { font-family:'AstroSymbols',var(--serif); font-size: 34px; color: var(--gold); display:block; margin-bottom: 12px; }

/* ── Giriş (magic) modalı ── */
.ak-authbtn { border: 1px solid var(--card-border); border-radius: 999px; padding: 8px 16px !important;
  color: var(--gold) !important; background: none; font: inherit; font-size: 14.5px; cursor: pointer; }
.ak-authbtn:hover { background: rgba(216,184,122,.1); }
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4,6,14,.72); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 440px; border: 1px solid var(--card-border); border-radius: 20px;
  background: linear-gradient(180deg, rgba(24,32,66,.98), rgba(10,15,34,.98)); padding: 30px 28px 26px; position: relative;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--gold); }
.modal-card .m-emblem { width: 54px; height: 54px; border-radius: 50%; display: block; margin: 0 auto 14px; object-fit: cover;
  box-shadow: 0 0 40px -12px rgba(216,184,122,.6), 0 0 0 1px rgba(216,184,122,.3); }
.modal-card h2 { font-family: var(--serif); font-weight: 400; color: var(--gold); text-align: center; font-size: 24px; margin-bottom: 6px; letter-spacing: 1px; }
.modal-card .m-sub { color: var(--muted); text-align: center; font-size: 14.5px; margin-bottom: 20px; }
.m-field { margin-bottom: 14px; }
.m-field label { display: block; color: var(--gold-soft); font-size: 13px; margin-bottom: 6px; font-family: var(--serif); letter-spacing: .5px; }
.m-field input[type=email] { width: 100%; background: rgba(7,12,34,.6); border: 1px solid var(--card-border); border-radius: 12px;
  color: var(--text); font: inherit; font-size: 15px; padding: 13px 15px; }
.m-field input[type=email]:focus { outline: none; border-color: var(--gold); }
.m-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; margin: 4px 0 18px; line-height: 1.5; }
.m-check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--gold); }
.modal-card .btn { width: 100%; justify-content: center; }
.m-note { color: #6a7092; font-size: 12px; text-align: center; margin-top: 14px; line-height: 1.55; }
.m-err { color: #e0806a; font-size: 13px; margin: -6px 0 12px; min-height: 16px; }
.m-ok { text-align: center; }
.m-ok .astro { font-family:'AstroSymbols',var(--serif); font-size: 36px; color: #7fe0a8; display:block; margin-bottom: 10px; }
.m-ok h2 { color: var(--gold-soft); }

/* Giriş yapılınca nav durumu */
.ak-me { color: var(--gold-soft); font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.ak-me .ak-signout { color: var(--muted); font-size: 12px; text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* ── Duyarlı ── */
@media (max-width: 900px) {
  .ak-app { grid-template-columns: 1fr; }
  .ak-tree { position: static; max-height: none; }
  .ak-tree-toggle { display: block; }
  .ak-tree.collapsed .ak-tree-body { display: none; }
  .ak-tree-body { max-height: 60vh; }
}
@media (max-width: 560px) {
  .ak-panel { padding: 20px 16px 6px; }
  .ak-tab { font-size: 13px; padding: 10px 4px; }
  .ak-tab .tn { display: none; }
  .ak-stage-nav { padding: 12px 14px 16px; }
  .ak-stage-nav button { padding: 8px 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ak-hero .ak-emblem, .modal-card .m-emblem { animation: none; }
  .qz-opt.wrong { animation: none; }
}

/* Baskı/PDF: interaktif app gizli, sadece SEO/indeks görünür */
@media print {
  .ak-app, .ak-hero-cta, .ak-hero-prog, .ak-authbtn, .modal { display: none !important; }
}
