/**
 * default.css - Design System Foundation
 * CSS custom properties, base resets, and typography.
 */

/* ========================================================================
   Design Tokens
   ======================================================================== */

:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #6d7175;
    --color-text-muted: #999;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-surface: #f6f6f7;
    --color-accent: #E67E22;
    --color-accent-hover: #d35400;
    --color-sale: #e74c3c;
    --color-success: #27ae60;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 20px;
    --text-2xl: 28px;

    /* Spacing (8px grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    /* Layout */
    --container-max: 1440px;
    --sidebar-width: 240px;
    --header-height: 64px;
    --radius: 4px;
}

/* ========================================================================
   Base Reset & Typography
   ======================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

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

p {
    margin: 0 0 var(--space-4) 0;
}

ul, ol {
    padding-left: var(--space-5);
}

/* ========================================================================
   Legacy Compat (keep functional)
   ======================================================================== */

#tooltip {
    position: absolute;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 2px 5px;
    color: var(--color-text);
    display: none;
    font-size: var(--text-sm);
}
