@use '../settings/index' as *;
// Classic CSS reset adapted to SCSS
// Based on Meyer reset + sensible defaults (box-sizing, media, form elements)

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

/* Remove default margin/padding and set core defaults */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
  font: inherit;
  color: inherit;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* Base html/body */
html {
  line-height: 1.15; /* better default line-height */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
}

body {
  width: 100%;
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Images and media */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* Forms: inputs, buttons, selects, textareas */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  resize: vertical;
}

/* Buttons and clickable elements */
button, [type="button"], [type="submit"], [role="button"] {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Remove inner focus border in Firefox */
button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Fieldset and legend */
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

/* Accessibility helpers */
[hidden] {
  display: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utility: make images and media non-draggable by default */
img, svg, video {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

///* Optional: set base focus outline for keyboard users (can be customized) */
//:focus {
//  outline: 2px solid rgba(13, 110, 253, 0.6);
//  outline-offset: 2px;
//}
