/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES */
:root {
    --primary-color: #000000;
    --primary-dark: #1a1a1a;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --bg-color: #ffffff;
    --sidebar-bg: #f5f5f5;
    --border-color: #d1d1d1;
    --highlight-bg: #e8e8e8;
    --code-bg: #f5f5f5;
    --highlight-border: #333333;
    --success-bg: #f0f0f0;
    --success-border: #000000;

}

/* DARK MODE */
[data-theme="dark"] {
    --primary-color: #ffffff;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --bg-color: #000000;
    --sidebar-bg: #2a2a2a;
    --border-color: #404040;
    --highlight-bg: #333333;
    --code-bg: #2a2a2a;
    --highlight-border: #cccccc;
    --success-bg: #2a2a2a;
    --success-border: #ffffff;
}

/* GLOBAL */
html {
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    padding-top: 60px;
}

/* Prevent horizontal overflow */
img, video, iframe, table, pre {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

strong {
    color: var(--text-color);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    opacity: 0.7;
}