/* ============================================================================
   LOREBENCH THEME SYSTEM - BASE VARIABLES
   ============================================================================
   Structural variables shared across all themes.
   Color variables are defined in /themes/*.css files.
   ============================================================================ */

:root {
    /* 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;
}

/* ============================================================================
   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);
    border-radius: 8px;
    background: var(--lb-bg-elevated);
}

.empty-state-text {
    color: var(--lb-text-muted);
    font-size: 14px;
}
