/**
 * @file base.css
 * @description CSS variables, resets, typography, and base body styles
 *
 * @usedBy index.php (loaded first before all other CSS)
 *
 * @status COMPLETE
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Light Mode */
    --bg-light-1: #f8f9fa;
    --bg-light-2: #e9ecef;
    --text-light: #212529;
    --accent-light: #495057;
    --card-light: #ffffff;
    --ripple-light: rgba(33, 37, 41, 0.1);

    /* Dark Mode */
    --bg-dark-1: #1a1a2e;
    --bg-dark-2: #16213e;
    --text-dark: #e9ecef;
    --accent-dark: #a8dadc;
    --card-dark: #0f0f23;
    --ripple-dark: rgba(168, 218, 220, 0.15);

    /* Brand Colors */
    --primary: #4361ee;
    --primary-light: #4cc9f0;
    --success: #06d6a0;
    --warning: #ffd166;

    /* Animation Easings */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== BASE BODY ==================== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-light-1), var(--bg-light-2));
    color: var(--text-light);
    transition: background 0.6s ease, color 0.6s ease;
    -webkit-tap-highlight-color: transparent;
}

body.dark-mode {
    background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
    color: var(--text-dark);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    text-decoration: underline;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
}

/* ==================== SELECTION ==================== */
::selection {
    background: var(--primary);
    color: white;
}

/* ==================== FOCUS STATES ==================== */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
