/* =========================================================
   Volja Dijaspore Republike Srpske — Vanilla CSS
   Tokens, reset, layout, components
   ========================================================= */

/* ---------- Design tokens (ported from Tailwind v4 theme) ---------- */
:root {
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --background: oklch(0.13 0.05 265);
  --foreground: oklch(0.97 0.005 60);
  --card: oklch(0.19 0.06 265);
  --card-foreground: oklch(0.97 0.005 60);
  --primary: oklch(0.65 0.22 27);
  --primary-foreground: oklch(0.98 0.005 60);
  --secondary: oklch(0.24 0.07 265);
  --muted: oklch(0.22 0.06 265);
  --muted-foreground: oklch(0.72 0.04 260);
  --accent: oklch(0.28 0.08 265);
  --border: oklch(0.30 0.06 265);
  --input: oklch(0.30 0.06 265);
  --ring: oklch(0.64 0.22 27);

  --gradient-hero: linear-gradient(180deg,
      oklch(0.18 0.06 265 / 0.15) 0%,
      oklch(0.18 0.06 265 / 0.6) 70%,
      oklch(0.18 0.06 265) 100%);
  --gradient-accent: radial-gradient(circle, oklch(0.64 0.22 27 / 0.45), transparent 70%);
  --gradient-cool: linear-gradient(135deg, oklch(0.4 0.15 260), oklch(0.5 0.2 27));
  --gradient-card-top: linear-gradient(to top, var(--card), oklch(0.19 0.06 265 / 0.2) 50%, transparent);
  --gradient-bg-top: linear-gradient(to top, var(--background), oklch(0.13 0.05 265 / 0.7) 40%, oklch(0.13 0.05 265 / 0.2));

  --shadow-glow: 0 10px 40px -10px oklch(0.62 0.22 27 / 0.55);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;

  --header-h: 80px;
  --content-max: 1280px;
  --content-narrow: 768px;
  --content-medium: 896px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Container & layout helpers ---------- */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1024px) {
  .container { padding-inline: 40px; }
}

.container-narrow { max-width: var(--content-narrow); margin-inline: auto; padding-inline: 24px; }
.container-medium { max-width: var(--content-medium); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 1024px) {
  .container-narrow,
  .container-medium { padding-inline: 40px; }
}

/* ---------- Typography utilities ---------- */
.font-display { font-family: var(--font-display); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 16px;
}

.text-gradient-flag {
  background-image: linear-gradient(
    90deg,
    oklch(0.65 0.22 27) 0%,
    oklch(0.55 0.18 260) 25%,
    oklch(0.97 0.005 60) 50%,
    oklch(0.55 0.18 260) 75%,
    oklch(0.65 0.22 27) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: flag-flow 10s linear infinite;
  will-change: background-position;
}

.muted { color: var(--muted-foreground); }
.fg-90 { color: oklch(0.97 0.005 60 / 0.9); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  transition: opacity 0.25s ease, background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { opacity: 0.92; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: oklch(0.13 0.05 265 / 0.4);
  color: var(--foreground);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: oklch(0.13 0.05 265 / 0.7); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;             /* py-3 px-7 */
  border-radius: 999px;
  border: 1px solid var(--border);
  background: oklch(0.13 0.05 265 / 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  backdrop-filter: blur(8px);
  transition: background-color 0.25s ease;
}
.btn-pill:hover { background: oklch(0.13 0.05 265 / 0.7); }
/* Smaller pill — used for "Nazad" back button */
.btn-pill-sm {
  padding: 8px 16px;              /* py-2 px-4 */
  font-weight: 400;
  font-size: 0.875rem;            /* text-sm */
  border-color: oklch(0.30 0.06 265 / 0.6);
}

.btn-icon {
  width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.19 0.06 265 / 0.6);
  color: oklch(0.97 0.005 60 / 0.8);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-icon:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: oklch(0.65 0.22 27 / 0.6);
}

.btn-icon-sm {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.13 0.05 265 / 0.4);
  backdrop-filter: blur(8px);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 1024px) {
  .site-header__inner { padding: 20px 40px; }
}

.logo-link { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: white;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.logo-text span { color: var(--muted-foreground); }

.nav-desktop { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.btn-join {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-glow);
  transition: opacity 0.2s ease;
  visibility: hidden;
}
.btn-join:hover { opacity: 0.9; }

.hamburger {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.13 0.05 265 / 0.4);
  color: var(--foreground);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease;
}
.hamburger:hover { background: oklch(0.13 0.05 265 / 0.7); }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-menu { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  display: none;
  margin: 0 24px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.13 0.05 265 / 0.95);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(20px);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--foreground);
  transition: background-color 0.2s ease;
}
.nav-mobile a:hover { background: var(--accent); }
.nav-mobile .nav-mobile__cta {
  margin-top: 4px;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  overflow: hidden;
}
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__video { display: none; }
.hero__video--mobile { display: block; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.hero__overlay-2 {
  position: absolute; inset: 0;
  background: var(--gradient-bg-top);
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 128px 24px 80px;
}
@media (min-width: 1024px) {
  .hero__content { padding: 128px 40px 112px; }
}

.hero__inner { max-width: 64rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.13 0.05 265 / 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: 3rem;            /* text-5xl */
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
}
@media (min-width: 640px) {
  .hero__title { font-size: 3.75rem; } /* sm:text-6xl */
}
@media (min-width: 1024px) {
  .hero__title { font-size: 6rem; }    /* lg:text-8xl */
}

.hero__subtitle {
  margin-top: 32px;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
@media (min-width: 1024px) { .hero__subtitle { font-size: 1.25rem; } }

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Section ---------- */
.section {
  position: relative;
  padding: 112px 0;
}
@media (min-width: 1024px) { .section { padding: 144px 0; } }

.section-bordered { border-block: 1px solid oklch(0.30 0.06 265 / 0.6); }
.section--inicijator { border-bottom: 1px solid oklch(0.30 0.06 265 / 0.6); padding: 80px 0; }
@media (min-width: 1024px) { .section--inicijator { padding: 112px 0; } }

.section__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 64px;
}
.section__title {
  font-size: 2.25rem;         /* text-4xl */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
  max-width: 40rem;
}
@media (min-width: 1024px) {
  .section__title { font-size: 3.75rem; } /* lg:text-6xl */
}
.section__title a:hover { opacity: 0.9; }
.section__desc {
  max-width: 28rem;
  color: var(--muted-foreground);
}

/* ---------- Inicijator card on home ---------- */
.bg-cool {
  position: absolute;
  inset: 0;
  background: var(--gradient-cool);
  opacity: 0.30;
  pointer-events: none;
}

.inicijator-card {
  display: block;
  position: relative;
  border-radius: 24px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.19 0.06 265 / 0.8);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.5s ease, border-color 0.5s ease;
}
.inicijator-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.65 0.22 27 / 0.6);
}
@media (min-width: 1024px) { .inicijator-card { padding: 40px; } }

.inicijator-card__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .inicijator-card__grid {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }
}

.inicijator-card__img-wrap {
  position: relative;
  max-width: 260px;
  margin-inline: auto;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
}
@media (min-width: 1024px) { .inicijator-card__img-wrap { max-width: none; } }
.inicijator-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.inicijator-card:hover .inicijator-card__img { transform: scale(1.05); }

.inicijator-card__title {
  font-size: 1.5rem;          /* text-2xl */
  line-height: 1.25;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .inicijator-card__title { font-size: 1.875rem; } /* sm:text-3xl */
}
@media (min-width: 1024px) {
  .inicijator-card__title { font-size: 2.25rem; }  /* lg:text-4xl */
}
.inicijator-card__text {
  margin-top: 20px;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.inicijator-card__cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
}
.inicijator-card__cta span[aria-hidden] {
  transition: transform 0.25s ease;
}
.inicijator-card:hover .inicijator-card__cta span[aria-hidden] {
  transform: translateX(4px);
}

.badge-primary {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid oklch(0.65 0.22 27 / 0.4);
  background: oklch(0.13 0.05 265 / 0.4);
  padding: 4px 12px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

/* ---------- News card ---------- */
.news-card {
  display: block;
  position: relative;
  height: 100%;
  border-radius: 22px;            /* rounded-2xl */
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.5s ease, border-color 0.5s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.65 0.22 27 / 0.6);
}
.news-card__media {
  position: relative;
  height: 192px;
  overflow: hidden;
}
.news-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-card-top);
}
.news-card__body { padding: 28px; }
.news-card__tag {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid oklch(0.65 0.22 27 / 0.3);
  padding: 4px 10px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 20px;
}
.news-card__title {
  font-size: 1.25rem;         /* text-xl (listing) */
  line-height: 1.375;
  margin-bottom: 12px;
  transition: color 0.25s ease;
  letter-spacing: -0.025em;
}
/* Home carousel uses a larger heading per the original */
.carousel .news-card__title {
  font-size: 1.5rem;          /* text-2xl */
  line-height: 1.375;
  letter-spacing: normal;
}
.news-card:hover .news-card__title { color: var(--primary); }
.news-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}
.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.news-card__cta {
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.news-card:hover .news-card__cta { opacity: 1; }

/* ---------- Aktuelno carousel (home) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 768px) {
  .carousel__slide { flex-basis: calc(50% - 12px); }
}

.carousel__nav-desktop {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: none;
  justify-content: space-between;
  pointer-events: none;
}
.carousel__nav-desktop button {
  pointer-events: auto;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.carousel__nav-desktop button:hover {
  background: var(--accent);
  color: var(--foreground);
}
.carousel__nav-desktop button .icon { width: 16px; height: 16px; }
.carousel__btn-prev { margin-left: -16px; }
.carousel__btn-next { margin-right: -16px; }
@media (min-width: 768px) {
  .carousel__nav-desktop { display: flex; }
}

.carousel__nav-mobile {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
@media (min-width: 768px) {
  .carousel__nav-mobile { display: none; }
}

.carousel__dots {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.carousel__dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.carousel__dot:hover { background: var(--muted-foreground); }
.carousel__dot.active { width: 24px; background: var(--primary); }

/* ---------- O nama / Dijaspora section (on home) ---------- */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.40;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 999px;
  background: var(--gradient-accent);
  opacity: 0.30;
  filter: blur(80px);
  pointer-events: none;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.prose p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: oklch(0.97 0.005 60 / 0.9);
}

/* ---------- Kontakt ---------- */
.kontakt {
  position: relative;
  overflow: hidden;
}
.kontakt__bg {
  position: absolute; inset: 0;
  background: var(--gradient-cool);
  opacity: 0.18;
  pointer-events: none;
}
.kontakt__inner {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 24px;
  text-align: center;
}
@media (min-width: 1024px) { .kontakt__inner { padding-inline: 40px; } }

.kontakt__title {
  font-size: 2.25rem;          /* text-4xl */
  line-height: 1.02;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 1024px) {
  .kontakt__title { font-size: 4.5rem; } /* lg:text-7xl */
}
.kontakt__lead {
  max-width: 36rem;
  margin: 0 auto 48px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.kontakt__grid {
  display: grid;
  gap: 16px;
  max-width: 42rem;        /* max-w-2xl */
  margin: 0 auto 40px;
}
@media (min-width: 640px) {
  .kontakt__grid { grid-template-columns: 1fr 1fr; }
}

.kontakt-card {
  display: block;
  text-align: left;
  border-radius: 22px;            /* rounded-2xl */
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.19 0.06 265 / 0.7);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.kontakt-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.65 0.22 27 / 0.6);
}
.kontakt-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 8px;
}
.kontakt-card__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.25s ease;
  word-break: break-word;
}
.kontakt-card:hover .kontakt-card__value { color: var(--primary); }

.kontakt__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: oklch(0.13 0.05 265 / 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.btn-social:hover {
  border-color: oklch(0.65 0.22 27 / 0.6);
  background: var(--background);
}

.kontakt__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.btn-lg {
  height: 56px;
  padding: 0 32px;
}

/* ---------- Article hero (inicijator, aktuelno detail) ---------- */
.article {
  position: relative;
}
.article__topbar {
  position: absolute;
  inset-inline: 0;
  top: var(--header-h);
  z-index: 20;
}
.article__topbar-inner {
  max-width: 64rem;
  margin-inline: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .article__topbar-inner { padding: 24px 40px; } }

.article__hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  width: 100%;
  overflow: hidden;
}
.article__hero--news {
  height: 60vh;
  min-height: 420px;
}
.article__hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.article__hero--news .article__hero-img { object-position: center; }
.article__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    var(--background),
    oklch(0.13 0.05 265 / 0.7) 50%,
    oklch(0.13 0.05 265 / 0.2));
}
.article__hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}
.article__hero-inner {
  max-width: 56rem;
  margin-inline: auto;
  padding: 0 24px 40px;
}
@media (min-width: 1024px) {
  .article__hero-inner { padding: 0 40px 64px; }
}
.article__hero-title {
  font-size: 1.875rem;        /* text-3xl */
  line-height: 1.25;          /* leading-tight */
  font-weight: 600;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
}
@media (min-width: 640px) {
  .article__hero-title { font-size: 3rem; }    /* sm:text-5xl */
}
@media (min-width: 1024px) {
  .article__hero-title { font-size: 3.75rem; } /* lg:text-6xl */
}
.article__hero-meta {
  margin-top: 16px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

.article__body {
  max-width: 48rem;
  margin-inline: auto;
  padding: 64px 24px;
}
@media (min-width: 1024px) {
  .article__body { padding: 96px 40px; }
}

.article__divider {
  margin-top: 48px;
  border-top: 1px solid oklch(0.30 0.06 265 / 0.6);
  padding-top: 40px;
}

.article__back-center {
  margin-top: 48px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.25s ease;
}
.back-link:hover { color: var(--primary); }

/* ---------- Page intro (o-nama, dijaspora, aktuelno-list) ---------- */
.page {
  min-height: 100vh;
  background: var(--background);
}
.page__section {
  max-width: var(--content-medium);
  margin-inline: auto;
  padding: 128px 24px 96px;
}
@media (min-width: 1024px) {
  .page__section { padding: 160px 40px 96px; }
}
.page--narrow .page__section { max-width: var(--content-narrow); }
.page--wide .page__section { max-width: var(--content-max); }

.page__head { margin-bottom: 56px; max-width: 48rem; }
.page__title {
  font-size: 2.25rem;         /* text-4xl */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
}
@media (min-width: 1024px) {
  .page__title { font-size: 3.75rem; } /* lg:text-6xl */
}
.page__lead {
  margin-top: 24px;
  color: var(--muted-foreground);
}

/* ---------- News list grid + search ---------- */
.search {
  margin-bottom: 40px;
  max-width: 36rem;
  position: relative;
}
.search__label { position: relative; display: block; }
.search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted-foreground);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.19 0.06 265 / 0.6);
  padding: 0 20px 0 44px;
  font-size: 0.875rem;
  color: var(--foreground);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.search__input::placeholder { color: var(--muted-foreground); }
.search__input:focus {
  border-color: oklch(0.65 0.22 27 / 0.6);
  box-shadow: 0 0 0 4px oklch(0.65 0.22 27 / 0.25);
}
.search__status {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.news-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-empty {
  border-radius: 16px;
  border: 1px dashed oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.19 0.06 265 / 0.4);
  padding: 48px;
  text-align: center;
  color: var(--muted-foreground);
}
.news-empty button {
  display: inline-flex;
  margin-top: 16px;
  color: var(--primary);
  font-size: 0.875rem;
}
.news-empty button:hover { text-decoration: underline; }

/* ---------- Article prev/next + related ---------- */
.article-nav {
  margin-top: 48px;
  display: grid;
  gap: 12px;
  border-top: 1px solid oklch(0.30 0.06 265 / 0.6);
  padding-top: 32px;
}
@media (min-width: 640px) {
  .article-nav { grid-template-columns: 1fr 1fr; }
}
.article-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;            /* rounded-2xl */
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.19 0.06 265 / 0.6);
  padding: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  min-width: 0;
}
.article-nav__item:hover {
  transform: translateY(-2px);
  border-color: oklch(0.65 0.22 27 / 0.6);
}
.article-nav__item--next { justify-content: flex-end; text-align: right; }
.article-nav__item svg { flex-shrink: 0; color: var(--primary); width: 20px; height: 20px; }
.article-nav__label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}
.article-nav__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.article-nav__item:hover .article-nav__title { color: var(--primary); }

.related-section {
  border-top: 1px solid oklch(0.30 0.06 265 / 0.6);
  padding: 80px 0;
}
@media (min-width: 1024px) { .related-section { padding: 112px 0; } .btn-join{visibility: visible;}}

.related-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Share buttons ---------- */
.share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.share__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}
.share__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 55;
  margin-inline: auto;
  max-width: 48rem;
  border-radius: 22px;            /* rounded-2xl */
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.13 0.05 265 / 0.95);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  padding: 16px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
@media (min-width: 640px) {
  .cookie-banner {
    inset-inline: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
  }
}
.cookie-banner__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .cookie-banner__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}
.cookie-banner__text {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .cookie-banner__text { font-size: 0.875rem; } }
.cookie-banner__btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  flex-shrink: 0;
}
.cookie-banner__btn:hover { opacity: 0.9; }

/* ---------- Script toggle (Lat/Ћир) ---------- */
.script-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid oklch(0.30 0.06 265 / 0.6);
  background: oklch(0.13 0.05 265 / 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  transition: background-color 0.25s ease;
}
.script-toggle:hover { background: oklch(0.13 0.05 265); }
.script-toggle__lat,
.script-toggle__cyr { color: var(--muted-foreground); }
.script-toggle__sep { color: var(--muted-foreground); }
:root[data-script="lat"] .script-toggle__lat { color: var(--primary); }
:root[data-script="cyr"] .script-toggle__cyr { color: var(--primary); }

/* ---------- Inline icons (lucide) ---------- */
.icon {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Hero arrow accent (decorative) ---------- */
.arrow { display: inline-block; transition: transform 0.25s ease; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.notfound__inner {
  max-width: 28rem;
  text-align: center;
}
.notfound__code {
  font-size: 4.5rem;
  font-weight: 700;
}
.notfound__title {
  margin-top: 16px;
  font-size: 1.25rem;
}
.notfound__text {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.notfound__actions {
  margin-top: 24px;
}
