/**
 * RecruiterX.ai Brand Design System
 * Version 1.0 - January 2026
 *
 * Your 1000-Person Recruiting Team
 */

/* ================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================ */

:root {
    /* Primary Colors */
    --rx-navy: #0F172A;
    --rx-navy-light: #1E293B;
    --rx-navy-dark: #020617;

    --rx-cyan: #06B6D4;
    --rx-cyan-light: #22D3EE;
    --rx-cyan-dark: #0891B2;

    /* Neutral Colors */
    --rx-white: #FFFFFF;
    --rx-gray-50: #F8FAFC;
    --rx-gray-100: #F1F5F9;
    --rx-gray-200: #E2E8F0;
    --rx-gray-300: #CBD5E1;
    --rx-gray-400: #94A3B8;
    --rx-gray-500: #64748B;
    --rx-gray-600: #475569;
    --rx-gray-700: #334155;
    --rx-gray-800: #1E293B;
    --rx-gray-900: #0F172A;

    /* Semantic Colors */
    --rx-success: #10B981;
    --rx-success-light: #34D399;
    --rx-warning: #F59E0B;
    --rx-warning-light: #FBBF24;
    --rx-error: #EF4444;
    --rx-error-light: #F87171;
    --rx-info: #3B82F6;
    --rx-info-light: #60A5FA;

    /* Typography */
    --rx-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rx-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --rx-text-xs: 0.75rem;     /* 12px */
    --rx-text-sm: 0.875rem;    /* 14px */
    --rx-text-base: 1rem;      /* 16px */
    --rx-text-lg: 1.125rem;    /* 18px */
    --rx-text-xl: 1.25rem;     /* 20px */
    --rx-text-2xl: 1.5rem;     /* 24px */
    --rx-text-3xl: 1.875rem;   /* 30px */
    --rx-text-4xl: 2.25rem;    /* 36px */
    --rx-text-5xl: 3rem;       /* 48px */
    --rx-text-6xl: 3.75rem;    /* 60px */

    /* Font Weights */
    --rx-font-normal: 400;
    --rx-font-medium: 500;
    --rx-font-semibold: 600;
    --rx-font-bold: 700;

    /* Spacing */
    --rx-space-1: 0.25rem;     /* 4px */
    --rx-space-2: 0.5rem;      /* 8px */
    --rx-space-3: 0.75rem;     /* 12px */
    --rx-space-4: 1rem;        /* 16px */
    --rx-space-5: 1.25rem;     /* 20px */
    --rx-space-6: 1.5rem;      /* 24px */
    --rx-space-8: 2rem;        /* 32px */
    --rx-space-10: 2.5rem;     /* 40px */
    --rx-space-12: 3rem;       /* 48px */
    --rx-space-16: 4rem;       /* 64px */
    --rx-space-20: 5rem;       /* 80px */

    /* Border Radius */
    --rx-radius-sm: 0.25rem;   /* 4px */
    --rx-radius-md: 0.5rem;    /* 8px */
    --rx-radius-lg: 0.75rem;   /* 12px */
    --rx-radius-xl: 1rem;      /* 16px */
    --rx-radius-2xl: 1.5rem;   /* 24px */
    --rx-radius-full: 9999px;

    /* Shadows */
    --rx-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --rx-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --rx-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --rx-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --rx-shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
    --rx-shadow-glow-lg: 0 0 40px rgba(6, 182, 212, 0.4);

    /* Transitions */
    --rx-transition-fast: 150ms ease;
    --rx-transition-base: 200ms ease;
    --rx-transition-slow: 300ms ease;

    /* Z-Index */
    --rx-z-dropdown: 1000;
    --rx-z-sticky: 1020;
    --rx-z-fixed: 1030;
    --rx-z-modal-backdrop: 1040;
    --rx-z-modal: 1050;
    --rx-z-tooltip: 1060;
}


/* ================================================
   BASE STYLES
   ================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--rx-font-family);
    font-size: var(--rx-text-base);
    font-weight: var(--rx-font-normal);
    line-height: 1.6;
    color: var(--rx-gray-900);
    background-color: var(--rx-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark Mode Body */
body.dark-mode {
    color: var(--rx-gray-100);
    background-color: var(--rx-navy);
}


/* ================================================
   TYPOGRAPHY
   ================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--rx-font-semibold);
    line-height: 1.2;
    color: var(--rx-navy);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: var(--rx-white);
}

h1 { font-size: var(--rx-text-5xl); }
h2 { font-size: var(--rx-text-4xl); }
h3 { font-size: var(--rx-text-3xl); }
h4 { font-size: var(--rx-text-2xl); }
h5 { font-size: var(--rx-text-xl); }
h6 { font-size: var(--rx-text-lg); }

p {
    margin-bottom: var(--rx-space-4);
}

a {
    color: var(--rx-cyan);
    text-decoration: none;
    transition: color var(--rx-transition-fast);
}

a:hover {
    color: var(--rx-cyan-light);
}

.text-gradient {
    background: linear-gradient(135deg, var(--rx-cyan) 0%, var(--rx-cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ================================================
   BUTTONS
   ================================================ */

.rx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rx-space-2);
    padding: var(--rx-space-3) var(--rx-space-6);
    font-family: var(--rx-font-family);
    font-size: var(--rx-text-sm);
    font-weight: var(--rx-font-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--rx-radius-lg);
    cursor: pointer;
    transition: all var(--rx-transition-base);
}

.rx-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button - Cyan */
.rx-btn-primary {
    color: var(--rx-navy);
    background: linear-gradient(135deg, var(--rx-cyan) 0%, var(--rx-cyan-light) 100%);
    box-shadow: var(--rx-shadow-md), var(--rx-shadow-glow);
}

.rx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--rx-shadow-lg), var(--rx-shadow-glow-lg);
}

.rx-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button - Outline */
.rx-btn-secondary {
    color: var(--rx-cyan);
    background: transparent;
    border: 2px solid var(--rx-cyan);
}

.rx-btn-secondary:hover {
    color: var(--rx-navy);
    background: var(--rx-cyan);
}

/* Ghost Button */
.rx-btn-ghost {
    color: var(--rx-gray-600);
    background: transparent;
}

.rx-btn-ghost:hover {
    color: var(--rx-cyan);
    background: var(--rx-gray-100);
}

/* Button Sizes */
.rx-btn-sm {
    padding: var(--rx-space-2) var(--rx-space-4);
    font-size: var(--rx-text-xs);
}

.rx-btn-lg {
    padding: var(--rx-space-4) var(--rx-space-8);
    font-size: var(--rx-text-base);
}


/* ================================================
   CARDS
   ================================================ */

.rx-card {
    background: var(--rx-white);
    border-radius: var(--rx-radius-xl);
    box-shadow: var(--rx-shadow-md);
    padding: var(--rx-space-6);
    transition: all var(--rx-transition-base);
}

.rx-card:hover {
    box-shadow: var(--rx-shadow-lg);
}

.rx-card-dark {
    background: var(--rx-navy-light);
    color: var(--rx-gray-100);
}

.rx-card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* ================================================
   INPUTS
   ================================================ */

.rx-input {
    width: 100%;
    padding: var(--rx-space-3) var(--rx-space-4);
    font-family: var(--rx-font-family);
    font-size: var(--rx-text-base);
    color: var(--rx-gray-900);
    background: var(--rx-white);
    border: 2px solid var(--rx-gray-200);
    border-radius: var(--rx-radius-lg);
    outline: none;
    transition: all var(--rx-transition-fast);
}

.rx-input:focus {
    border-color: var(--rx-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.rx-input::placeholder {
    color: var(--rx-gray-400);
}

.rx-input-dark {
    color: var(--rx-white);
    background: var(--rx-navy-light);
    border-color: var(--rx-gray-700);
}

.rx-input-dark:focus {
    border-color: var(--rx-cyan);
}


/* ================================================
   BADGES & TAGS
   ================================================ */

.rx-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--rx-space-1) var(--rx-space-3);
    font-size: var(--rx-text-xs);
    font-weight: var(--rx-font-semibold);
    border-radius: var(--rx-radius-full);
}

.rx-badge-primary {
    color: var(--rx-navy);
    background: var(--rx-cyan);
}

.rx-badge-success {
    color: var(--rx-white);
    background: var(--rx-success);
}

.rx-badge-warning {
    color: var(--rx-navy);
    background: var(--rx-warning);
}

.rx-badge-error {
    color: var(--rx-white);
    background: var(--rx-error);
}


/* ================================================
   HERO SECTION
   ================================================ */

.rx-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--rx-space-8);
    background: linear-gradient(135deg, var(--rx-navy) 0%, var(--rx-navy-light) 100%);
    color: var(--rx-white);
    position: relative;
    overflow: hidden;
}

.rx-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.rx-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.rx-hero h1 {
    color: var(--rx-white);
    margin-bottom: var(--rx-space-4);
}

.rx-hero p {
    font-size: var(--rx-text-xl);
    color: var(--rx-gray-300);
    margin-bottom: var(--rx-space-8);
}

.rx-hero-stats {
    display: flex;
    gap: var(--rx-space-8);
    justify-content: center;
    margin-top: var(--rx-space-12);
}

.rx-hero-stat {
    text-align: center;
}

.rx-hero-stat-value {
    font-size: var(--rx-text-3xl);
    font-weight: var(--rx-font-bold);
    color: var(--rx-cyan);
}

.rx-hero-stat-label {
    font-size: var(--rx-text-sm);
    color: var(--rx-gray-400);
}


/* ================================================
   NAVIGATION
   ================================================ */

.rx-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--rx-z-fixed);
    padding: var(--rx-space-4) var(--rx-space-8);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rx-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.rx-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--rx-space-3);
    font-size: var(--rx-text-xl);
    font-weight: var(--rx-font-bold);
    color: var(--rx-white);
}

.rx-nav-links {
    display: flex;
    gap: var(--rx-space-6);
}

.rx-nav-link {
    color: var(--rx-gray-300);
    font-weight: var(--rx-font-medium);
    transition: color var(--rx-transition-fast);
}

.rx-nav-link:hover {
    color: var(--rx-cyan);
}


/* ================================================
   DATA TABLE
   ================================================ */

.rx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rx-text-sm);
}

.rx-table th,
.rx-table td {
    padding: var(--rx-space-3) var(--rx-space-4);
    text-align: left;
    border-bottom: 1px solid var(--rx-gray-200);
}

.rx-table th {
    font-weight: var(--rx-font-semibold);
    color: var(--rx-gray-600);
    background: var(--rx-gray-50);
}

.rx-table tr:hover td {
    background: var(--rx-gray-50);
}

.rx-table-dark th {
    color: var(--rx-gray-400);
    background: var(--rx-navy-light);
}

.rx-table-dark td {
    border-color: var(--rx-gray-700);
}

.rx-table-dark tr:hover td {
    background: var(--rx-navy-light);
}


/* ================================================
   LOADING STATES
   ================================================ */

.rx-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rx-gray-200);
    border-top-color: var(--rx-cyan);
    border-radius: 50%;
    animation: rx-spin 0.8s linear infinite;
}

@keyframes rx-spin {
    to { transform: rotate(360deg); }
}

.rx-skeleton {
    background: linear-gradient(
        90deg,
        var(--rx-gray-200) 0%,
        var(--rx-gray-100) 50%,
        var(--rx-gray-200) 100%
    );
    background-size: 200% 100%;
    animation: rx-shimmer 1.5s infinite;
    border-radius: var(--rx-radius-md);
}

@keyframes rx-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ================================================
   UTILITY CLASSES
   ================================================ */

/* Text Colors */
.text-navy { color: var(--rx-navy); }
.text-cyan { color: var(--rx-cyan); }
.text-white { color: var(--rx-white); }
.text-gray { color: var(--rx-gray-500); }
.text-success { color: var(--rx-success); }
.text-warning { color: var(--rx-warning); }
.text-error { color: var(--rx-error); }

/* Background Colors */
.bg-navy { background-color: var(--rx-navy); }
.bg-cyan { background-color: var(--rx-cyan); }
.bg-white { background-color: var(--rx-white); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--rx-space-2); }
.gap-4 { gap: var(--rx-space-4); }
.gap-6 { gap: var(--rx-space-6); }
.gap-8 { gap: var(--rx-space-8); }

/* Spacing */
.p-4 { padding: var(--rx-space-4); }
.p-6 { padding: var(--rx-space-6); }
.p-8 { padding: var(--rx-space-8); }
.m-auto { margin: auto; }
.mt-4 { margin-top: var(--rx-space-4); }
.mt-8 { margin-top: var(--rx-space-8); }
.mb-4 { margin-bottom: var(--rx-space-4); }
.mb-8 { margin-bottom: var(--rx-space-8); }

/* Border Radius */
.rounded { border-radius: var(--rx-radius-md); }
.rounded-lg { border-radius: var(--rx-radius-lg); }
.rounded-xl { border-radius: var(--rx-radius-xl); }
.rounded-full { border-radius: var(--rx-radius-full); }

/* Shadows */
.shadow { box-shadow: var(--rx-shadow-md); }
.shadow-lg { box-shadow: var(--rx-shadow-lg); }
.shadow-glow { box-shadow: var(--rx-shadow-glow); }

/* Responsive */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--rx-space-4);
}

@media (max-width: 768px) {
    h1 { font-size: var(--rx-text-4xl); }
    h2 { font-size: var(--rx-text-3xl); }
    h3 { font-size: var(--rx-text-2xl); }

    .rx-hero-stats {
        flex-direction: column;
        gap: var(--rx-space-4);
    }

    .rx-nav-links {
        display: none;
    }
}
