/* ═══════════════════════════════════════════════════════
   ORBITAL RADAR — GLOSSARY STYLES
   Extends library-styles.css for glossary-specific UI.
   ═══════════════════════════════════════════════════════ */

/* ── GLOSSARY PAGE HEADER ──────────────────────────────── */
.or-gloss-h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(22px, 3.8vw, 36px);
  color: #ffe060;
  letter-spacing: 2px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.or-gloss-aliases {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ── QUICK ANSWER (featured snippet target) ────────────── */
.or-gloss-quick-answer {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(255,224,96,0.03);
  border-left: 3px solid rgba(255,224,96,0.4);
  border-radius: 0 12px 12px 0;
  margin-bottom: 8px;
}

.or-gloss-quick-answer-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* ── DEFINITION BOX ENHANCEMENTS ───────────────────────── */
.or-gloss-definition {
  max-width: none;
  font-size: 14px;
  line-height: 1.8;
}

.or-gloss-def-body {
  color: rgba(96,234,254,0.75);
}

.or-gloss-def-body a {
  color: #60eafe;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(96,234,254,0.25);
  transition: all 0.2s;
}

.or-gloss-def-body a:hover {
  color: #ffe060;
  text-decoration-color: rgba(255,224,96,0.4);
}

/* ── SVG DIAGRAMS ──────────────────────────────────────── */
.or-gloss-diagram {
  max-width: 820px;
  margin: 28px auto;
  padding: 24px 16px;
  background: rgba(10,14,34,0.6);
  border: 1px solid rgba(255,224,96,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.or-gloss-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── DEEP DIVE CONTENT ─────────────────────────────────── */
.or-gloss-deep-dive {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 8px;
}

.or-gloss-deep-dive h2 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 18px;
  color: #ffe060;
  letter-spacing: 1px;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,224,96,0.1);
}

.or-gloss-deep-dive h3 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,224,96,0.8);
  letter-spacing: 0.5px;
  margin: 28px 0 10px;
}

.or-gloss-prose {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin-bottom: 16px;
}

.or-gloss-prose a {
  color: #60eafe;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(96,234,254,0.25);
  transition: all 0.2s;
}

.or-gloss-prose a:hover {
  color: #ffe060;
  text-decoration-color: rgba(255,224,96,0.4);
}

/* ── USED IN / LEARN MORE SECTION ──────────────────────── */
.or-gloss-used-in {
  max-width: 820px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,224,96,0.06);
}

.or-gloss-used-in-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,224,96,0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.or-gloss-used-in-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.or-gloss-used-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(18,20,34,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}

.or-gloss-used-link:hover {
  border-color: rgba(96,234,254,0.3);
  color: #60eafe;
  background: rgba(96,234,254,0.04);
}

.or-gloss-used-type {
  font-size: 10px;
  color: rgba(255,224,96,0.5);
  background: rgba(255,224,96,0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ── ACADEMY CTA ───────────────────────────────────────── */
.or-gloss-academy-cta {
  max-width: 820px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(96,234,254,0.04);
  border: 1px solid rgba(96,234,254,0.12);
  border-radius: 14px;
}

.or-gloss-academy-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.or-gloss-academy-body {
  flex: 1;
}

.or-gloss-academy-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 13px;
  color: #60eafe;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.or-gloss-academy-text {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.or-gloss-academy-link {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #60eafe;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.or-gloss-academy-link:hover {
  color: #ffe060;
}

/* ── FAQ SECTION ───────────────────────────────────────── */
.or-gloss-faq {
  max-width: 820px;
  margin: 40px auto 0;
}

.or-gloss-faq h2 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #ffe060;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════
   GLOSSARY INDEX PAGE
   ════════════════════════════════════════════════════════ */

/* ── Search ────────────────────────────────────────────── */
.or-gloss-search-wrap {
  max-width: 600px;
  margin: 0 auto 24px;
  position: relative;
}

.or-gloss-search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  background: rgba(18,20,34,0.7);
  border: 1px solid rgba(255,224,96,0.15);
  border-radius: 12px;
  color: rgba(255,255,255,0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.or-gloss-search-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.or-gloss-search-input:focus {
  border-color: rgba(255,224,96,0.4);
}

.or-gloss-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Category Tabs ─────────────────────────────────────── */
.or-gloss-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  padding: 0 8px;
}

.or-gloss-tab {
  padding: 8px 16px;
  background: rgba(18,20,34,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.or-gloss-tab:hover {
  border-color: rgba(255,224,96,0.2);
  color: rgba(255,255,255,0.7);
}

.or-gloss-tab.active {
  background: rgba(255,224,96,0.08);
  border-color: rgba(255,224,96,0.3);
  color: #ffe060;
}

/* ── Academy Banner ────────────────────────────────────── */
.or-gloss-academy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(96,234,254,0.04);
  border: 1px solid rgba(96,234,254,0.1);
  border-radius: 12px;
  margin-bottom: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
}

.or-gloss-academy-banner a {
  color: #60eafe;
  text-decoration: none;
  font-weight: 600;
}

.or-gloss-academy-banner a:hover {
  color: #ffe060;
}

.or-gloss-academy-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ── Category Sections ─────────────────────────────────── */
.or-gloss-cat-section {
  margin-bottom: 40px;
}

.or-gloss-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.or-gloss-cat-icon {
  font-size: 20px;
}

.or-gloss-cat-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #ffe060;
  letter-spacing: 1px;
}

.or-gloss-cat-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  max-width: 800px;
  line-height: 1.7;
}

/* ── A-Z Navigation ────────────────────────────────────── */
.or-gloss-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(18,20,34,0.5);
  border-radius: 12px;
  border: 1px solid rgba(255,224,96,0.06);
}

.or-gloss-az-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,224,96,0.05);
  border: 1px solid rgba(255,224,96,0.1);
  color: #ffe060;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s;
}

.or-gloss-az-letter:hover {
  background: rgba(255,224,96,0.12);
  border-color: rgba(255,224,96,0.3);
}

.or-gloss-az-group {
  margin-bottom: 24px;
}

.or-gloss-az-heading {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 22px;
  color: #ffe060;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,224,96,0.1);
}

.or-gloss-az-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 2px;
}

.or-gloss-az-item:hover {
  background: rgba(255,224,96,0.04);
}

.or-gloss-az-term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #60eafe;
}

.or-gloss-az-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-family: 'JetBrains Mono', monospace;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 700px) {
  .or-gloss-quick-answer {
    padding: 16px 18px;
    margin-left: 0;
    margin-right: 0;
  }

  .or-gloss-academy-cta {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .or-gloss-used-in-grid {
    grid-template-columns: 1fr;
  }

  .or-gloss-cat-tabs {
    gap: 6px;
  }

  .or-gloss-tab {
    font-size: 11px;
    padding: 6px 12px;
  }

  .or-gloss-az-letter {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .or-gloss-diagram {
    padding: 16px 8px;
  }
}

/* ── LIGHT MODE OVERRIDES ──────────────────────────────── */
html.or-light-mode .or-gloss-quick-answer {
  background: rgba(0,0,0,0.03);
  border-left-color: rgba(180,120,0,0.5);
}

html.or-light-mode .or-gloss-quick-answer-text {
  color: rgba(0,0,0,0.8);
}

html.or-light-mode .or-gloss-def-body {
  color: rgba(0,0,0,0.7);
}

html.or-light-mode .or-gloss-prose {
  color: rgba(0,0,0,0.7);
}

html.or-light-mode .or-gloss-diagram {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}

html.or-light-mode .or-gloss-search-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.85);
}

html.or-light-mode .or-gloss-tab {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.5);
}

html.or-light-mode .or-gloss-tab.active {
  background: rgba(180,120,0,0.08);
  border-color: rgba(180,120,0,0.3);
  color: #b47800;
}

html.or-light-mode .or-gloss-used-link {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.7);
}

html.or-light-mode .or-gloss-academy-banner {
  background: rgba(0,100,180,0.04);
  border-color: rgba(0,100,180,0.12);
}

html.or-light-mode .or-gloss-az-letter {
  background: rgba(180,120,0,0.06);
  border-color: rgba(180,120,0,0.12);
  color: #b47800;
}
