/* glossary.css — Phase 3c. Glossary entries + hub.
   Reuses learn.css for callouts/CTA/FAQ; adds .gloss-* for entry-specific patterns.
*/

/* Hero — same proportions as learn-hero but with definition prominence */
.gloss-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid rgba(95, 255, 175, 0.08);
}

.gloss-hero .section-label { margin-bottom: 12px; }

.gloss-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.gloss-hero .lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #cfe8d8;
  max-width: 720px;
  margin: 0;
}

/* Definition box — sticky one/two-sentence definition right under the hero */
.gloss-definition {
  margin: 28px 0;
  padding: 24px 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(95, 255, 175, 0.05) 0%, rgba(95, 255, 175, 0.02) 100%);
  border-left: 4px solid #5fffaf;
}

.gloss-definition-label {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5fffaf;
  display: block;
  margin-bottom: 10px;
}

.gloss-definition p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f0fbf3;
  margin: 0;
}

/* Inline example code block */
.gloss-example {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: 8px;
  background: rgba(10, 14, 12, 0.6);
  border: 1px solid rgba(95, 255, 175, 0.1);
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.9rem;
  color: #cfe8d8;
  overflow-x: auto;
  white-space: pre;
}

.gloss-example-label {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #93b8a3;
  display: block;
  margin-bottom: 8px;
  white-space: normal;
}

/* "In PGPony" callout — where this term shows up in the actual app */
.gloss-in-app {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.04);
  border-left: 3px solid rgba(255, 209, 102, 0.5);
  font-size: 0.95rem;
  color: #cfe8d8;
}

.gloss-in-app-label {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffd166;
  display: block;
  margin-bottom: 6px;
}

/* Related terms — small chip-style links */
.gloss-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.gloss-related li { margin: 0; }

.gloss-related a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(95, 255, 175, 0.06);
  border: 1px solid rgba(95, 255, 175, 0.12);
  color: #cfe8d8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.gloss-related a:hover {
  background: rgba(95, 255, 175, 0.1);
  border-color: rgba(95, 255, 175, 0.3);
}

/* Hub: categorized index */
.gloss-hub-category {
  margin: 32px 0;
}

.gloss-hub-category h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
  color: #f0fbf3;
}

.gloss-hub-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .gloss-hub-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gloss-hub-list { grid-template-columns: repeat(3, 1fr); }
}

.gloss-hub-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(95, 255, 175, 0.08);
  background: rgba(10, 14, 12, 0.4);
  color: #cfe8d8;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.gloss-hub-list a:hover {
  border-color: rgba(95, 255, 175, 0.3);
  transform: translateX(2px);
}

.gloss-hub-term {
  display: block;
  font-weight: 600;
  color: #f0fbf3;
  font-size: 1rem;
}

.gloss-hub-tagline {
  display: block;
  font-size: 0.85rem;
  color: #93b8a3;
  margin-top: 4px;
  line-height: 1.4;
}

/* Alphabetical full index */
.gloss-alpha {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  columns: 1;
}

@media (min-width: 640px) { .gloss-alpha { columns: 2; } }
@media (min-width: 1024px) { .gloss-alpha { columns: 3; } }

.gloss-alpha li {
  padding: 4px 0;
  break-inside: avoid;
}

.gloss-alpha a {
  color: #cfe8d8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(95, 255, 175, 0.2);
}

.gloss-alpha a:hover {
  color: #5fffaf;
  border-bottom-color: #5fffaf;
}
