/* base.css - Base styles, variables, and resets */

/* =================================================================================
   CSS VARIABLES (THEME SYSTEM)
   ================================================================================= */

:root {
    --scrollbar-track: #374151;
}

html.light-mode {
    --bg-color: #f9fafb;
    --scrollbar-track: #e5e7eb;
}

/* =================================================================================
   BASE STYLES
   ================================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.intro-active {
    overflow: hidden;
}

/* =================================================================================
   TYPOGRAPHY
   ================================================================================= */

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

h1, h2, h3, h4 {
    color: var(--text-color);
}

h2 {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-text-color);
}

p {
    margin-bottom: 1rem;
}

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

/* =================================================================================
   LIST RESET
   ================================================================================= */

ul, ol {
    list-style: none;
}

/* =================================================================================
   BUTTON RESET
   ================================================================================= */

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

/* =================================================================================
   INPUT RESET
   ================================================================================= */

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

/* =================================================================================
   IMAGE RESET
   ================================================================================= */

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

/* =================================================================================
   UTILITY CLASSES
   ================================================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* =================================================================================
   FOCUS STYLES
   ================================================================================= */

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

/* =================================================================================
   SELECTION STYLES
   ================================================================================= */

::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* =================================================================================
   CUSTOM SCROLLBAR
   ================================================================================= */

.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
} 