/**
 * HockeyTron Shared Typography
 *
 * Barlow / Barlow Semi Condensed — Reebok-aligned type system.
 * Loaded by all portal layouts and standalone pages.
 * See docs/UI_STYLE_GUIDE_V2.md for the full specification.
 *
 * @version 2.0
 * @date 2026-03-29
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary */
    --color-primary: #1a3a5c;
    --color-primary-light: #2c5282;
    --color-accent: #ff6600;
    --color-accent-hover: #e55a00;
    --color-reebok-red: #cc0000;

    /* Neutrals */
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;
    --color-background: #f8f9fa;
    --color-white: #ffffff;

    /* Feedback */
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;

    /* Typography */
    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: 'Barlow Semi Condensed', 'Barlow', -apple-system, sans-serif;

    /* Font Sizes */
    --font-size-xs: 0.8125rem;   /* 13px */
    --font-size-sm: 0.9375rem;   /* 15px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-md: 1.0625rem;   /* 17px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.375rem;    /* 22px */
    --font-size-2xl: 1.625rem;   /* 26px */
    --font-size-3xl: 2.25rem;    /* 36px */
    --font-size-hero: 3rem;      /* 48px */

    /* Line Heights */
    --line-height-tight: 1.15;
    --line-height-snug: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.65;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===== BASE TYPOGRAPHY ===== */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-normal);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    margin-top: 0;
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.005em;
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: var(--line-height-snug);
}

/* ===== FORMS ===== */
.form-control {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    color: var(--color-text);
}

.form-label {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.form-text {
    font-size: var(--font-size-xs);
}

.form-error {
    font-size: var(--font-size-xs);
}

/* ===== TABLES ===== */
.table th,
.table td {
    font-size: var(--font-size-sm);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-accent {
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Reebok-style solid black button — co-branded sections only */
.btn-reebok {
    font-family: var(--font-heading);
    background-color: #212529;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 0;
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-reebok:hover {
    background-color: #000000;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    font-family: var(--font-heading);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 8px var(--spacing-md);
    background-color: var(--color-primary);
    color: white;
}

/* ===== NAVIGATION ===== */
nav a,
.nav-link {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===== CARDS ===== */
.card-title {
    font-family: var(--font-heading);
}

/* ===== ALERTS ===== */
.alert {
    font-size: var(--font-size-sm);
}
