/* ============================================================
   HR GLOSSARY PAGE — STYLES
   Depends on: header.css (design tokens already loaded)
============================================================ */

/* ============================================================
   HERO
============================================================ */
.hrb-gloss-hero {
  background: linear-gradient(135deg, #0A7075 0%, #0D9488 50%, #0F766E 100%);
  padding: 130px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hrb-gloss-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hrb-gloss-hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hrb-gloss-hero__label {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); border-radius: var(--radius-full);
  padding: 5px 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px;
}
.hrb-gloss-hero__label::before {
  content: ''; width: 7px; height: 7px;
  background: #4ADE80; border-radius: 50%;
}
.hrb-gloss-hero h1 {
  color: white; font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px; line-height: 1.15;
}
.hrb-gloss-hero__sub {
  font-size: 17px; color: rgba(255,255,255,0.78);
  line-height: 1.65; margin-bottom: 32px;
}
.hrb-gloss-hero__stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 24px;
}
.hrb-gloss-hero__stat {
  font-size: 13px; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 6px;
}
.hrb-gloss-hero__stat strong { color: white; }

/* ============================================================
   ALPHABET STICKY BAR
============================================================ */
.hrb-alpha-wrap {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.hrb-alpha-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px; padding: 12px 0;
  justify-content: center;
}
.hrb-alpha-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-family: var(--font-display);
  text-decoration: none;
}
.hrb-alpha-btn--active {
  background: var(--bg-teal);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
}
.hrb-alpha-btn--active:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}
.hrb-alpha-btn--inactive {
  background: var(--bg-alt);
  color: var(--text-light);
  cursor: default;
  border: 1.5px solid transparent;
}
@media (max-width: 480px) {
  .hrb-alpha-btn { width: 28px; height: 28px; font-size: 11px; }
  .hrb-alpha-bar { gap: 2px; padding: 8px 0; }
}

/* ============================================================
   SEARCH BAR
============================================================ */
.hrb-gloss-search {
  padding: 28px 0 8px;
}
.hrb-gloss-search__inner {
  max-width: 600px; margin: 0 auto;
  position: relative;
}
.hrb-gloss-search__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.hrb-gloss-search__input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  font-family: var(--font-body); font-size: 15px;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  color: var(--dark); background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.hrb-gloss-search__input::placeholder { color: var(--text-light); }
.hrb-gloss-search__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.1);
}
.hrb-gloss-search__count {
  text-align: center; font-size: 13px; color: var(--text-muted);
  margin-top: 10px; min-height: 20px;
}

/* No results */
.hrb-gloss-noresult {
  display: none;
  text-align: center; padding: 48px 24px;
}
.hrb-gloss-noresult p { font-size: 16px; color: var(--text-muted); }
.hrb-gloss-noresult strong { color: var(--dark); }

/* ============================================================
   GLOSSARY BODY
============================================================ */
.hrb-gloss-body { padding: 40px 0 80px; }
.hrb-gloss-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

/* Letter group */
.hrb-gloss-group { margin-bottom: 48px; }
.hrb-gloss-group[data-hidden="true"] { display: none; }
.hrb-gloss-letter {
  font-size: 48px; font-weight: 800;
  color: var(--primary);
  line-height: 1; margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-teal);
  display: flex; align-items: center; gap: 12px;
}
.hrb-gloss-letter::after {
  content: '';
  flex: 1; height: 2px;
  background: linear-gradient(to right, var(--bg-teal), transparent);
}

/* Definition list */
.hrb-gloss-dl { display: flex; flex-direction: column; }
.hrb-gloss-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.hrb-gloss-item:last-child { border-bottom: none; }
.hrb-gloss-item[data-hidden="true"] { display: none; }
.hrb-gloss-dt {
  font-size: 18px; font-weight: 700;
  color: var(--dark-2, #1E293B); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.hrb-gloss-dt__abbr {
  font-size: 12px; font-weight: 700;
  background: var(--bg-teal); color: var(--primary);
  border-radius: var(--radius-full); padding: 2px 10px;
  white-space: nowrap;
}
.hrb-gloss-dd {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 8px;
}
.hrb-gloss-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none;
  transition: gap 0.15s;
}
.hrb-gloss-more:hover { gap: 8px; color: var(--primary-hover); }

/* ============================================================
   BOTTOM CTA
============================================================ */
.hrb-gloss-cta {
  background: linear-gradient(135deg, #0A7075 0%, #064E52 50%, #0F172A 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hrb-gloss-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,107,43,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(20,170,175,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hrb-gloss-cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hrb-gloss-cta__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 20px;
}
.hrb-gloss-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: white; margin-bottom: 12px; line-height: 1.25;
}
.hrb-gloss-cta p {
  font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px;
}
.hrb-gloss-cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Mobile */
@media (max-width: 767px) {
  .hrb-gloss-hero { padding: 110px 0 56px; }
  .hrb-gloss-hero__sub { font-size: 15px; }
  .hrb-gloss-body { padding: 28px 0 60px; }
  .hrb-gloss-letter { font-size: 36px; }
  .hrb-gloss-dt { font-size: 16px; }
  .hrb-gloss-cta { padding: 56px 24px; }
}
