/* 29. Novembar Kraljevo — base styles beyond Tailwind utilities */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0A0A0B;
}

::selection {
  background-color: #D4AF37;
  color: #0A0A0B;
}

/* Language toggle: show/hide by document language */
html[data-lang="sr"] .lang-en { display: none; }
html[data-lang="en"] .lang-sr { display: none; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tricolor accent bar (echoes the flag lightning bolt in the logo) */
.tricolor-bar {
  display: inline-flex;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}
.tricolor-bar span { flex: 1 1 0; }
.tricolor-bar span:nth-child(1) { background: #0C4076; }
.tricolor-bar span:nth-child(2) { background: #F5F5F0; }
.tricolor-bar span:nth-child(3) { background: #C6363C; }

/* Mobile nav panel */
#mobile-nav {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#mobile-nav[data-open="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#mobile-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

/* Custom scrollbar (webkit) — subtle, matches dark/gold brand */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0A0B; }
::-webkit-scrollbar-thumb { background: #33343A; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #4A4B52; }

/* Header shadow once scrolled */
#site-header[data-scrolled="true"] {
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.6);
}
