/* base.css - Reset, Variables, Typography */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2544;
    --accent: #dd6b20;
    --accent-light: #ed8936;
    
    --success: #276749;
    --success-light: #48bb78;
    --warning: #c05621;
    --warning-light: #ed8936;
    --danger: #c53030;
    --danger-light: #fc8181;
    
    --bg: #f7fafc;
    --bg-card: #ffffff;
    --bg-dark: #1a202c;
    --bg-hover: #edf2f7;
    
    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    
    --border: #e2e8f0;
    --border-dark: #cbd5e0;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography */
    --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', 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;
    
    /* Borders */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
}

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

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

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

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

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

p {
    margin-bottom: var(--space-md);
}

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

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    padding-left: var(--space-lg);
}

li {
    margin-bottom: var(--space-xs);
}

/* Code */
code, pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

code {
    background-color: var(--bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

pre {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* Tables - base reset only */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Form elements - base reset only */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

/* Utilities */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* Spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
