/* =====================================================================
   HBA — Tanıtım sayfaları (Kılavuz + Neler var?)                hba-pages.css
   portal_guide.php ve portal_features.php tarafından hba-home.css ile birlikte yüklenir.
   İki kip: ziyaretçi/yönetici = tek başına sayfa (üst çubuk var), öğrenci/veli = sol menülü kabuk (body.in-shell).
   ===================================================================== */

/* ---------- Sayfa karşılama bandı ---------- */
.pg-hero { overflow-x: clip; background-color: #E9EFF6; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 28px 28px; border-bottom: 1.5px solid var(--hba-text); }
.pg-hero .hm-wrap { padding-block: clamp(36px, 6vw, 76px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
html.hba-v2 .pg-hero h1 { margin: 0; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.05em; max-width: 16ch; }
.pg-hero .hm-lead { margin: 0; max-width: 60ch; }
body.in-shell .pg-hero { border: 1.5px solid var(--hba-text); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--hl); margin-bottom: 30px; }
body.in-shell .pg-hero .hm-wrap { width: auto; padding: clamp(24px, 4vw, 48px); }
body.in-shell .hm-wrap { width: 100%; }
body.in-shell .hm-sec { padding-block: 10px 40px; }
.pg-hero .hm-actions { margin-top: 4px; }

/* üst çubukta geçerli sayfa fosforlu */
html.hba-v2 .hm .hm-nav a.is-current { background: var(--hl); border-radius: 3px 10px 5px 10px; padding: 6px 12px; color: var(--hba-text); }

/* ---------- Kılavuz: basamak göstergesi (sol) + adımlar ---------- */
.gd-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gd-rail { position: sticky; top: 94px; }
body.in-shell .gd-rail { top: 24px; }
html.hba-v2 .gd-rail h2 { margin: 0 0 12px; font-size: 1.02rem; letter-spacing: -0.01em; font-family: var(--font-main); font-weight: 700; color: var(--hba-muted); }
.gd-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.gd-rail a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; margin-left: calc(var(--i, 0) * 4px); border-left: 4px solid var(--hba-line-2); border-radius: 3px 8px 8px 3px; font-size: .9rem; font-weight: 600; color: var(--hba-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s ease, border-color .15s ease; }
.gd-rail a .n { font-family: var(--font-display); font-weight: 700; color: var(--hba-text); }
html.hba-v2 .hm .gd-rail a:hover { color: var(--hba-text); background: var(--hba-surface); }
.gd-rail a.is-done { border-left-color: var(--hba-primary-500); color: var(--hba-text-2); }
html.hba-v2 .hm .gd-rail a.is-current { background: var(--hl); border-left-color: var(--hba-text); color: var(--hba-text); }

.gd-steps { display: flex; flex-direction: column; gap: 26px; }
.gd-step { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px 22px; padding: 26px 28px 26px 24px; background: var(--hba-surface); border: 1.5px solid var(--hba-text); border-radius: 12px; box-shadow: 5px 5px 0 var(--hba-primary-500); scroll-margin-top: 96px; transition: box-shadow .2s ease; }
body.in-shell .gd-step { scroll-margin-top: 24px; }
.gd-step.is-current { box-shadow: 5px 5px 0 var(--hl); }
.gd-num { font-family: var(--font-display); font-weight: 700; font-size: 3.6rem; line-height: .95; letter-spacing: -0.06em; width: fit-content; height: fit-content; padding: 0 6px; background: linear-gradient(transparent 52%, var(--hl) 52% 92%, transparent 92%); }
.gd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gd-head i { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--hba-primary-50); color: var(--hba-primary-600); font-size: 1.3rem; }
html.hba-v2 .gd-head h3 { margin: 0; font-size: 1.4rem; letter-spacing: -0.03em; }
.gd-step p { margin: 0; color: var(--hba-text-2); font-size: 1.02rem; max-width: 62ch; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.gd-chips li { padding: 5px 11px; border: 1.5px solid var(--hba-line-2); border-radius: 6px; background: var(--hba-surface-2); font-size: .88rem; font-weight: 650; color: var(--hba-text-2); }

/* ---------- Altın kurallar ---------- */
.gd-rules { margin-top: clamp(34px, 5vw, 60px); }
.gd-rules ul { list-style: none; margin: 0; padding: 0; }
.gd-rules li { display: flex; gap: 14px; padding: 16px 0 16px clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--hba-line); color: var(--hba-text-2); }
.gd-rules li:last-child { border-bottom: 0; }
.gd-rules li > i { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--hl-soft); color: var(--hba-text); font-size: 1.15rem; margin-top: 2px; }
.gd-rules strong { color: var(--hba-text); }

/* ---------- Neler var: rütbe merdiveni + özellik notları ---------- */
.ft-ranks { display: flex; align-items: flex-end; gap: 8px; height: 190px; max-width: 640px; padding-top: 50px; border-bottom: 3px solid var(--hba-text); position: relative; }
.ft-rank { position: relative; flex: 1 1 0; min-width: 0; height: calc(70px + var(--i) * 28px); padding: 10px 10px; border: 2px solid var(--hba-primary-500); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--hba-primary-500); color: #fff; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; animation: hm-rise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 110ms); }
.ft-rank b { font-family: var(--font-display); font-weight: 700; font-size: clamp(.95rem, .8rem + .6vw, 1.25rem); letter-spacing: -0.03em; line-height: 1.05; }
.ft-rank small { font-size: .78rem; font-weight: 600; color: #C4CBFA; }
.ft-rank:last-child { background: var(--hl); border-color: var(--hba-text); color: var(--hba-text); }
.ft-rank:last-child small { color: #4A4300; }
.ft-rank:last-child::before { content: ""; position: absolute; top: -40px; left: 12px; width: 3px; height: 40px; background: var(--hba-text); border-radius: 2px; }
.ft-rank:last-child::after { content: ""; position: absolute; top: -40px; left: 15px; border-style: solid; border-width: 9px 0 9px 24px; border-color: transparent transparent transparent var(--hba-rose-500); }

.ft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ft-card { --c: var(--hba-primary-500); --ib: var(--hba-primary-50); --if: var(--hba-primary-600); background: var(--hba-surface); border: 1.5px solid var(--hba-text); border-radius: 12px; padding: 26px 24px 24px; box-shadow: 5px 5px 0 var(--c); }
.ft-card.is-yellow { --c: var(--hl); --ib: var(--hl-soft); --if: var(--hba-text); }
.ft-card.is-red { --c: var(--hba-rose-500); --ib: var(--hba-rose-100); --if: var(--hba-rose-700); }
.ft-card.is-green { --c: var(--hba-mint-500); --ib: var(--hba-mint-100); --if: var(--hba-mint-700); }
.ft-card > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--ib); color: var(--if); font-size: 1.5rem; margin-bottom: 14px; }
html.hba-v2 .ft-card h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.03em; }
.ft-card p { margin: 0; color: var(--hba-text-2); font-size: .98rem; }

@media (max-width: 960px) {
  .gd-layout { grid-template-columns: 1fr; }
  .gd-rail { display: none; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gd-step { grid-template-columns: 1fr; padding: 22px 20px; }
  .gd-num { font-size: 2.6rem; }
  .ft-grid { grid-template-columns: 1fr; }
  /* telefonda rütbe merdiveni: girintisi artan satırlar */
  .ft-ranks { flex-direction: column; align-items: stretch; height: auto; padding-top: 0; gap: 8px; padding-bottom: 14px; }
  .ft-rank { height: auto; flex-direction: row; align-items: center; justify-content: space-between; margin-left: calc(var(--i) * 10px); padding: 11px 14px; border: 2px solid var(--hba-primary-500); border-radius: 6px; }
  .ft-rank:last-child { border-color: var(--hba-text); }
  .ft-rank:last-child::before, .ft-rank:last-child::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ft-rank { animation: none !important; } }
