/* CSS Reset and Base Styles */

/* Box Sizing Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default margins */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* HTML5 Display Role Reset */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

/* Text Resets */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-weight: normal;
}

p, blockquote, dl, dd, figure {
    margin: 0;
}

/* List Resets */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Form Resets */
button, input, optgroup, select, textarea {
    font: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Link Resets */
a {
    text-decoration: none;
    color: inherit;
}

/* Image and Media Resets */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Table Resets */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Typography Reset */
pre, code, kbd, samp {
    font-family: monospace;
    font-size: 1em;
}

/* Remove list styles */
ul, ol {
    list-style: none;
}

/* Remove quotes */
blockquote, q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
}

/* Base HTML styles */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--accent-blue, #58a6ff);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Button resets */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Input styling reset */
input {
    border: none;
    background: transparent;
    color: inherit;
}

/* Remove search decoration */
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary, #161b22);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color, #30363d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary, #8b949e);
}

/* Selection styling */
::selection {
    background: var(--accent-blue, #58a6ff);
    color: white;
}