/**
 * EMOTE AI - Base Styles
 * CSS variables, reset, and typography
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Colors - Background */
    --color-bg-primary: #1a1a1a;
    --color-bg-surface: rgba(255, 255, 255, 0.03);
    --color-bg-elevated: rgba(30, 30, 30, 0.6);

    /* Colors - Border */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    /* Colors - Brand (derived from Emote AI cube logo) */
    --color-brand-yellow: #FFC833;    /* Cube left face */
    --color-brand-amber: #FFB833;     /* Cube top face */
    --color-brand-orange: #F5A623;    /* Cube right face */
    --color-brand-dark: #7A5C1E;      /* Cube eyes/mouth */
    --color-accent: #F5A623;
    --color-success: #00f260;
    --color-danger: #ff4b4b;
    --color-warning: #FFC833;
    --gradient-primary: linear-gradient(135deg, #FFC833 0%, #F5A623 100%);

    /* Colors - Text */
    --color-text-primary: #ffffff;
    --color-text-secondary: #888888;
    --color-text-muted: #555555;

    /* Colors - Emotions */
    --color-emotion-angry: #ff4b4b;
    --color-emotion-disgust: #a26b48;
    --color-emotion-fear: #9d46ff;
    --color-emotion-happy: #00f260;
    --color-emotion-neutral: #95a5a6;
    --color-emotion-sad: #3498db;
    --color-emotion-surprise: #f1c40f;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 30px;
    --spacing-4xl: 40px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 8px currentColor;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease-out;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 500;
    --z-modal: 999;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    background-image: none;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Remove default focus outline, we'll add custom ones */
:focus {
    outline: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); }

/* ========================================
   Utility Classes
   ======================================== */
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-center { text-align: center; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
