/* ==========================================================================
   spx-core.css
   ============================================================================
   Core Design System Tokens for SchoolPlex.
   Provides global CSS variables, utility classes, and primitive UI components
   (like buttons) shared across both the Marketing Site and the Portals.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --spx-brand-red: #e11d48;
    --spx-brand-red-hover: #f43f5e;
    --spx-brand-green: #059669;
    --spx-brand-green-hover: #047857;

    /* Dark palette (Primary Base) */
    --spx-dark-bg: #0f172a;
    --spx-dark-card: #1f2937;
    --spx-dark-surface: #111827;
    --spx-dark-border: #374151;

    /* Text */
    --spx-text-muted: #94a3b8;
    --spx-text-light: #f1f5f9;
    --spx-text-body: #1e293b;
    --spx-text-subtle: #64748b;
    --spx-text-dimmed: #cbd5e1;

    /* Radii */
    --spx-radius-sm: 4px;
    --spx-radius-md: 12px;
    --spx-radius-lg: 16px;
    --spx-radius-xl: 24px;
    --spx-radius-2xl: 32px;

    /* Sizing */
    --spx-header-height: 70px;
    --spx-input-height: 48px;
}

/* --------------------------------------------------------------------------
   2. BUTTON PRIMITIVES
   -------------------------------------------------------------------------- */
.spx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--spx-input-height);
    border-radius: var(--spx-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    padding: 0 1.5rem;
}

.spx-btn--primary {
    background: var(--spx-brand-red);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(225, 29, 72, 0.39);
}

.spx-btn--primary:hover {
    background: var(--spx-brand-red-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.spx-btn--outline {
    background: transparent;
    color: var(--spx-brand-red);
    border: 1px solid var(--spx-brand-red);
}

.spx-btn--outline:hover {
    background: rgba(225, 29, 72, 0.05);
    color: var(--spx-brand-red-hover);
}

.spx-btn--white {
    background: #fff;
    color: var(--spx-dark-bg);
}

.spx-btn--white:hover {
    background: #f8fafc;
    color: var(--spx-dark-bg);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.spx-btn--wizard {
    background: var(--spx-brand-red);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    border: none;
    box-shadow: none;
}

.spx-btn--wizard:hover {
    background: var(--spx-brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.4);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
.spx-text-accent { color: var(--spx-brand-red); }
.spx-text-muted { color: var(--spx-text-muted) !important; }

.spx-mb-3 { margin-bottom: 1rem; }
.spx-mb-4 { margin-bottom: 1.5rem; }
.spx-mt-5 { margin-top: 3rem; }
.spx-text-center { text-align: center; }
.spx-w-100 { width: 100%; }
.spx-w-75 { width: 75%; }
.spx-mx-auto { margin-left: auto; margin-right: auto; }
.spx-ls-wide { letter-spacing: 0.05em; }
.spx-hidden { display: none; }

/* Global Styling Utilities */
.spx-border-subtle { border-color: rgba(255, 255, 255, 0.05) !important; }
.spx-border-divider { border-color: var(--spx-dark-border) !important; }
.spx-transition { transition: all 0.2s ease; }
.spx-text-sm { font-size: 0.875rem; }
.spx-text-xs { font-size: 0.75rem; letter-spacing: 0.05em; }
.spx-text-accent { color: var(--spx-brand-red) !important; }
.spx-badge-subtle { background: rgba(255,255,255,0.05); border: 1px solid var(--spx-dark-border); }
.spx-rounded-md { border-radius: var(--spx-radius-md) !important; }
