/* ================================================================
   TYPOGRAPHY SYSTEM — Rocket Academy
   Semantic classes for consistent typographic hierarchy.
   Based on Space Grotesk (display) + Inter (body).

   Usage:
     <p class="eyebrow">MÓDULO 01</p>
     <h1 class="heading-display-xl">Título grande</h1>
     <p class="body-lg">Texto principal</p>

   Note: these classes use tokens from tokens.css.
   ================================================================ */

/* ── DISPLAY HEADINGS (Space Grotesk) ─────────────────────────────── */

.heading-display-xl {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);  /* 36-48px responsive */
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    font-optical-sizing: auto;
}

.heading-display-lg {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem); /* 28-36px */
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    font-optical-sizing: auto;
}

.heading-display-md {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem); /* 22-28px */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--text-primary);
    font-optical-sizing: auto;
}

.heading-section {
    font-family: var(--font-display);
    font-size: 1.375rem; /* 22px */
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

/* ── BODY TEXT (Inter) ────────────────────────────────────────── */

.body-lg {
    font-family: var(--font-body);
    font-size: 1rem;         /* 16px */
    line-height: 1.6;
    color: var(--text-primary);
}

.body-md {
    font-family: var(--font-body);
    font-size: 0.875rem;     /* 14px */
    line-height: 1.55;
    color: var(--text-primary);
}

.body-sm {
    font-family: var(--font-body);
    font-size: 0.8125rem;    /* 13px */
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ── CAPTION & METADATA ──────────────────────────────────────── */

.caption {
    font-family: var(--font-body);
    font-size: 0.75rem;      /* 12px */
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ── EYEBROW (Stripe pattern — precedes display headings) ────── */

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.6875rem;    /* 11px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    line-height: 1;
}

/* Variant: muted eyebrow (for secondary sections) */
.eyebrow-muted {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    line-height: 1;
}

/* ── LABEL (form labels, small headings) ─────────────────────── */

.label {
    font-family: var(--font-body);
    font-size: 0.8125rem;    /* 13px */
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
}

.label-sm {
    font-family: var(--font-body);
    font-size: 0.6875rem;    /* 11px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    line-height: 1;
}

/* ── TABS (reusable pattern — course detail, profile, etc.) ── */

.course-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.course-tab {
    position: relative;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--dur-base) var(--ease-standard);
}
.course-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--dur-base) var(--ease-standard);
}
.course-tab:hover { color: var(--text-secondary); }
.course-tab.active { color: var(--text-primary); }
.course-tab.active::after { transform: scaleX(1); }

/* ── TIER BADGE (prestige indicator) ─────────────────────────── */

.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    cursor: default;
}
.tier-badge--mini { width: 12px; height: 12px; }
.tier-badge--small { width: 16px; height: 16px; }
.tier-badge--medium { width: 24px; height: 24px; }
.tier-badge--large { width: 48px; height: 48px; }

/* Positioning helper: overlap bottom-right of avatar */
.tier-badge-overlap {
    position: absolute;
    bottom: -2px;
    right: -2px;
}
