/*
  Kviz v3: samo ono što je novo u odnosu na styles.css (boje, font, dugmad, kartice odgovora, tamni ekran pred formu
  i forma su iz v2 i ovde se ne menjaju). Boje isključivo iz Superfocus palete (CLAUDE.md, matija-novkovic-brend/).
*/

/* ---------- procenat na vrhu (krug, kao kod konkurenta) ---------- */
.k3-bar { margin-bottom: 26px; }
.k3-ring { position: relative; justify-self: center; width: 52px; height: 52px; }
.k3-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.k3-ring circle { fill: none; stroke-width: 4; }
.k3-ring-track { stroke: var(--line); }
.k3-ring-fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.k3-ring-num { position: absolute; inset: 0; display: grid; place-items: center; grid-auto-flow: column; justify-content: center; align-items: baseline;
  padding-top: 17px; font-size: 14px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.k3-ring-num small { font-size: 10px; font-weight: 700; margin-left: 1px; color: var(--muted); }
.k3-ring.is-full .k3-ring-num { color: var(--accent-ink); }

/* ---------- početna ---------- */
.k3-start .btn.k3-go { margin-top: 28px; min-height: 58px; font-weight: 700; }
/* Marko 25. 11. 2026: dugme "Kreni" zeleno (emerald-700 iz palete, ista boja kao traka "Besplatan test") */
.k3-start .btn.primary.k3-go { background: #007956; border-color: #007956; color: #fff; }
.k3-start .btn.primary.k3-go:hover:not(:disabled) { background: #005f46; border-color: #005f46; }
.k3-start .btn.k3-go::after { transition: transform .25s var(--ease); }
.k3-start .btn.k3-go:hover::after { transform: translateX(3px); }
.k3-note { max-width: 38ch; margin: 14px auto 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* ---------- pitanja ---------- */
/* Marko 26. 11. 2026: tekst pitanja ide do desne margine (ista kao leva), bez skraćivanja redova radi ravnoteže */
.k3-q h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 6.2vw, 1.9rem); line-height: 1.16; letter-spacing: -.03em; text-wrap: wrap; }
.k3-q .opt, .k3-q .lk { text-wrap: wrap; }
.k3-hint { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.k3-q .opt { font-size: 16px; line-height: 1.4; padding: 16px 18px; }
.k3-q .lk { min-height: 56px; }

/* ---------- "Spremamo tvoje odgovore": šest zamućenih delova oko procenta ---------- */
/* Slike delova su providne, tamne figure: na tamnoj pozadini stoje na svetloj podlozi (#f5f5f4), iste kao na rezultatu,
   pa se oblik figure vidi i kad je zamućen. Prigušuje se cela podloga, ne figura. */
.k3-loading { text-align: center; }
.k3-orbit { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 18px auto 4px; }
.k3-fig { position: absolute; left: 50%; top: 50%; width: 25%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-142%) rotate(calc(var(--i) * -60deg)); }
.k3-fig img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #f5f5f4;
  filter: blur(3px) saturate(.7); opacity: .42; transform: scale(.92);
  transition: filter .9s var(--ease), opacity .9s var(--ease), transform .9s var(--ease), box-shadow .9s var(--ease);
  animation: k3-read 3s var(--ease) infinite; animation-delay: calc(var(--i) * .5s); }
/* "čitanje": svaki deo redom zasvetli, kao da ga test proverava */
@keyframes k3-read { 0%, 30%, 100% { opacity: .42; transform: scale(.92); } 12% { opacity: .95; transform: scale(1.02); } }
.k3-orbit.narrow .k3-fig img { animation: none; }
.k3-orbit.narrow .k3-fig:not(.keep) img { opacity: .08; transform: scale(.7); filter: blur(6px) saturate(.3); }
.k3-orbit.narrow .k3-fig.keep img { opacity: 1; transform: scale(1.08); filter: blur(3px) saturate(.85);
  box-shadow: 0 0 0 2px var(--rv-mint), 0 14px 28px -16px rgba(0, 0, 0, .9); }
.k3-core { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.k3-core svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.k3-core circle { fill: none; stroke-width: 6; }
.k3-core-track { stroke: rgba(250, 250, 249, .1); }
.k3-core-fill { stroke: var(--rv-mint); stroke-linecap: round; }
.k3-core-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 33%;
  font-size: clamp(30px, 9.4vw, 38px); line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; }
.k3-core-num small { font-size: .45em; margin-left: 2px; color: var(--rv-muted); letter-spacing: 0; }
.k3-loading .rv-title { margin: 14px 0 18px; }

/* ---------- glavni i sporedni deo u crnom okviru: isti okvir na formi (zaključano) i na rezultatu (otključano) ---------- */
/* Marko 25. 11. 2026: slike oba dela i nazivi u jednom okviru na crnoj pozadini, ispod jedna gradacija sa oznakama. */
.k3-frame { position: relative; padding: 20px 18px; border-radius: 28px; background: #1c1917; color: #fafaf9; }
.k3-pair { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: end; }
.k3-tile { margin: 0; min-width: 0; text-align: center; }
.k3-art { position: relative; aspect-ratio: 1; border-radius: 20px; background: #f5f5f4; }
.k3-tile.k3-second .k3-art { border-radius: 16px; background: #e7e5e4; }
.k3-clip { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.k3-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* gradacija: jedna traka preko oba dela, od jakog (glavni) ka slabijem (sporedni), oznaka ispod svakog dela */
.k3-grade { display: grid; grid-template-columns: 1.55fr 1fr; column-gap: 14px; margin-top: 16px; }
.k3-grade-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, #00d294 0%, #00bb7f 52%, color-mix(in srgb, #00bb7f 30%, #44403b) 74%, #57534d 100%); }
.k3-grade-k { margin-top: 10px; text-align: center; font-size: 14px; line-height: 1.25; font-weight: 700; color: #00d294; }
.k3-grade-k.k3-second { font-size: 13px; font-weight: 600; color: #a6a09b; }

/* forma: okvir malo svetliji od tamne stranice, figure zamućene, preko njih ključ, traka umesto naziva */
.k3-frame.is-locked { margin: 14px 0 4px; background: #292524; box-shadow: inset 0 0 0 1px rgba(250, 250, 249, .08), 0 24px 48px -28px rgba(0, 0, 0, .9); }
.is-locked .k3-art img { filter: blur(8px) saturate(.6); transform: scale(1.08); }
.is-locked .k3-clip::after { content: ""; position: absolute; inset: 0; background: rgba(28, 25, 23, .16); }
.k3-lock { position: absolute; z-index: 1; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(28, 25, 23, .82); box-shadow: inset 0 0 0 1px rgba(250, 250, 249, .12), 0 10px 24px -12px rgba(0, 0, 0, .8); color: var(--rv-mint); }
.k3-tile.k3-second .k3-lock { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.k3-lock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k3-tile.k3-second .k3-lock svg { width: 16px; height: 16px; }
.k3-seal { display: block; height: 16px; width: 78%; margin: 16px auto 0; border-radius: 999px;
  background: repeating-linear-gradient(45deg, rgba(250, 250, 249, .16) 0 6px, rgba(250, 250, 249, .05) 6px 12px); }
.k3-tile.k3-second .k3-seal { height: 13px; margin-top: 13px; }
.k3-gate .rv-title { margin-top: 26px; }
.k3-gate .rv-sub { margin-bottom: 4px; }

/* telefon: pozivni i broj u jednom polju, kao na webinar landingu */
.k3-phone { display: flex; min-height: 56px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.k3-phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.k3-phone select { flex: 0 0 116px; min-width: 0; padding: 0 26px 0 14px; border: 0; border-right: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius);
  font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%239e9ea2' stroke-width='1.7'/></svg>") no-repeat right 11px center; }
.k3-phone input { flex: 1 1 auto; min-width: 0; padding: 0 18px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); caret-color: var(--accent-strong); }
.k3-phone input::placeholder { color: var(--muted); }
.k3-phone select:focus, .k3-phone input:focus { outline: none; box-shadow: none; }
.k3-field.has-error .k3-phone { border-color: var(--sf-rose); box-shadow: 0 0 0 3px color-mix(in srgb, #e11d48 14%, transparent); }
/* intl-tel-input (kao na webinar landingu): zastava + pozivni levo u istom polju, sve države sa pretragom */
.k3-phone.iti-on select { display: none; }
.k3-phone .iti { flex: 1 1 auto; display: block; min-width: 0; }
.k3-phone .iti input { width: 100%; height: 100%; min-height: 54px; padding-right: 18px; }
.k3-phone .iti__country-container { padding: 0; }
.k3-phone .iti__selected-country { display: flex; align-items: center; height: 100%; padding: 0 12px 0 14px; border: 0 !important; border-right: 1px solid var(--line) !important;
  border-radius: var(--radius) 0 0 var(--radius); background: transparent !important; box-shadow: none !important; font: inherit; color: var(--ink); cursor: pointer; }
.k3-phone .iti__selected-country:hover, .k3-phone .iti__selected-country:focus-visible { background: #fafaf9 !important; outline: none; }
.k3-phone .iti__selected-country-primary { padding: 0; gap: 0; background: transparent !important; }
.k3-phone .iti__arrow { display: none; }
.k3-phone .iti__selected-dial-code { margin-left: 8px; color: var(--ink); font-weight: 700; font-size: 16px; }
.k3-phone .iti__selected-country::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: 9px; border-right: 1.7px solid var(--faint); border-bottom: 1.7px solid var(--faint); transform: translateY(-2px) rotate(45deg); }
/* lista država je u body (iznad svega), zato bez .k3-phone ispred */
.iti--container { z-index: 10050; }
.iti__dropdown-content { margin-top: 8px; border: 1px solid #e7e5e4; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px -24px rgba(16, 16, 16, .35); overflow: hidden; color: #101010; font-family: inherit; }
.iti__search-input { width: 100%; height: auto; margin: 0; padding: 13px 16px; border: 0; border-bottom: 1px solid #e7e5e4; border-radius: 0; background: #fff; box-shadow: none; font-family: inherit; font-size: 16px; font-weight: 400; color: #101010; outline: none; }
.iti__search-input:focus { border-color: #e7e5e4; box-shadow: none; }
.iti__country-list { max-height: 220px; padding: 4px; }
.iti__country { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: #101010; }
.iti__country.iti__highlight { background: #ecfdf5; }
.iti__dial-code { color: #616165; }
/* predlog ispravke e-maila (gmial.com → gmail.com): klik ispravi adresu */
.k3-fix { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #007956; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.k3-fix:hover { color: #005f46; }
.k3-sheet { margin-top: 22px; }
.k3-sheet .btn.primary { margin-top: 4px; }

/* ---------- rezultat ---------- */
.k3-results { padding-top: 0; }
/* traka na vrhu (posle prozora): preko cele širine, ostaje vidljiva i kad se skroluje, pa uđe i u screenshot */
html:has(.k3-shotbar) body { overflow-x: clip; }
.k3-shotbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100vw; margin: -16px 0 22px calc(50% - 50vw); padding: 11px 20px;
  background: color-mix(in srgb, #fee685 60%, #fff); border-bottom: 1px solid color-mix(in srgb, #ffd236 50%, #fff);
  font-size: 14px; line-height: 1.35; font-weight: 700; color: #44403b; text-align: left; }
.k3-shotbar svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #d97706; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k3-results { text-align: center; }
.k3-res-title { margin: 6px 0 22px; font-size: clamp(1.6rem, 7vw, 2.15rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.k3-name { margin: 14px 0 0; font-size: clamp(22px, 6.6vw, 30px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.k3-tile.k3-second .k3-name { margin-top: 11px; font-size: clamp(16px, 4.4vw, 20px); letter-spacing: -.025em; color: #d6d3d1; }
/* dok je prozor otvoren rezultat je zamućen (kao na formi); kad se prozor zatvori, izoštri se */
.k3-frame.is-held .k3-art img { filter: blur(8px) saturate(.6); transform: scale(1.08); }
.k3-frame.is-open .k3-art img { animation: k3-unveil 1s var(--ease) both; }
.k3-frame.is-open .k3-tile.k3-second .k3-art img { animation-delay: .14s; }
@keyframes k3-unveil { from { filter: blur(8px) saturate(.6); transform: scale(1.08); } }
/* Skool: samo jedna rečenica i dugme, bez kartice i naslova */
.k3-next { margin-top: 26px; }
.k3-next p { max-width: 32ch; margin: 0 auto 16px; font-size: 17px; line-height: 1.45; color: #44403b; text-wrap: balance; }
.k3-next .btn.primary { text-decoration: none; }

/* zeleno glavno dugme (Kreni, Skool, prozor): emerald-700 iz palete, kao traka "Besplatan test" */
.btn.primary.k3-green { background: #007956; border-color: #007956; color: #fff; }
.btn.primary.k3-green:hover:not(:disabled) { background: #005f46; border-color: #005f46; }
.btn.primary.k3-green::after { transition: transform .25s var(--ease); }
.btn.primary.k3-green:hover::after { transform: translateX(3px); }

/* prozor "Napravi screenshot" */
html.k3-noscroll { overflow: hidden; }
.k3-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(28, 25, 23, .66);
  animation: k3-fade .2s ease both; transition: opacity .2s ease; }
.k3-modal.out { opacity: 0; }
@keyframes k3-fade { from { opacity: 0; } }
.k3-modal-card { width: min(100%, 380px); padding: 28px 22px 20px; border-radius: 26px; background: #fff; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); animation: k3-pop .34s var(--ease) both; }
@keyframes k3-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.k3-modal-ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: color-mix(in srgb, #fee685 60%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffd236 50%, #fff); color: #d97706; }
.k3-modal-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k3-modal h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.k3-modal p { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .k3-fig img, .k3-frame.is-open .k3-art img, .k3-modal, .k3-modal-card { animation: none; }
  .k3-ring-fill, .k3-fig img { transition: none; }
}
