:root {
  /* Glavna paleta */
  --brand-gold: #f2b138;
  --brand-blue: rgb(61, 155, 233);
  --brand-lime: #BADA55;
  --brand-lilac: rgb(162, 174, 242);

  /* Alias da ne moramo mijenjati stari kod */
  --brand-orange: var(--brand-gold);
  --brand-yellow: var(--brand-lime);

  --dark-blue: #1b2438;
  --text-main: #222222;
  --text-muted: #666666;
  --bg-light: rgba(162, 174, 242, 0.14);
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* RESET / GLOBAL
   ------------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

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

/* HEADER TOP BAR (trenutno ne koristiš, ali ostavljam spremno)
   ------------------------------------------------------------------ */

.top-bar {
  background: var(--brand-gold);
  padding: 6px 16px;
  font-size: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  color: #fff;
}

.top-bar a {
  font-weight: 600;
}

.btn-small {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  transition: background 0.2s, transform 0.1s;
}

.btn-small:hover {
  background: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* HEADER
   ------------------------------------------------------------------ */

header {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-lilac));
  padding: 18px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap; /* elementi ne prelaze u drugi red */
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.brand-text {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
}

.brand-text span {
  display: block;
}

/* Hamburger defaultno skriven (desktop) */
.hamburger {
  display: none;
}

/* NAV
   ------------------------------------------------------------------ */

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  font-weight: 600;
}

nav a {
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.35px;
  backdrop-filter: blur(4px); /* suptilan “glass” efekt */
}

nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

nav a:active {
  transform: translateY(0);
  box-shadow: none;
}

/* CTA gumb "Prijavi se" skroz desno u navigaciji */

.nav-cta {
  margin-left: auto;
}

.nav-cta a {
  background: var(--brand-gold);
  color: #1b2438;
  box-shadow: 0 10px 20px rgba(242, 177, 56, 0.4);
  border-color: transparent;
}

.nav-cta a:hover {
  background: #d89e28;
  border-color: #d89e28;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

/* HERO
   ------------------------------------------------------------------ */

.hero {
  background: var(--bg-light);
  padding: 40px 16px 32px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 16px;
  color: #A6C744;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(28px, 3vw, 34px);
  margin: 10px 0;
  color: var(--dark-blue);
}

.hero-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* BUTTONS
   ------------------------------------------------------------------ */

.btn-primary {
  background: var(--brand-gold);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 10px 20px rgba(242, 177, 56, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #d89e28;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--brand-blue);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(61, 155, 233, 0.4);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(162, 174, 242, 0.16);
  border-color: var(--brand-blue);
}

.btn-inline {
  width: max-content;
}

/* HERO VIDEO
   ------------------------------------------------------------------ */

.hero-video {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* okvir za video s 16:9 omjerom */

.hero-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* MAIN LAYOUT (WHAT WE DO + SIDEBAR)
   ------------------------------------------------------------------ */

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.section h1,
.section h2 {
  margin-top: 0;
  color: var(--dark-blue);
}

.section h2 {
  font-size: 22px;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand-gold);
  margin-top: 6px;
  border-radius: 999px;
}

.section p {
  margin: 0 0 10px;
  font-size: 15px;
}

.muted {
  color: var(--text-muted);
}

.pill-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A6C744;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Sidebar */

.sidebar .section {
  margin-bottom: 20px;
}

.sidebar h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--dark-blue);
}

.fb-placeholder,
.events-placeholder {
  background: rgba(186, 218, 85, 0.12);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Gallery – teaser na početnoj
   ------------------------------------------------------------------ */

.gallery-section {
  overflow: hidden;
}

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.gallery-strip img {
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  scroll-snap-align: start;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* VIDEI na početnoj */

.gallery-videos {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-cta {
  margin-top: 18px;
  text-align: right;
}

/* Form (trenutno ne koristiš, ali ostaje spremno)
   ------------------------------------------------------------------ */

.form-grid {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.form-grid input,
.form-grid textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font: inherit;
}

/* FULL GALLERY PAGE
   ------------------------------------------------------------------ */

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

/* mreža videa na gallery.html – koristi iste .video-frame stilove kao homepage */

.video-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* SINGLE-COLUMN MAIN (team & gallery intro)
   ------------------------------------------------------------------ */

.main-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  display: grid;
  gap: 24px;
}

/* FOOTER
   ------------------------------------------------------------------ */

footer {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-lilac));
  color: #ffffff;
  padding: 24px 16px;
  font-size: 14px;
  margin-top: 12px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.footer-col {
  max-width: 320px;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--brand-gold);
}

.footer-col a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  text-decoration-color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* GALERIJA U SIDEBARU – SLIKE JEDNA ISPOD DRUGE
   ------------------------------------------------------------------ */

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-column img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* LIGHTBOX
   ------------------------------------------------------------------ */

#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

#lightbox-overlay.active {
  visibility: visible;
  opacity: 1;
}

#lightbox-image {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

/* CLOSE BUTTON */

#lightbox-close {
  position: fixed;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: 0.2s;
}

#lightbox-close:hover {
  color: #A6C744;
}

/* Globalno: slike su klikljive (za lightbox) */

img {
  cursor: pointer;
}

/* LIGHTBOX strelice */

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 0 14px;
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.9;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  opacity: 1;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* VIDEO BLOKOVI (posebni opisi videa)
   ------------------------------------------------------------------ */

.video-caption {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #A6C744;
  text-align: center;
  opacity: 0.85;
  font-style: italic;
}

.video-block {
  margin-bottom: 40px;
}

.video-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.video-desc {
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* responsive 16:9 frame – dodatno definirano kasnije */

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* EVENT INFO BLOK
   ------------------------------------------------------------------ */

/* veliki datum */
.section .event-info .event-date-time {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

/* linija s vremenom */
.section .event-info .event-hours {
  font-size: 18px;
  color: var(--brand-blue);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* veliki dio "9–15 sati" */
.section .event-info .hours-big {
  font-weight: 700;
  font-size: 20px;
  color: var(--brand-blue);
}

/* normalan dio koji treba biti manji */
.section .event-info .hours-note {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-blue);
}

/* CONTACT BOX
   ------------------------------------------------------------------ */

.contact-box p {
  font-size: 17px;
  margin: 8px 0;
  color: var(--dark-blue);
}

.contact-box a {
  color: var(--brand-blue);
  text-decoration: underline;
  font-weight: 600;
}

.contact-box a:hover {
  opacity: 0.8;
}

/* MAIN HEIGHT (da footer bude dolje)
   ------------------------------------------------------------------ */

main {
  min-height: calc(100vh - 200px);
}

/* RESPONSIVE
   ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .main {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    width: 100px;
  }
}

/* GALLERY CTA ASIDE (sidebar button)
   ------------------------------------------------------------------ */

.gallery-cta-aside {
  margin-top: 14px;
  text-align: center;
}

.gallery-cta-aside .btn-secondary {
  width: 100%;
  display: inline-block;
  padding: 10px 0;
}

/* MOBITEL / TABLET PRILAGODBA
   ------------------------------------------------------------------ */

/* hamburger skriven na desktopu */
.hamburger {
  display: none;
}

/* MOBITEL */
@media (max-width: 900px) {
  header {
    padding: 10px 14px;
  }

  .header-inner {
    flex-direction: column;      /* elementi jedan ispod drugog */
    align-items: stretch;        /* sve na punu širinu */
    gap: 6px;
  }

  /* Logo + tekst */
  .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .brand-text {
    font-size: 13px;
    line-height: 1.3;
  }

  /* HAMBURGER – DRUGI RED, CENTRIRAN */
  .hamburger {
    display: block;
    align-self: center;   /* centriraj ga u headeru */
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    position: static;     /* važno — uklanja overlap */
    margin-top: 4px;
  }

  .hamburger:active {
    transform: scale(0.95);
  }

  /* NAV – defaultno sakriven na mobitelu */
  #main-nav {
    display: none;
    width: 100%;
  }

  /* Kad je aktivan (kliknut hamburger) – drop down blok */
  #main-nav.active {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding-top: 4px;
  }

  /* Linkovi u stupac, full width */
  #main-nav ul {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  #main-nav li {
    width: 100%;
  }

  #main-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 15px;
  }

  /* CTA "Prijavi se" kao zadnji gumb preko cijele širine */
  #main-nav .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
  }

  #main-nav .nav-cta a {
    width: 100%;
    display: inline-block;
    text-align: center;
  }
}

/* Mali mobiteli – još malo “full-width” feeling */
@media (max-width: 600px) {
  .brand-logo {
    width: 90px;
  }

  .hero-title {
    font-size: 22px;
  }

  /* Gumbi u hero sekciji na punu širinu */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Kartice/sekcije da ne budu “teške” */
  .section {
    border-radius: 14px;
  }

  /* Mreža slika u galeriji – manje rupe */
  .gallery-grid {
    gap: 10px;
  }

  .gallery-grid img {
    height: 160px;
  }

  /* Video grid – jedan stupac na manjim mobitelima */
  .video-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 18px 12px;
  }
}

/* POSTER NA SIGNUP STRANICI
   ------------------------------------------------------------------ */

.poster-wrapper {
  max-width: 600px;      /* optimalno za desktop */
  margin: 20px auto 0;   /* centriraj + razmak iznad */
}

.poster-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  display: block;
}

/* MOBITEL PRILAGODBA POSTERA */
@media (max-width: 600px) {
  .poster-wrapper {
    max-width: 100%;
    padding: 0 6px;
  }

  .poster-wrapper img {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  }
}

/* TEAM – KRUG FOTKE
   ------------------------------------------------------------------ */

.team-photo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%; /* malo gore da se lice više vidi */
  box-shadow: var(--shadow-soft);
  border: 3px solid #fff;
  transform: scale(1.18);  /* blagi zoom */
}

@media (max-width: 600px) {
  .team-photo {
    width: 130px;
    height: 130px;
    transform: scale(1.10);
  }
}

.team-photo-maja {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 3px solid #fff;
  transform: scale(1.0);     /* neutralno — bez zoom-a */
  object-position: center 30%; /* lagani pomak prema gore */
}

/* LAPTOP / TABLET LANDSCAPE – header “stisnuti”
   ------------------------------------------------------------------ */

@media (max-width: 1100px) and (min-width: 901px) {
  .header-inner {
    gap: 12px;
  }

  .brand-logo {
    width: 110px;   /* manji logo */
  }

  .brand-text {
    font-size: 12px;  /* malo sitniji tekst uz logo */
  }

  nav ul {
    gap: 10px;       /* manji razmak između linkova */
  }

  nav a {
    padding: 8px 14px;  /* manji padding */
    font-size: 15px;    /* malo manji font */
  }

  .nav-cta a {
    padding: 8px 16px;  /* stisni i CTA */
  }
}

@media (max-width: 600px) {
  .form-wrapper iframe {
    height: 3000px; /* ili 2800 ako treba */
  }
}
