/* ═══════════════════════════════════════════════════════════
   RESET.CSS — Nameštaj Crni bor
   Moderan CSS reset za konzistentno ponašanje
   kroz sve browsere. Inspirisan Andy Bell's reset.
   ═══════════════════════════════════════════════════════════ */

/* === BOX SIZING === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* === MARGIN / PADDING RESET === */
* {
  margin: 0;
  padding: 0;
}

/* === DOCUMENT === */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

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

/* === BODY === */
body {
  min-height: 100vh;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: var(--leading-tight);
}

/* === MEDIA ELEMENTS === */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  font-style: italic; /* Alt tekst stil za broken images */
}

/* === FORM ELEMENTS === */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

textarea {
  resize: vertical;
}

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

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

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

/* === FIELDSET === */
fieldset {
  border: none;
}

/* === FOCUS RESET — Replaced by :focus-visible in base.css === */
:focus:not(:focus-visible) {
  outline: none;
}

/* === TARGET PADDING — Za anchor linkove === */
:target {
  scroll-margin-top: 5rem;
}

/* === 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;
  }
}
