/* ============================================================================
   LOREBENCH THEME SYSTEM - BASE VARIABLES
   ============================================================================
   Structural variables shared across all themes.
   Color variables are defined in /themes/*.css files.
   ============================================================================ */

:root {
    /* SPACING */
    --aw-spacing-xs: 0.25rem;
    --aw-spacing-sm: 0.5rem;
    --aw-spacing-md: 1rem;
    --aw-spacing-lg: 1.5rem;
    --aw-spacing-xl: 2rem;

    /* BORDER RADIUS */
    --aw-radius-sm: 4px;
    --aw-radius-md: 8px;
    --aw-radius-lg: 12px;
    --aw-radius-full: 9999px;

    /* TRANSITIONS */
    --aw-transition-fast: 0.15s ease;
    --aw-transition-base: 0.2s ease;
    --aw-transition-slow: 0.3s ease;

    /* TYPOGRAPHY */
    --aw-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --aw-font-family-mono: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    --aw-font-size-xs: 0.75rem;
    --aw-font-size-sm: 0.875rem;
    --aw-font-size-base: 1rem;
    --aw-font-size-lg: 1.125rem;
    --aw-font-size-xl: 1.25rem;
    --aw-font-size-2xl: 1.5rem;
    --aw-font-size-3xl: 1.875rem;
    --aw-font-weight-normal: 400;
    --aw-font-weight-medium: 500;
    --aw-font-weight-semibold: 600;
    --aw-font-weight-bold: 700;
    --aw-line-height-tight: 1.25;
    --aw-line-height-normal: 1.5;
    --aw-line-height-relaxed: 1.75;
}

/* ============================================================================
   GLOBAL BASE STYLES
   ============================================================================ */

html,
body {
    font-family: var(--aw-font-family);
    font-size: var(--aw-font-size-base);
    font-weight: var(--aw-font-weight-normal);
    line-height: var(--aw-line-height-normal);
    color: var(--aw-text-primary);
    background-color: var(--aw-bg-base);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--aw-font-weight-semibold);
    line-height: var(--aw-line-height-tight);
    color: var(--aw-text-primary);
}

h1 { font-size: var(--aw-font-size-3xl); }
h2 { font-size: var(--aw-font-size-2xl); }
h3 { font-size: var(--aw-font-size-xl); }
h4 { font-size: var(--aw-font-size-lg); }
h5 { font-size: var(--aw-font-size-base); }
h6 { font-size: var(--aw-font-size-sm); }

a {
    color: var(--aw-accent-primary);
    text-decoration: none;
    transition: color var(--aw-transition-base);
}

a:hover {
    color: var(--aw-accent-primary-light);
}

code,
pre {
    font-family: var(--aw-font-family-mono);
    background-color: var(--aw-bg-elevated-2);
    border-radius: var(--aw-radius-sm);
}

code {
    padding: 0.125rem 0.25rem;
    font-size: var(--aw-font-size-sm);
}

pre {
    padding: var(--aw-spacing-md);
    overflow-x: auto;
}

/* Selection */
::selection {
    background-color: var(--aw-accent-primary);
    color: var(--aw-text-inverse);
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--aw-bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--aw-bg-elevated-3);
    border-radius: var(--aw-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aw-bg-hover);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--aw-border-focus);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* FORM CONTROLS - Override Bootstrap's default white inputs                  */
/* ══════════════════════════════════════════════════════════════════════════ */
.form-control,
textarea.form-control,
input.form-control,
select.form-control {
    background-color: var(--aw-bg-input, #1a1a1a);
    border: 1px solid var(--aw-border-strong, #444);
    border-radius: var(--aw-radius-md, 8px);
    color: var(--aw-text-primary, #fff);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: border-color var(--aw-transition-base, 0.2s ease), box-shadow var(--aw-transition-base, 0.2s ease);
}

.form-control:focus,
textarea.form-control:focus,
input.form-control:focus,
select.form-control:focus {
    background-color: var(--aw-bg-input, #1a1a1a);
    border-color: var(--aw-border-focus, #d4af37);
    color: var(--aw-text-primary, #fff);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
    outline: none;
}

.form-control::placeholder,
textarea.form-control::placeholder,
input.form-control::placeholder {
    color: var(--aw-text-subtle, #666);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--aw-bg-elevated, #1e1e1e);
    opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* 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(--aw-border-subtle);
    border-radius: 8px;
    background: var(--aw-bg-elevated);
}

.empty-state-text {
    color: var(--aw-text-muted);
    font-size: 14px;
}
