/*
 * Stranica "Uputstvo za aplikaciju" (uputstvo/index.html).
 * Oslanja se na tokene iz styles.css (--ivory, --gold, --serif...);
 * ovde su samo komponente specificne za uputstvo.
 */

.uputstvo {
  --sage: #5e6b3a;
  --rose: #a2594c;
  --rose-wash: #f4e4df;
}

/* ---------- hero ---------- */
.uputstvo .hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 0.95;
}

/* ---------- zajednicko: krugovi sa brojem ---------- */
/* Sans cifre jednake visine + flex: broj je uvek u centru kruga
   (Georgia ima "stare" cifre koje vise ispod linije). */
.u-broj,
.u-tacka,
.u-oznaka {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: center;
}

.u-broj {
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  background: var(--gold);
  font-size: 1.05rem;
}

.u-tacka {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
  background: var(--gold);
  font-size: 0.78rem;
}

.u-oznaka {
  position: absolute;
  width: 21px;
  height: 21px;
  margin: -10.5px 0 0 -10.5px;
  background: rgba(185, 137, 53, 0.78);
  font-size: 0.72rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ---------- okvir telefona ---------- */
.u-telefon {
  position: relative;
  width: min(70vw, 270px);
  margin: 0 auto;
  padding: 7px;
  border-radius: 26px;
  background: #1e2227;
  box-shadow: 0 14px 30px rgba(34, 43, 51, 0.18);
  container-type: inline-size;
}

.u-telefon img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1219;
  border-radius: 19px;
  background: var(--sunken);
}

/* marker "dodirnite ovde" */
.u-dodir {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2.5px solid #d39b32;
  border-radius: 50%;
  background: rgba(211, 155, 50, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  animation: u-puls 1.8s ease-out infinite;
}

.u-dodir::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #d39b32;
}

.u-dodir.uspeh {
  border-color: var(--sage);
  background: rgba(94, 107, 58, 0.2);
  animation: none;
}

.u-dodir.uspeh::after {
  background: var(--sage);
}

@keyframes u-puls {
  0% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 0 rgba(211, 155, 50, 0.55);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 14px rgba(211, 155, 50, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .u-dodir {
    animation: none;
  }
}

/* ---------- brzo uputstvo ---------- */
.u-brzo {
  width: min(calc(100% - 3rem), 760px);
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.u-blok-naslov h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.u-blok-naslov p:not(.section-kicker) {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.u-zadatak {
  margin-top: 1.75rem;
  padding: 1.5rem 1.1rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--pearl);
  box-shadow: 0 10px 30px rgba(86, 59, 31, 0.06);
  scroll-margin-top: 2rem;
}

.u-zadatak-glava {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.u-zadatak-glava .section-kicker {
  margin: 0 0 0.15rem;
}

.u-zadatak h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
}

.u-ikona {
  display: grid;
  flex: none;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--gold-wash);
  color: var(--gold-dark);
}

.u-ikona svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.u-ikona.otkaz {
  border-color: rgba(162, 89, 76, 0.3);
  background: var(--rose-wash);
  color: var(--rose);
}

.u-koraci {
  display: grid;
  margin: 1.6rem 0 0;
  padding: 0;
  gap: 2.5rem;
  list-style: none;
}

.u-korak {
  position: relative;
  text-align: center;
}

.u-korak + .u-korak::before {
  content: '';
  position: absolute;
  top: -1.9rem;
  left: 50%;
  width: 1px;
  height: 1.25rem;
  background: linear-gradient(var(--gold-line), var(--gold));
}

/* druga grana unutar iste radnje (npr. "Biram sate" umesto "Cela radionica") */
.u-grana {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--gold-line);
  text-align: center;
}

.u-grana .section-kicker {
  margin: 0 0 0.3rem;
}

.u-grana h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 5vw, 1.4rem);
  font-weight: 400;
}

.u-korak.gotovo .u-broj {
  background: var(--sage);
}

.u-opis {
  max-width: 270px;
  margin: 0.9rem auto 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.35;
}

.u-opis b,
.u-detalj b {
  font-weight: 600;
}

/* ---------- napomene ---------- */
.u-napomena {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--gold-wash);
  color: #5c4525;
  font-size: 0.95rem;
  line-height: 1.5;
}

.u-napomena.vazno {
  border-left-color: var(--rose);
  background: var(--rose-wash);
  color: #6d3329;
}

/* ---------- detaljno uputstvo ---------- */
.u-detaljno-naslov {
  width: min(calc(100% - 3rem), var(--content));
  margin: 0 auto 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.uputstvo .policy-section {
  scroll-margin-top: 1.5rem;
}

.uputstvo .policy-section > p {
  max-width: 62ch;
}

.u-detalj {
  display: grid;
  margin-top: 1.5rem;
  padding: 1.3rem 1.1rem;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--pearl);
}


.u-detalj h3 {
  margin: 0;
}

.u-detalj ol {
  display: grid;
  margin: 0.8rem 0 0;
  padding: 0;
  gap: 0.7rem;
  list-style: none;
}

.u-detalj li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #495158;
  font-size: 0.98rem;
  line-height: 1.55;
}

.u-detalj .u-napomena {
  margin-top: 0.9rem;
}

/* niz malih telefona (boje zvonceta, sadrzaj) */
/* Telefon: jedan telefon u redu, iste velicine kao svuda (min(70vw, 270px)). */
.u-galerija {
  display: grid;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.u-galerija figure {
  margin: 0;
  text-align: center;
}

.u-galerija figcaption {
  margin-top: 0.6rem;
  color: #495158;
  font-size: 0.88rem;
  line-height: 1.4;
}

.u-galerija figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.u-cip {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  vertical-align: 0.05em;
}

/* ---------- imitacija popupa obavestenja ---------- */
.u-ekran-maska {
  position: absolute;
  inset: 7px;
  overflow: hidden;
  border-radius: 19px;
  background: rgba(24, 26, 29, 0.42);
}

.u-popup {
  position: absolute;
  top: 9%;
  right: 3.5%;
  left: 3.5%;
  overflow: hidden;
  border: 1px solid #e3d4b4;
  border-radius: 7cqw;
  background: #fbf8f2;
  box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, 0.25);
  font-family: var(--sans);
  text-align: left;
}

.u-popup-glava {
  display: flex;
  padding: 5cqw 5cqw 3.5cqw;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #efe6d6;
}

.u-popup-glava strong {
  display: block;
  color: #222b33;
  font-family: var(--serif);
  font-size: 5.6cqw;
  font-weight: 400;
}

.u-popup-glava span {
  color: #747b80;
  font-size: 3.6cqw;
}

.u-popup-x {
  display: grid;
  width: 9cqw;
  height: 9cqw;
  place-items: center;
  border-radius: 50%;
  background: #ebe4da;
  color: #5d6166;
  font-size: 4.4cqw;
}

.u-popup ul {
  margin: 0;
  padding: 0;
  background: #f5ecdd;
  list-style: none;
}

.u-popup li {
  display: grid;
  padding: 3.6cqw 4.5cqw;
  grid-template-columns: 9cqw 1fr;
  gap: 3cqw;
  border-bottom: 1px solid #ecdfc7;
}

.u-popup-ikona {
  display: grid;
  width: 9cqw;
  height: 9cqw;
  place-items: center;
  border: 1px solid #d8b56b;
  border-radius: 50%;
  color: #a87428;
}

.u-popup-ikona svg {
  width: 4.6cqw;
  height: 4.6cqw;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.u-popup h4 {
  position: relative;
  margin: 0;
  padding-right: 4cqw;
  color: #222b33;
  font-size: 3.9cqw;
  font-weight: 500;
  line-height: 1.25;
}

.u-popup h4::after {
  content: '';
  position: absolute;
  top: 1cqw;
  right: 0;
  width: 2cqw;
  height: 2cqw;
  border-radius: 50%;
  background: #c4902f;
}

.u-popup p {
  margin: 1cqw 0 0;
  color: #6e6a66;
  font-size: 3.2cqw;
  line-height: 1.35;
}

.u-popup-red {
  display: flex;
  margin-top: 1.6cqw;
  justify-content: space-between;
  color: #a87428;
  font-size: 2.9cqw;
  letter-spacing: 0.06em;
}

.u-popup-dno {
  padding: 4cqw;
  color: #a87428;
  font-size: 3.6cqw;
  text-align: center;
}

/* ---------- desktop ---------- */
/* Racunar: SVI telefoni iste velicine (--u-tel), bez obzira da li stoje
   sami ili u redu; red se centrira i prelama kad nema mesta. */
@media (min-width: 720px) {
  .uputstvo {
    --u-tel: 242px;
  }

  .u-brzo {
    width: min(calc(100% - 3rem), 1120px);
  }

  .u-koraci {
    grid-template-columns: repeat(auto-fit, var(--u-tel));
    justify-content: center;
    gap: 2rem 1.75rem;
  }

  .u-korak + .u-korak::before {
    top: 50%;
    left: -1.35rem;
    width: 0.9rem;
    height: 1px;
  }

  .u-telefon,
  .u-brzo .u-telefon,
  .u-detalj .u-telefon,
  .u-galerija .u-telefon {
    width: var(--u-tel);
    max-width: none;
    padding: 7px;
    border-radius: 26px;
  }

  .u-galerija .u-telefon img {
    border-radius: 19px;
  }

  .u-opis {
    font-size: 1.05rem;
  }

  .u-detalj {
    padding: 1.75rem;
    grid-template-columns: var(--u-tel) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }

  .u-galerija {
    grid-template-columns: repeat(auto-fit, var(--u-tel));
    justify-content: center;
    gap: 2rem 1.75rem;
  }
}

/* ---------- telefon ---------- */
@media (max-width: 600px) {
  .u-brzo,
  .u-detaljno-naslov {
    width: min(calc(100% - 2rem), var(--content));
  }

  .u-zadatak {
    padding: 1.3rem 0.9rem 1.7rem;
    border-radius: 22px;
  }

  .uputstvo .policy-section {
    padding-left: 1.4rem;
  }

  .uputstvo .policy-section h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.4rem);
  }

  .u-detalj {
    padding: 1.1rem 0.9rem;
  }
}
