/* ═══════════════════════════════════════════════════════════
   GITANA DESIGN SYSTEM — CSS Reset
   
   Modern CSS reset for consistent cross-browser rendering.
   ═══════════════════════════════════════════════════════════ */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    line-height: var(--leading-normal);
    text-rendering: optimizeSpeed;
}

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

/* Remove default anchor styling */
a {
    color: inherit;
    text-decoration: none;
}

/* Make images responsive */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove built-in form typography */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

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

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

/* Remove textarea resize (controlled by component) */
textarea {
    resize: vertical;
}

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary-teal);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for accessibility */
@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;
    }
}

/* Selection color */
::selection {
    background: var(--color-primary-teal);
    color: var(--color-text-inverse);
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-surface-2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-surface-3);
}
