/* ==========================================================================
   CODEHIVE INSTITUTION — CENTRALIZED MODERN EDTECH TYPOGRAPHY SYSTEM
   Primary Heading Font: Sora (400, 500, 600, 700, 800)
   Primary Body & UI Font: Plus Jakarta Sans (400, 500, 600, 700, 800)
   Programming Font: JetBrains Mono (400, 500, 600)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-heading: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Responsive Fluid Scale Variables */
  --font-size-hero-h1: clamp(32px, 4.8vw, 62px);
  --font-size-section-h2: clamp(26px, 3.4vw, 40px);
  --font-size-h3: clamp(20px, 2.4vw, 26px);
  --font-size-course-title: clamp(17px, 1.8vw, 20px);
  --font-size-body: 16px;
  --font-size-nav: 14.5px;
  --font-size-button: 14.5px;
  --font-size-label: 13.5px;
  --font-size-caption: 12.5px;
}

/* Base Body and Interactive Elements */
html,
body,
button,
input,
select,
textarea,
optgroup {
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings: Sora (Modern Geometric EdTech Look) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.hero-h1, .section-h2,
.home-hero h1,
.home-section-head h2,
.panel-topbar-name,
.surface-heading h2,
.classroom-title,
.online-live-title,
.card-title,
.marketplace-title,
.bento-card-value,
.course-title,
.category-heading,
.page-title,
.auth-panel h2,
.login-heading-group h2,
.deck-stage-content h2,
.cert-document h1,
.cert-document h2 {
  font-family: var(--font-heading) !important;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* Paragraphs, labels, and table cells: Plus Jakarta Sans */
p, li, label, td, th, dt, dd, span, div, a {
  font-family: var(--font-body);
}

/* Code, Terminal, Snippets: JetBrains Mono (Exclusively for technical code) */
code, pre, kbd, samp, var, tt,
.code-block, .syntax-code, .terminal-window,
.live-class-code, .snippet-editor {
  font-family: var(--font-code) !important;
}

/* Responsive Scale Rules */
.home-hero h1 {
  font-size: var(--font-size-hero-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-section-head h2,
.catalog-hero h1,
.auth-panel h2 {
  font-size: var(--font-size-section-h2);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.marketplace-title,
.course-card-title {
  font-size: var(--font-size-course-title);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Navigation & Interactive UI */
.site-nav a,
.courses-dropdown a,
.courses-menu-trigger a,
.site-actions a,
.btn,
button,
.filter-pill,
.m-pill,
.tab-btn,
.account-sidebar a,
.nav-tab {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-button);
  font-weight: 600;
}

/* Forms, Inputs, and Labels */
label,
.form-label,
.auth-field-group label {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-label);
  font-weight: 600;
}

input,
select,
textarea,
.site-search-input {
  font-family: var(--font-body) !important;
  font-size: 14px;
}

/* Captions and Metadata */
small,
caption,
.text-caption,
.badge-caption,
.muted,
.chf-tagline {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
}

/* LiveKit Classroom Typography Controls */
.classroom-header h1,
.classroom-title,
.live-session-title,
.live-admin-hero h2 {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.participant-name,
.control-btn,
.status-pill,
.live-badge,
.chat-message,
.live-admin-button {
  font-family: var(--font-body) !important;
}

.code-share-content,
.livekit-code-block {
  font-family: var(--font-code) !important;
}
