/* ==========================================================================
   RESET.CSS - Minimal CSS Reset
   University Portal (Dogus University)
   Normalizes browser defaults for a consistent cross-browser foundation.
   ========================================================================== */

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

/* Remove default margins and padding
   ------------------------------------------------------------------ */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
dl, dd,
ol, ul,
figure,
fieldset,
legend {
    margin: 0;
    padding: 0;
}

/* Document defaults
   ------------------------------------------------------------------ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
}

body {
    min-height: 100vh;
    font-family: var(--du-font-family);
    font-size: var(--du-text-base);
    font-weight: var(--du-weight-normal);
    line-height: var(--du-leading-normal);
    color: var(--du-text-primary);
    background-color: var(--du-bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Font inheritance
   ------------------------------------------------------------------ */
input,
button,
textarea,
select,
optgroup {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

/* Headings inherit weight so components can override
   ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

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

img, video {
    height: auto;
}

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

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

/* Buttons / interactive
   ------------------------------------------------------------------ */
button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* Remove default fieldset styles
   ------------------------------------------------------------------ */
fieldset {
    border: none;
}

/* Textarea - prevent horizontal resize by default
   ------------------------------------------------------------------ */
textarea {
    resize: vertical;
}

/* Focus visible - provide accessible outline only on keyboard focus
   ------------------------------------------------------------------ */
:focus-visible {
    outline: 2px solid var(--du-primary);
    outline-offset: 2px;
}

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

/* Reduced motion preference
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::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-color: var(--du-primary);
    color: var(--du-text-on-primary);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--du-text-muted);
    border-radius: var(--du-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--du-text-secondary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--du-text-muted) transparent;
}
