/*
 * Tema OVOG sajta [SAJT].
 * - Stranica za zakazivanje učitava i sajtov /a7f3k9.min.css (config branding.site_css), pa zaglavlje, naslovi,
 *   kontakt i footer izgledaju isto kao na sajtu. Ovde su samo promenljive i ono što sajt radi preko GSAP-a/inline stila.
 * - Admin učitava samo ovaj fajl (promenljive + fontovi).
 * Za drugi sajt menja se samo ovaj fajl, theme/theme.php, theme/strings.php i assets/theme.js.
 */
@font-face {
  font-family: "Bebas Neue";
  src: local("Bebas Neue"), url("../../fonts/bebas-neue-v16-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: local("DM Sans"), url("../../fonts/dm-sans-v17-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: local("DM Sans Medium"), url("../../fonts/dm-sans-v17-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: local("DM Sans SemiBold"), url("../../fonts/dm-sans-v17-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bk-bg: #0c0c0d;
  --bk-bg-elevated: #141416;
  --bk-surface: #141416;
  --bk-surface-2: #1a1a1d;
  --bk-text: #f0eef5;
  --bk-muted: #9c99a8;
  --bk-border: rgba(255, 255, 255, 0.06);
  --bk-border-strong: rgba(255, 255, 255, 0.16);
  --bk-accent: #5468f9;
  --bk-accent-glow: #7b8cff;
  --bk-accent-soft: rgba(84, 104, 249, 0.14);
  --bk-cta: #ff5cb8;
  --bk-cta-hot: #ffa0dc;
  --bk-cta-text: #ffd0ef;
  --bk-cta-gradient: linear-gradient(145deg, #ff2d95, #ff6ec7);
  --bk-cta-glow: 0 0 8px rgba(255, 130, 200, 0.75), 0 0 20px rgba(255, 60, 160, 0.45);
  --bk-cta-glow-full: 0 0 6px rgba(255, 252, 255, 0.95), 0 0 14px rgba(255, 110, 200, 0.95),
    0 0 28px rgba(255, 55, 165, 0.78), 0 0 52px rgba(255, 35, 140, 0.42);
  --bk-ice-glow: 0 0 8px rgba(255, 255, 255, 0.22), 0 0 20px rgba(160, 175, 255, 0.12);
  --bk-danger: #ff7a90;
  --bk-success: #6fe3b0;
  --bk-warning: #ffcf6e;
  --bk-font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --bk-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bk-radius: 0;
  --bk-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Zaglavlje: na sajtu ga GSAP zatamni posle skrola —— */
.site-header {
  transition: background-color 0.4s var(--bk-ease), backdrop-filter 0.4s var(--bk-ease), color 0.4s var(--bk-ease);
}

.site-header.is-scrolled {
  background-color: rgba(12, 12, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #e8e6e3;
}

.site-header.is-scrolled .nav,
.site-header.is-scrolled .menu-toggle {
  mix-blend-mode: normal;
}

.nav {
  align-items: center;
}

/* "Zakaži" pilula — isto kao inline stil u /index.html (puna pink pilula pored pilule za jezik) */
.nav-cta {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
  padding: 0.52rem 1.2rem;
  border: 1px solid rgba(255, 214, 236, 0.95);
  border-radius: 999px;
  background: linear-gradient(145deg, #ff2d95, #ff6ec7);
  color: #0c0c0d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 14px rgba(255, 63, 194, 0.45),
    0 0 30px rgba(255, 60, 160, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 0 20px rgba(255, 90, 190, 0.7),
    0 0 44px rgba(255, 60, 160, 0.32);
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

.mobile-nav .nav-cta--mobile {
  display: inline-flex;
  align-self: flex-start;
  margin: 0.75rem 0 0;
  padding: 0.8rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* Footer: potpis ispod kopirajta */
.site-footer {
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer .site-footer__credit {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: #7d7a8c;
}

.site-footer__credit a {
  color: #c9d1ff;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms ease, text-shadow 200ms ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: #ffd0ef;
  text-shadow: 0 0 8px rgba(255, 130, 200, 0.75), 0 0 18px rgba(255, 60, 160, 0.4);
}

/* —— Mobilni meni: na sajtu ga animira GSAP —— */
.mobile-nav {
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.55s;
}

.mobile-nav.is-open {
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
}

.mobile-nav a {
  transition: opacity 0.4s var(--bk-ease), transform 0.4s var(--bk-ease);
}

.mobile-nav.is-open a {
  opacity: 1;
  transform: none;
}

.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.06s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.18s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 0.24s; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: 0.36s; }

/* —— Izbor jezika: na sajtu je ovaj stil inline u index.html —— */
.lang-switch {
  position: relative;
  margin-left: auto;
  margin-right: 0.75rem;
}

/* desktop: slobodan prostor ide levo od menija (.nav margin-left: auto), kao na sajtu — meni desno, ne u sredini */
@media (min-width: 900px) {
  .lang-switch {
    margin-left: 0;
  }
}

.lang-switch::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 0.65rem;
}

.lang-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 126px;
  justify-content: center;
  padding: 0.52rem 0.92rem;
  border: 1px solid rgba(255, 86, 197, 0.55);
  border-radius: 999px;
  background:
    radial-gradient(120% 200% at 50% 0%, rgba(255, 42, 167, 0.18) 0%, rgba(20, 9, 35, 0.88) 60%),
    rgba(11, 8, 20, 0.9);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(47, 225, 255, 0.22) inset,
    0 0 14px rgba(255, 63, 194, 0.28),
    0 0 22px rgba(47, 225, 255, 0.18);
  transition: border-color 220ms ease, transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  line-height: 1.15; /* posle font: inherit — ista visina kao na sajtu */
}

.lang-switch:hover .lang-switch__button,
.lang-switch__button:focus-visible {
  border-color: rgba(47, 225, 255, 0.88);
  background:
    radial-gradient(120% 200% at 50% 0%, rgba(255, 42, 167, 0.36) 0%, rgba(20, 9, 35, 0.92) 60%),
    rgba(11, 8, 20, 0.95);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(47, 225, 255, 0.35) inset,
    0 0 14px rgba(255, 63, 194, 0.45),
    0 0 30px rgba(47, 225, 255, 0.28);
}

.lang-switch__label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow:
    0 0 7px rgba(47, 225, 255, 0.4),
    0 0 12px rgba(255, 76, 200, 0.25);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  display: grid;
  gap: 0.35rem;
  min-width: 168px;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(47, 225, 255, 0.35);
  background:
    radial-gradient(140% 220% at 50% -40%, rgba(255, 38, 165, 0.24) 0%, rgba(8, 8, 14, 0.9) 58%),
    rgba(8, 8, 14, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  box-shadow:
    0 0 0 1px rgba(255, 86, 197, 0.12) inset,
    0 0 18px rgba(47, 225, 255, 0.16),
    0 12px 36px rgba(0, 0, 0, 0.42);
  z-index: 40;
}

.lang-switch:hover .lang-switch__menu,
.lang-switch:focus-within .lang-switch__menu,
.lang-switch.is-open .lang-switch__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-switch__option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease;
  font: inherit;
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: linear-gradient(90deg, rgba(47, 225, 255, 0.14) 0%, rgba(255, 86, 197, 0.14) 100%);
}

.lang-switch__option[aria-current="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.lang-switch__option-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Bebas Neue nema ćirilicu — kao na sajtu, manje mere za RU */
.lang-ru .section-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: 0;
}
