/* ─────────────────────────────────────────────────────────────────────────────
   BeeTrustScore — shared structural CSS (BTXF-T3b)

   Created by Wave-3b: extracts repeated persona-specific *shape* classes
   from Wave-2 templates into one stylesheet. Brand tokens (--honey, --teal,
   --plum, --ink, etc.) live ONLY in templates/_brand.html.tera and are
   consumed here via var().

   This file is additive — Wave-2 templates retain their scoped CSS for
   visual fidelity to the mockup, but new templates SHOULD prefer classes
   declared here so the persona-shape vocabulary stays in one place.

   Conventions:
     - .btx-* classes = new shared classes (canonical for future templates).
     - Class names mirror the in-template names where they already shipped:
         .phone .screen .statusbar .scrollarea .persona-hero .ph-title
         .s-score-card .s-sub .ps-pill .tabs .tab-btn .sidebar
     - No brand color literals (#F59E0B / #0F766E / #6B21A8). Use var(--*).

   Visual source-of-truth: mockups/beetrustscore-mockups.html.
   ─────────────────────────────────────────────────────────────────────── */

/* ── base reset (kept light — _brand.html.tera already handles font + body) */
.btx-main {
  min-height: calc(100vh - 56px);
}

/* ── shared phone-frame skeleton (mobile-first persona surfaces) ──────────
   Used by student + parent personas. Each persona may override width/height/
   border-radius via its own scoped selector (#p-student .phone, #p-parent
   .phone) — those overrides remain in-template. */

.phone {
  width: 300px;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 56px rgba(11, 18, 32, .25);
  position: relative;
}

.phone .screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone .statusbar {
  flex: 0 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 18px 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}

.phone .scrollarea {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 60px;
}

/* ── score card (student primary surface) ──────────────────────────────── */

.s-score-card {
  margin: 6px 22px 14px;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.s-score-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 158, 11, .35) 0%, transparent 70%);
  pointer-events: none;
}

.s-score-card .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  font-weight: 700;
}

.s-score-card .big {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 6px;
}

.s-score-card .big .of {
  font-size: 14px;
  color: rgba(255, 255, 255, .47);
  font-weight: 500;
  margin-left: 4px;
}

/* ── pillar sub-bar row ─────────────────────────────────────────────────── */

.s-sub {
  display: grid;
  grid-template-columns: 90px 1fr 30px;
  gap: 9px;
  align-items: center;
  font-size: 11px;
}

.s-sub .lbl {
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.s-sub .track {
  height: 6px;
  background: var(--fog);
  border-radius: 3px;
  overflow: hidden;
}

.s-sub .fill {
  display: block;
  height: 100%;
  background: var(--honey);
  border-radius: 3px;
}

.s-sub .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

/* ── persona hero stripe (top of each desktop persona surface) ──────────── */

.persona-hero {
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.persona-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ph-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 9px;
}

.ph-title {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.ph-title .em {
  font-style: italic;
  font-weight: 700;
}

.ph-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

/* ── persona switcher sticky pill (shared by all personas) ───────────────── */
/* The pill itself ships in templates/_persona_switcher.html.tera (inline,
   intentionally — it's a single small block). The shared .ps-pill base
   below is for any future call-site that wants the same look. */

.ps-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--honey-glow);
  color: var(--honey-d);
}

/* ── tab bar primitives (mobile persona footer + desktop sub-nav) ───────── */

.tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(11, 18, 32, .06);
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--mute);
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
  cursor: pointer;
  background: none;
  border: 0;
}

.tab-btn.active {
  color: var(--honey-d);
}

.tab-btn .ic {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 14px;
}

.tab-btn.active .ic {
  background: var(--honey-glow);
  color: var(--honey-d);
}

/* ── desktop sidebar shell (recruiter, tpo, admin consoles) ──────────────── */

.sidebar {
  background: var(--ink);
  color: rgba(255, 255, 255, .6);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Inter', sans-serif;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 6px;
}

.sidebar .brand .name {
  font-weight: 700;
  color: #fff;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sidebar .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 10px 4px 2px;
}

.sidebar .it {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 500;
  transition: background .12s, color .12s;
  cursor: pointer;
}

.sidebar .it:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.sidebar .it.active {
  background: var(--honey-d);
  color: #fff;
  font-weight: 600;
}

.sidebar .it .ic {
  width: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  color: var(--honey-soft);
  font-family: 'JetBrains Mono', monospace;
}

.sidebar .it.active .ic {
  color: #fff;
}

/* ── shared empty-state ────────────────────────────────────────────────── */

.btx-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
  background: var(--fog);
  border-radius: 12px;
  border: 1px dashed var(--line);
}

.btx-empty b {
  display: block;
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ── responsive collapse for sidebar consoles ──────────────────────────── */

@media (max-width: 1100px) {
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 14px;
    gap: 8px;
  }

  .sidebar .brand {
    width: 100%;
    padding-bottom: 8px;
    margin-bottom: 0;
  }

  .sidebar .lbl {
    display: none;
  }

  .sidebar .it {
    padding: 6px 10px;
    font-size: 12px;
  }
}
