/* ==========================================================================
   variables.css - Reset CSS, Web Font, & Color Variables
   ========================================================================== */

/* 1. Reset CSS & Web Font (Pretendard) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

html {
    box-sizing: border-box;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, figure, figcaption, blockquote, dl, dd, button {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* 2. Design System & Variables (Ganghonsa Warm Nature Palette) */
:root {
    /* [LIGHT MODE] Color Tokens */
    --deep-sea-dark: #0f172a;    
    --deep-sea-medium: #1e293b;  
    --deep-sea-light: #334155;   
    
    --primary-color: #0d9488;    
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;    
    --primary-glow: rgba(13, 148, 136, 0.15);
    
    --accent-color: #f97316;     
    --accent-light: #fff7ed;     
    --accent-text: #c2410c;
    
    --bg-primary: #faf9f6;       
    --bg-card: #ffffff;
    --bg-sidebar: #f8f6f0;       
    
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --header-height: 70px;
    --footer-height: 60px;
    --sidebar-width: 280px;
    
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;
    --scrollbar-thumb-hover: #0d9488;
    
    --strength-weak: #ef4444;
    --strength-medium: #f59e0b;
    --strength-strong: #10b981;
    --strength-bg: #e2e8f0;
}

/* 🌙 [DARK MODE] Color Tokens */
body.dark-mode {
    --deep-sea-dark: #f8fafc;    
    --deep-sea-medium: #e2e8f0;  
    --deep-sea-light: #cbd5e1;   
    
    --primary-color: #14b8a6;    
    --primary-hover: #2dd4bf;
    --primary-light: #0f2d2b;    
    --primary-glow: rgba(20, 184, 166, 0.25);
    
    --accent-color: #fb923c;     
    --accent-light: #2c1a0e;     
    --accent-text: #fed7aa;
    
    --bg-primary: #070a12;       
    --bg-card: #0e1322;          
    --bg-sidebar: #0a0e1a;       
    
    --text-primary: #f1f5f9;     
    --text-muted: #94a3b8;       
    --border-color: #1e293b;     
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    
    --scrollbar-track: #0b0f19;
    --scrollbar-thumb: #334155;
    --scrollbar-thumb-hover: #14b8a6;
    
    --strength-weak: #f87171;
    --strength-medium: #fbbf24;
    --strength-strong: #34d399;
    --strength-bg: #1e293b;
}

body {
    font-family: var(--font-sans);
}
