/* ==========================================
   HANIHO NOBLE THEME SYSTEM
   ========================================== */

:root {
    /* DEFAULT: LIGHT MODE */
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface2: #f1f5f9;
    --surface3: #e2e8f0;
    --border: #e2e8f0;
    --border-soft: rgba(0, 0, 0, 0.05);
    --text: #0f172a;
    --text2: #475569;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --green: #16a34a;
    --red: #dc2626;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    /* Global Legacy Bridge */
    --figma-bg: var(--bg);
    --figma-surface: var(--surface);
    --figma-text: var(--text);
    --figma-text-muted: var(--text-muted);
    --figma-line: var(--border);
    --figma-primary: var(--accent);
}

[data-theme="dark"] {
    --bg: #0b0f14;
    --surface: #151b23;
    --surface2: #1c242f;
    --surface3: #242d38;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.04);
    --text: #f8fafc;
    --text2: #a0aec0;
    --text-muted: #94a3b8;
    --text-soft: #64748b;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --green: #22c55e;
    --red: #ef4444;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

    /* Global Legacy Bridge - Dark */
    --figma-bg: var(--bg);
    --figma-surface: var(--surface);
    --figma-text: var(--text);
    --figma-text-muted: var(--text-muted);
    --figma-line: var(--border);
    --figma-primary: var(--accent);
}

/* Base resets & theme application */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    font-family: "Syne", sans-serif;
    font-weight: 700;
}

button, input, textarea {
    font-family: inherit;
    color: inherit;
    outline: none;
}
