/*
 * ============================================================
 * CVEĆARA IVONA — flowers.css
 * Cvetne SVG animacije, padanje latica, ambient efekti
 * ============================================================
 */

/* ============================================================
   PADAJUĆE LATICE — canvas layer iznad hero-a
   ============================================================ */

#latice-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* ============================================================
   SVG CVET — SIGNATURE ANIMACIJA BRENDA
   ============================================================ */

.cvet-animiran {
  display: inline-block;
}

.cvet-animiran .latica {
  transform-origin: center;
  animation: latica-pulsira 4s ease-in-out infinite;
}

.cvet-animiran .latica:nth-child(1) { animation-delay: 0s; }
.cvet-animiran .latica:nth-child(2) { animation-delay: 0.4s; }
.cvet-animiran .latica:nth-child(3) { animation-delay: 0.8s; }
.cvet-animiran .latica:nth-child(4) { animation-delay: 1.2s; }
.cvet-animiran .latica:nth-child(5) { animation-delay: 1.6s; }
.cvet-animiran .latica:nth-child(6) { animation-delay: 2.0s; }
.cvet-animiran .latica:nth-child(7) { animation-delay: 2.4s; }
.cvet-animiran .latica:nth-child(8) { animation-delay: 2.8s; }

@keyframes latica-pulsira {
  0%, 100% {
    transform: scale(1) rotate(var(--ugao, 0deg));
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08) rotate(var(--ugao, 0deg));
    opacity: 1;
  }
}

/* ============================================================
   SEKCIJA — CVETNI PRIJELAZ (botanički deo)
   ============================================================ */

.botanicki-razdeljak {
  position: relative;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.botanicki-razdeljak svg {
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

/* ============================================================
   MARQUEE TRAKA SA CVETNIM TEKSTOM
   ============================================================ */

.marquee-traka {
  background: var(--boja-sekundarna);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-sadrzaj {
  display: inline-flex;
  gap: 0;
  animation: marquee-kretanje 28s linear infinite;
}

.marquee-stavka {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  font-family: var(--font-naslov);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
  color: rgba(250,246,241,0.85);
  white-space: nowrap;
}

.marquee-razdvajac {
  color: var(--boja-akcent);
  font-size: 10px;
  opacity: 0.7;
}

@keyframes marquee-kretanje {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FLOATING CVETOVI — dekorativni ambient
   ============================================================ */

.ambient-cvetovi {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-cvet {
  position: absolute;
  opacity: 0;
  animation: ambient-plutanje var(--trajanje, 15s) ease-in-out infinite;
  animation-delay: var(--kasnjenje, 0s);
}

@keyframes ambient-plutanje {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.6);
  }
  10% {
    opacity: 0.12;
  }
  90% {
    opacity: 0.08;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) rotate(180deg) scale(1.1);
  }
}

/* ============================================================
   HERO LATICE CANVAS ANIMACIJE
   ============================================================ */

@keyframes latica-pada {
  0% {
    transform: translateY(-60px) rotate(0deg) translateX(0px);
    opacity: 0;
  }
  5% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(110vh) rotate(720deg) translateX(var(--pomak-x, 80px));
    opacity: 0;
  }
}

/* ============================================================
   HOVER CVET EFEKAT NA LOGO
   ============================================================ */

.logo:hover .logo-naziv::after {
  content: ' ✿';
  font-style: normal;
  color: var(--boja-akcent);
  animation: cvet-pojava 0.4s ease forwards;
}

@keyframes cvet-pojava {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   SEKCIJA POTPISA — "Od 1985." sa cvetnim okvirom
   ============================================================ */

.potpis-sekcija {
  position: relative;
  text-align: center;
  padding: var(--razmak-xl) 0;
  background: var(--boja-svetla);
  overflow: hidden;
}

.potpis-cvet-levo,
.potpis-cvet-desno {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
}

.potpis-cvet-levo {
  left: -60px;
}

.potpis-cvet-desno {
  right: -60px;
  transform: translateY(-50%) scaleX(-1);
}

.potpis-tekst {
  font-family: var(--font-naslov);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(107,39,55,0.2);
  letter-spacing: 0.05em;
  line-height: 1;
  user-select: none;
}

/* ============================================================
   CVETNI LOADER DOTS
   ============================================================ */

.cvetni-loader {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.cvetni-loader-tacka {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--boja-akcent);
  animation: cvetni-puls 1.4s ease-in-out infinite;
}

.cvetni-loader-tacka:nth-child(2) { animation-delay: 0.2s; }
.cvetni-loader-tacka:nth-child(3) { animation-delay: 0.4s; }

@keyframes cvetni-puls {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.5); opacity: 1; }
}

/* ============================================================
   SCROLL INDICATOR — cvetni morf
   ============================================================ */

.hero-strelica {
  position: relative;
}

.hero-strelica::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.15);
  animation: krug-siri 2s ease-in-out infinite;
}

@keyframes krug-siri {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .marquee-sadrzaj {
    animation: none;
  }
  .ambient-cvet {
    display: none;
  }
  .cvet-animiran .latica {
    animation: none;
  }
  .hero-strelica::before {
    display: none;
  }
  @keyframes latica-pada {
    from, to { opacity: 0; }
  }
}
