/**
 * MUSA TTS - Neo-Brutalist Design System
 * Dark Neutral + Orange | Bold Borders | High Contrast
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */
:root {
    /* Primary Colors - Indigo/Purple (2026 Modern SaaS) */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    --primary-glow: rgba(99, 102, 241, 0.15);

    /* Accent Colors - Purple/Violet */
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;

    /* Semantic Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.08);

    /* Surface Colors (Light Minimalist) */
    --bg-body: #ffffff;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    --surface-1: #fafafa;
    --surface-2: #ffffff;
    --surface-3: #f5f5f5;
    --surface-glass: rgba(255, 255, 255, 0.8);
    --surface-hover: rgba(99, 102, 241, 0.04);

    /* Border Colors - Minimal & Subtle */
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --border-active: #6366f1;
    --border-width: 1px;

    /* Text Colors */
    --text: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --text-disabled: #a3a3a3;

    /* Minimal Shadows (soft, subtle) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-brutal: 0 4px 12px rgba(99, 102, 241, 0.15);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius - Minimal & Rounded */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Transitions */
    --transition-fast: 100ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-tooltip: 1100;

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;
    --content-max-width: 1400px;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-body);
    min-height: 100vh;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.text-gradient {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

/* ============================================================================
   LAYOUT UTILITIES
   ============================================================================ */
.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================================================
   SCROLLBAR STYLING
   ============================================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-left: 2px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border: 2px solid var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================================================
   SELECTION
   ============================================================================ */
::selection {
    background: var(--primary);
    color: #0a0a0a;
}
