/* ============================================================
   glossary.css  --  Prime Ledger Educational Series
   Styles specific to the glossary page
   Requires shared.css to be loaded first
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position:relative; padding:200px var(--pad-x) 80px; overflow:hidden; }
.hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(3,136,166,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(3,136,166,.05) 1px,transparent 1px); background-size:60px 60px; pointer-events:none; }
.hero-glow { position:absolute; inset:0; background:radial-gradient(ellipse 80% 60% at 50% 0%,rgba(3,136,166,.18) 0%,transparent 65%); pointer-events:none; }
.hero-inner { position:relative; z-index:1; max-width:var(--content-max); margin:0 auto; text-align:center; display:flex; flex-direction:column; align-items:center; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:10px; background:var(--blue-dim); border:1px solid rgba(3,136,166,.3); border-radius:30px; padding:7px 18px; font-family:"DM Mono",monospace; font-size:10px; letter-spacing:.2em; color:var(--blue-light); text-transform:uppercase; margin-bottom:32px; opacity:0; animation:fadeUp .7s ease .1s forwards; }
.hero h1 { font-family:"Lora",serif; font-size:clamp(2.2rem,4.5vw,3.6rem); font-weight:400; line-height:1.15; letter-spacing:-.02em; margin:0 auto 24px; text-align:center; opacity:0; animation:fadeUp .8s ease .25s forwards; }
.hero-desc { font-size:clamp(0.95rem,1vw + 0.5rem,1.15rem); color:var(--white-dim); max-width:620px; line-height:1.75; margin:0 auto; text-align:center; opacity:0; animation:fadeUp .8s ease .4s forwards; }

/* ---------- SEARCH BAR ---------- */
.glossary-search-bar { max-width:var(--content-max); margin:0 auto; padding:32px var(--pad-x) 16px; position:relative; z-index:2; }
.glossary-search-inner { position:relative; max-width:520px; margin:0 auto; }
.search-icon { position:absolute; left:18px; top:50%; transform:translateY(-50%); pointer-events:none; }
.glossary-input { width:100%; background:var(--navy-light); border:1px solid rgba(3,136,166,.25); border-radius:12px; padding:16px 18px 16px 48px; font-size:1rem; color:var(--white); outline:none; font-family:"DM Sans",sans-serif; transition:border-color .2s; }
.glossary-input::placeholder { color:rgba(255,255,255,.3); }
.glossary-input:focus { border-color:var(--blue); }
.search-clear { position:absolute; right:80px; top:50%; transform:translateY(-50%); background:none; border:none; color:rgba(255,255,255,.4); font-size:20px; line-height:1; cursor:pointer; padding:4px 8px; transition:color .2s; }
.search-clear:hover { color:var(--white); }
.search-count { position:absolute; right:18px; top:50%; transform:translateY(-50%); font-family:"DM Mono",monospace; font-size:11px; letter-spacing:.1em; color:var(--blue-light); }

/* ---------- ALPHA NAV ---------- */
.alpha-nav { max-width:var(--content-max); margin:0 auto; padding:24px var(--pad-x) 8px; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; position:sticky; top:64px; z-index:10; background:rgba(8,31,52,.92); backdrop-filter:blur(10px); border-bottom:1px solid rgba(3,136,166,.1); }
.alpha-nav a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; font-family:"DM Mono",monospace; font-size:12px; font-weight:500; letter-spacing:.05em; color:rgba(255,255,255,.45); text-decoration:none; transition:all .2s; border:1px solid transparent; }
.alpha-nav a:hover { color:var(--blue-light); background:var(--blue-dim); border-color:rgba(3,136,166,.3); }

/* ---------- GLOSSARY BODY ---------- */
.glossary-body { max-width:var(--content-max); margin:0 auto; padding:32px var(--pad-x) 80px; }

/* ---------- LETTER SECTIONS ---------- */
.letter-section { margin-bottom:48px; scroll-margin-top:120px; }
.letter-heading { font-family:"Lora",serif; font-size:2rem; font-weight:400; color:var(--blue); margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid rgba(3,136,166,.15); }

/* ---------- TERM CARDS ---------- */
.term-card { background:var(--navy-light); border:1px solid rgba(3,136,166,.12); border-radius:14px; padding:24px 28px; margin-bottom:12px; transition:border-color .25s; }
.term-card:hover { border-color:rgba(3,136,166,.35); }
.term-name { font-family:"Lora",serif; font-size:1.1rem; font-weight:400; color:var(--white); margin-bottom:8px; }
.term-def { font-size:.92rem; color:var(--white-dim); line-height:1.75; margin:0; }
.term-lesson { display:inline-block; margin-top:10px; font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.15em; text-transform:uppercase; color:var(--blue); background:var(--blue-dim); border:1px solid rgba(3,136,166,.2); border-radius:20px; padding:4px 12px; }

/* ---------- FOOTER NOTE ---------- */
.glossary-footer-note { font-size:.8rem; color:rgba(255,255,255,.35); text-align:center; max-width:600px; margin:0 auto 40px; line-height:1.7; }

/* ---------- NEWSLETTER (duplicated from index for standalone load) ---------- */
.newsletter { background:var(--navy-mid); border-top:1px solid rgba(3,136,166,.12); padding:80px var(--pad-x); }
.newsletter-inner { max-width:var(--content-max); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.newsletter h2 { font-family:"Lora",serif; font-size:clamp(1.5rem,3vw,2.2rem); font-weight:400; margin-bottom:12px; }
.newsletter p { font-size:.95rem; color:var(--white-dim); line-height:1.7; }
.newsletter-form { display:flex; gap:12px; }
.newsletter-input { flex:1; background:var(--navy-light); border:1px solid rgba(3,136,166,.25); border-radius:10px; padding:14px 18px; font-size:.9rem; color:var(--white); outline:none; font-family:"DM Sans",sans-serif; transition:border-color .2s; }
.newsletter-input::placeholder { color:rgba(255,255,255,.3); }
.newsletter-input:focus { border-color:var(--blue); }
.newsletter-btn { background:linear-gradient(135deg,var(--blue),var(--blue-light)); color:#fff; border:none; border-radius:10px; padding:14px 28px; font-family:"Lora",serif; font-size:.9rem; font-weight:700; cursor:pointer; transition:transform .2s,box-shadow .2s; white-space:nowrap; }
.newsletter-btn:hover { transform:translateY(-2px); box-shadow:0 10px 30px rgba(3,136,166,.35); }

/* ---------- FOOTER LINKS ---------- */
.footer-links { display:flex; justify-content:center; gap:28px; margin-bottom:16px; }
.footer-link { font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.18em; color:rgba(255,255,255,.35); text-transform:uppercase; text-decoration:none; transition:color .2s; }
.footer-link:hover { color:var(--blue-light); }

/* ---------- RESPONSIVE ---------- */
@media(max-width:1024px){
  .newsletter-inner { grid-template-columns:1fr; }
}

@media(max-width:600px){
  .nav-links { display:none; }
  .alpha-nav { gap:4px; }
  .alpha-nav a { width:30px; height:30px; font-size:11px; }
  .newsletter-form { flex-direction:column; }
  .term-card { padding:20px 22px; }
  .letter-heading { font-size:1.6rem; }
  .footer-link { font-size:11px; padding:6px 4px; }
}
