/* =============================================
   Stairio Design System — Base Styles
   Shared across ALL frontend pages
   ============================================= */

/* ===== Standardized CSS Variables ===== */
:root {
    /* Brand Colors */
    --brand: #8B5CF6;
    --brand-dark: #7C3AED;
    --brand-light: #A78BFA;
    --brand-lighter: #C4B5FD;

    /* Aliases (backward-compat with --primary naming) */
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;

    /* Accent Colors */
    --secondary: #06B6D4;
    --accent: #F472B6;
    --success: #22c55e;
    --error: #ef4444;

    /* Dark Theme (Default) */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --surface: #0a0a0f;
    --surface-2: #121218;
    --surface-3: #18181f;

    /* Text Colors */
    --text: #f1f1f3;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --muted: #71717a;

    /* Borders & Lines */
    --line: rgba(255, 255, 255, 0.08);
    --line-solid: #27272a;

    /* Sizing */
    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-brand: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* ===== Universal Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

/* ===== Body Defaults ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 60px;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Shared Keyframe Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* ===== Skip to Content (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--brand);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
