/* ================================================================
   styles.css — Spartan Recruiting Global Stylesheet
   Supplements Tailwind CSS with custom properties, base styles,
   utility classes, and reusable component patterns extracted from
   the site's design language.
   ================================================================ */

/* ----------------------------------------------------------------
   FONTS — Google Fonts
   Lexend:  Headlines, labels, navigation
   Manrope: Body text
   Material Symbols Outlined: Icon font
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES — Material Design 3 Theme Tokens
   Mirrors the Tailwind config palette for use outside Tailwind
   utility classes (JS, dynamic styles, non-Tailwind contexts).
   ---------------------------------------------------------------- */
:root {
    /* -- Primary -- */
    --color-primary: #051625;
    --color-on-primary: #ffffff;
    --color-primary-container: #1b2b3a;
    --color-on-primary-container: #8292a5;
    --color-primary-fixed: #d3e4f8;
    --color-primary-fixed-dim: #b8c8dc;
    --color-on-primary-fixed: #0c1d2b;
    --color-on-primary-fixed-variant: #384858;
    --color-inverse-primary: #b8c8dc;
    /* -- Secondary -- */
    --color-secondary: #7c5730;
    --color-on-secondary: #ffffff;
    --color-secondary-container: #fdcb9b;
    --color-on-secondary-container: #79542d;
    --color-secondary-fixed: #ffdcbd;
    --color-secondary-fixed-dim: #eebd8e;
    --color-on-secondary-fixed: #2c1600;
    --color-on-secondary-fixed-variant: #61401b;
    /* -- Tertiary -- */
    --color-tertiary: #00172a;
    --color-on-tertiary: #ffffff;
    --color-tertiary-container: #0a2c45;
    --color-on-tertiary-container: #7794b2;
    --color-tertiary-fixed: #cee5ff;
    --color-tertiary-fixed-dim: #acc9ea;
    --color-on-tertiary-fixed: #001d33;
    --color-on-tertiary-fixed-variant: #2c4964;
    /* -- Error -- */
    --color-error: #ba1a1a;
    --color-on-error: #ffffff;
    --color-error-container: #ffdad6;
    --color-on-error-container: #93000a;
    /* -- Surface -- */
    --color-surface: #f7f9fc;
    --color-on-surface: #191c1e;
    --color-surface-variant: #e0e3e6;
    --color-on-surface-variant: #43474c;
    --color-surface-dim: #d8dadd;
    --color-surface-bright: #f7f9fc;
    --color-surface-container-lowest: #ffffff;
    --color-surface-container-low: #f2f4f7;
    --color-surface-container: #eceef1;
    --color-surface-container-high: #e6e8eb;
    --color-surface-container-highest: #e0e3e6;
    --color-surface-tint: #506071;
    --color-inverse-surface: #2d3133;
    --color-inverse-on-surface: #eff1f4;
    /* -- Outline -- */
    --color-outline: #74777c;
    --color-outline-variant: #c4c6cc;
    /* -- Background -- */
    --color-background: #f7f9fc;
    --color-on-background: #191c1e;
    /* -- Shadows -- */
    --shadow-bronze: 0 20px 40px -12px rgba(124, 87, 48, 0.15);
    --shadow-bronze-soft: 0 20px 40px -12px rgba(124, 87, 48, 0.08);
    /* -- Font families -- */
    --font-headline: 'Lexend', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-label: 'Lexend', sans-serif;
}

/* ----------------------------------------------------------------
   BASE ELEMENT STYLES
   ---------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
}
label {
    font-family: var(--font-label);
}

/* ----------------------------------------------------------------
   MATERIAL SYMBOLS — Icon font configuration
   Default: outlined, 400 weight, no fill, 24px optical size.
   ---------------------------------------------------------------- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ----------------------------------------------------------------
   SCROLLBAR UTILITIES
   Hides scrollbar while preserving scroll functionality.
   ---------------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ----------------------------------------------------------------
   SHADOW UTILITIES
   Warm bronze-toned shadows from the design language.
   ---------------------------------------------------------------- */
/* Strong variant — featured cards, CTAs, hero elements */
.bronze-glow {
    box-shadow: var(--shadow-bronze);
}
/* Soft variant — content cards, search results, secondary panels */
.bronze-glow-soft {
    box-shadow: var(--shadow-bronze-soft);
}

/* ----------------------------------------------------------------
   GRADIENT UTILITIES
   ---------------------------------------------------------------- */
/* Primary-to-container dark gradient — hero sections (contact page) */
.hero-gradient {
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-container));
}

/* ----------------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------------- */
/* 12-column editorial grid for asymmetric page layouts */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* ----------------------------------------------------------------
   CARD HOVER — Subtle lift with warm shadow
   Used on list rows, result cards, and interactive panels.
   ---------------------------------------------------------------- */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    background-color: var(--color-surface-container-lowest);
    box-shadow: var(--shadow-bronze-soft);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   SECTION ACCENT BAR
   Colored left-border bar used next to section headings.
   Default secondary color; override with Tailwind bg- classes.
   Height variants: .section-accent-sm (h-6), default (h-8).
   ---------------------------------------------------------------- */
.section-accent {
    width: 0.375rem;
    height: 2rem;
    background-color: var(--color-secondary);
    flex-shrink: 0;
    border-radius: 1px;
}
.section-accent-sm {
    width: 0.375rem;
    height: 1.5rem;
    background-color: var(--color-secondary);
    flex-shrink: 0;
    border-radius: 1px;
}

/* ----------------------------------------------------------------
   STATUS BADGES
   Base class — pair with Tailwind bg/text color classes for variants:
     .badge-accepted  → bg-primary-fixed text-on-primary-fixed
     .badge-new       → bg-secondary-fixed text-on-secondary-fixed
     .badge-applied   → bg-surface-variant text-on-surface-variant
     .badge-rejected  → bg-error-container text-on-error-container
   ---------------------------------------------------------------- */
.badge-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   FORM COMPONENTS
   ---------------------------------------------------------------- */
/* Uppercase micro-label for form fields */
.form-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-on-surface-variant);
}

/* ----------------------------------------------------------------
   STAT DISPLAY
   Label + large value pattern used in stats bento grids.
   ---------------------------------------------------------------- */
.stat-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-on-surface-variant);
}
.stat-value {
    font-family: var(--font-headline);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ----------------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------------- */
.pagination-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.125rem;
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--color-surface-container);
    color: var(--color-on-surface-variant);
    transition: all 0.2s ease;
}
.pagination-btn:hover,
.pagination-btn.active {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

/* ----------------------------------------------------------------
   NAVIGATION LINKS
   Shared pattern for top nav and footer links.
   ---------------------------------------------------------------- */
/* Top nav link — default (inactive) state */
.nav-link {
    font-family: var(--font-label);
    font-size: 0.875rem;
    letter-spacing: -0.025em;
    color: #64748b; /* slate-500 */
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #b45309; /* amber-700 */
}
/* Active nav link — visible border indicator */
.nav-link-active {
    color: #0f172a; /* slate-900 */
    border-bottom: 2px solid #b45309; /* amber-700 */
    padding-bottom: 0.25rem;
}
/* Dark mode overrides inline via Tailwind dark: classes */

/* Footer link */
.footer-link {
    font-family: var(--font-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b; /* slate-500 */
    transition: all 0.3s ease;
}
.footer-link:hover {
    color: #0f172a; /* slate-900 */
    text-decoration: underline;
    text-decoration-color: #b45309; /* amber-700 */
}

/* ----------------------------------------------------------------
   BUTTON PATTERNS
   Base patterns — compose with Tailwind sizing utilities.
   ---------------------------------------------------------------- */
/* Primary action button */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-family: var(--font-label);
    font-weight: 700;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(5, 22, 37, 0.1);
    transition: all 0.2s ease;
}
.btn-primary:hover {
    opacity: 0.9;
}
.btn-primary:active {
    transform: scale(0.95);
}
/* Secondary / ghost button */
.btn-secondary {
    background-color: var(--color-surface-container-high);
    color: var(--color-primary);
    font-family: var(--font-label);
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: var(--color-surface-variant);
}
/* CTA / accent button (bronze gradient) */
.btn-cta {
    background: linear-gradient(to top right, var(--color-secondary), var(--color-secondary-fixed-dim));
    color: #ffffff;
    font-family: var(--font-headline);
    font-weight: 700;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-bronze);
    transition: all 0.2s ease;
}
.btn-cta:active {
    transform: scale(0.95);
}
/* Dashed "add" button — for adding items to lists */
.btn-dashed {
    width: 100%;
    border: 2px dashed var(--color-outline-variant);
    color: var(--color-on-surface-variant);
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.btn-dashed:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* ----------------------------------------------------------------
   PROGRESS / THRESHOLD BAR
   ---------------------------------------------------------------- */
.progress-track {
    height: 0.5rem;
    width: 100%;
    background-color: var(--color-surface-container-highest);
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: 9999px;
}

/* ----------------------------------------------------------------
   CHECKBOX & RADIO PILL GROUP
   Styled radio buttons that look like selectable pills.
   Uses hidden input + styled sibling span (peer pattern).
   ---------------------------------------------------------------- */
.radio-pill {
    display: block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-outline-variant);
    border-radius: 0.375rem;
    font-family: var(--font-label);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.radio-pill:hover {
    background-color: var(--color-surface-container-high);
}
/* Active state applied via Tailwind peer-checked: or JS toggle */

/* Checkbox row — region/option selector */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--color-surface-container-low);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.checkbox-row:hover {
    background-color: rgba(253, 203, 155, 0.2); /* secondary-container at ~20% */
}

/* ----------------------------------------------------------------
   DIVIDER — Vertical separator (used in nav toolbar)
   ---------------------------------------------------------------- */
.divider-vertical {
    height: 1.5rem;
    width: 1px;
    background-color: var(--color-outline-variant);
    opacity: 0.2;
}

/* ----------------------------------------------------------------
   STEP NUMBER — "How it works" numbered steps
   Large faded number that highlights on group hover.
   ---------------------------------------------------------------- */
.step-number {
    font-family: var(--font-headline);
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--color-surface-container-highest);
    transition: color 0.5s ease;
}
.group:hover .step-number {
    color: var(--color-secondary);
}
