/* =========================================
   RESET.CSS - Modern CSS Reset
   ========================================= */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

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

/* Body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

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

/* Form elements */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

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

/* Typography */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

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

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

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

/* Selection */
::selection {
    background: #2563eb;
    color: #ffffff;
}

::-moz-selection {
    background: #2563eb;
    color: #ffffff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb, #d1d1d1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover, #a0a0a0);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent-blue, #2563eb);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
