/* ============================================================================
   LOREBENCH THEME VARIABLES
   ============================================================================
   Change these values to update the entire site's color scheme
   ============================================================================ */

:root {
    /* PRIMARY ACCENT COLOR (currently gold/brown) */
    --lb-accent-primary: #d4af37; /* Main accent (gold) */
    --lb-accent-primary-light: #f4d03f; /* Lighter accent */
    --lb-accent-primary-dark: #b8941f; /* Darker accent */
    --lb-accent-primary-darker: #9c7d1a; /* Even darker accent */
    
    /* BACKGROUND COLORS */
    --lb-bg-base: #0f0f0f; /* Page background */
    --lb-bg-elevated: #1a1a1a; /* Cards, panels */
    --lb-bg-elevated-2: #222; /* Secondary cards */
    --lb-bg-elevated-3: #2a2a2a; /* Tertiary level */
    --lb-bg-input: #222; /* Input fields */
    --lb-bg-hover: #333; /* Hover states */
    
    /* BORDER COLORS */
    --lb-border-subtle: #2a2a2a; /* Subtle borders */
    --lb-border-default: #333; /* Default borders */
    --lb-border-strong: #444; /* Strong borders */
    --lb-border-focus: var(--lb-accent-primary); /* Focus state */
    
    /* TEXT COLORS */
    --lb-text-primary: #e0e0e0; /* Main text */
    --lb-text-secondary: #ccc; /* Secondary text */
    --lb-text-muted: #888; /* Muted text */
    --lb-text-subtle: #666; /* Very subtle text */
    --lb-text-inverse: #0f0f0f; /* Text on accent */
    
    /* STATE COLORS */
    --lb-success: #4caf50; /* Success states */
    --lb-error: #ff6666; /* Error states */
    --lb-error-bg: #3a1f1f; /* Error background */
    --lb-error-border: #6b2c2c; /* Error border */
    --lb-warning: #f4d03f; /* Warning states */
    --lb-info: #4a9eff; /* Info states */
    
    /* COMPONENT-SPECIFIC */
    --lb-card-bg: var(--lb-bg-elevated);
    --lb-card-border: var(--lb-border-subtle);
    --lb-card-header-bg: linear-gradient(135deg, var(--lb-bg-elevated-3) 0%, var(--lb-bg-elevated) 100%);
    
    /* INTERACTIVE ELEMENTS */
    --lb-button-primary-bg: var(--lb-accent-primary);
    --lb-button-primary-hover: var(--lb-accent-primary-light);
    --lb-button-primary-text: var(--lb-text-inverse);
    --lb-button-secondary-bg: var(--lb-bg-elevated-3);
    --lb-button-secondary-hover: var(--lb-bg-hover);
    --lb-button-secondary-text: var(--lb-text-secondary);
    
    /* RATING SYSTEM */
    --lb-rating-fill: var(--lb-accent-primary);
    --lb-rating-empty: #444;
    --lb-rating-hover: var(--lb-accent-primary-light);
    
    /* SHADOWS */
    --lb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --lb-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --lb-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    
    /* SPACING */
    --lb-spacing-xs: 0.25rem;
    --lb-spacing-sm: 0.5rem;
    --lb-spacing-md: 1rem;
    --lb-spacing-lg: 1.5rem;
    --lb-spacing-xl: 2rem;
    
    /* BORDER RADIUS */
    --lb-radius-sm: 4px;
    --lb-radius-md: 8px;
    --lb-radius-lg: 12px;
    --lb-radius-full: 9999px;
    
    /* TRANSITIONS */
    --lb-transition-fast: 0.15s ease;
    --lb-transition-base: 0.2s ease;
    --lb-transition-slow: 0.3s ease;
    
    /* TYPOGRAPHY */
    --lb-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --lb-font-family-mono: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    --lb-font-size-xs: 0.75rem;
    --lb-font-size-sm: 0.875rem;
    --lb-font-size-base: 1rem;
    --lb-font-size-lg: 1.125rem;
    --lb-font-size-xl: 1.25rem;
    --lb-font-size-2xl: 1.5rem;
    --lb-font-size-3xl: 1.875rem;
    --lb-font-weight-normal: 400;
    --lb-font-weight-medium: 500;
    --lb-font-weight-semibold: 600;
    --lb-font-weight-bold: 700;
    --lb-line-height-tight: 1.25;
    --lb-line-height-normal: 1.5;
    --lb-line-height-relaxed: 1.75;
    
    /* ========================================================================
       BACKWARDS COMPATIBILITY MAPPINGS
       ======================================================================== 
       These map old variable names to the new lorebench theme.
       This allows existing components to work while we migrate them.
    */
    
    /* Color Mappings */
    --primary-color: var(--lb-accent-primary);
    --primary-hover: var(--lb-accent-primary-light);
    --bg-secondary: var(--lb-bg-elevated-2);
    --bg-card: var(--lb-bg-elevated);
    --bg-hover: var(--lb-bg-hover);
    --border-color: var(--lb-border-default);
    --text-primary: var(--lb-text-primary);
    --text-secondary: var(--lb-text-secondary);
    --text-muted: var(--lb-text-muted);
    
    /* UX Component Mappings */
    --ux-bg: var(--lb-bg-base);
    --ux-text: var(--lb-text-primary);
}

/* ============================================================================
   ALTERNATIVE COLOR SCHEMES (uncomment to use)
   ============================================================================ */

/* BLUE THEME */
/*
:root {
    --lb-accent-primary: #4a9eff;
    --lb-accent-primary-light: #6eb3ff;
    --lb-accent-primary-dark: #3280db;
    --lb-accent-primary-darker: #2667b8;
}
*/

/* PURPLE THEME */
/*
:root {
    --lb-accent-primary: #9b59b6;
    --lb-accent-primary-light: #b77fcd;
    --lb-accent-primary-dark: #7d3c98;
    --lb-accent-primary-darker: #5f2c7a;
}
*/

/* GREEN THEME */
/*
:root {
    --lb-accent-primary: #4caf50;
    --lb-accent-primary-light: #66bb6a;
    --lb-accent-primary-dark: #388e3c;
    --lb-accent-primary-darker: #2c6e30;
}
*/

/* RED THEME */
/*
:root {
    --lb-accent-primary: #e74c3c;
    --lb-accent-primary-light: #ec7063;
    --lb-accent-primary-dark: #c0392b;
    --lb-accent-primary-darker: #a02922;
}
*/

/* TEAL THEME */
/*
:root {
    --lb-accent-primary: #1abc9c;
    --lb-accent-primary-light: #48c9b0;
    --lb-accent-primary-dark: #16a085;
    --lb-accent-primary-darker: #138169;
}
*/

/* ORANGE THEME */
/*
:root {
    --lb-accent-primary: #f39c12;
    --lb-accent-primary-light: #f5b041;
    --lb-accent-primary-dark: #d68910;
    --lb-accent-primary-darker: #b8730d;
}
*/

/* ============================================================================
   GLOBAL BASE STYLES
   ============================================================================ */

html,
body {
    font-family: var(--lb-font-family);
    font-size: var(--lb-font-size-base);
    font-weight: var(--lb-font-weight-normal);
    line-height: var(--lb-line-height-normal);
    color: var(--lb-text-primary);
    background-color: var(--lb-bg-base);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--lb-font-weight-semibold);
    line-height: var(--lb-line-height-tight);
    color: var(--lb-text-primary);
}

h1 { font-size: var(--lb-font-size-3xl); }
h2 { font-size: var(--lb-font-size-2xl); }
h3 { font-size: var(--lb-font-size-xl); }
h4 { font-size: var(--lb-font-size-lg); }
h5 { font-size: var(--lb-font-size-base); }
h6 { font-size: var(--lb-font-size-sm); }

a {
    color: var(--lb-accent-primary);
    text-decoration: none;
    transition: color var(--lb-transition-base);
}

a:hover {
    color: var(--lb-accent-primary-light);
}

code,
pre {
    font-family: var(--lb-font-family-mono);
    background-color: var(--lb-bg-elevated-2);
    border-radius: var(--lb-radius-sm);
}

code {
    padding: 0.125rem 0.25rem;
    font-size: var(--lb-font-size-sm);
}

pre {
    padding: var(--lb-spacing-md);
    overflow-x: auto;
}

/* Selection */
::selection {
    background-color: var(--lb-accent-primary);
    color: var(--lb-text-inverse);
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--lb-bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--lb-bg-elevated-3);
    border-radius: var(--lb-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lb-bg-hover);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--lb-border-focus);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* EMPTY STATE - Shared empty state styling for all components                */
/* ══════════════════════════════════════════════════════════════════════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px dashed var(--lb-border-subtle, rgba(255,255,255,0.15));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.empty-state-text {
    color: var(--lb-text-muted, #999);
    font-size: 14px;
}
