/* Goksijeve ploce (27.11.2026). Tamno je osnovno: koristi se za pultom, u polumraku.
   Zuta je Goksijeva boja (ista kao u evidenciji treninga). Sistemsko pismo. */

:root {
  color-scheme: dark;
  --poz: #111113;
  --povrs: #1b1b1f;
  --povrs2: #26262b;
  --ivica: #2f2f35;
  --tekst: #eeece7;
  --tiho: #9a978f;
  --zuta: #ffd60a;
  --na-zutoj: #111113;
  --ok: #8fe0a2;
  --plavo: #8ab4ff;
  --dug: #ff8a73;
  --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(90% 28rem at 110% -6rem, rgba(255, 214, 10, .14), transparent 65%), var(--poz);
  background-attachment: fixed;
  color: var(--tekst);
  font: 400 16px/1.4 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4rem; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.05rem; font-weight: 700; margin-top: 1.4rem; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: .3rem 0 .6rem; }
.tiho { color: var(--tiho); }
.sitno { font-size: .82rem; }
.obrva { margin: 0; color: var(--tiho); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }

.sadrzaj {
  max-width: 640px; margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
}

/* ---------- donji meni ---------- */
.meni {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(17, 17, 19, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--ivica);
}
.meni a {
  flex: 1; max-width: 180px; text-align: center; padding: 11px 8px; border-radius: 12px;
  font-weight: 650; color: var(--tiho);
}
.meni a.aktivno { background: var(--zuta); color: var(--na-zutoj); }

/* ---------- dugmad i polja ---------- */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--ivica); background: var(--povrs2); color: var(--tekst);
  font: inherit; font-weight: 650; cursor: pointer;
}
.dugme.glavno { background: var(--zuta); border-color: var(--zuta); color: var(--na-zutoj); }
.dugme.opasno { color: var(--dug); }
.dugme.malo { min-height: 38px; padding: 7px 12px; font-size: .9rem; }
.dugmad { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--zuta); font: inherit; font-weight: 600; cursor: pointer; }
.link.tiho { color: var(--tiho); }
.link.sitno { font-size: .82rem; }
.nazad { display: inline-block; margin-bottom: 8px; }

input, select {
  width: 100%; min-height: 46px; padding: 10px 12px; margin-top: 4px;
  border: 1px solid var(--ivica); border-radius: 12px;
  background: var(--povrs); color: var(--tekst); font: inherit; font-size: 16px;
}
input:focus { outline: 2px solid var(--zuta); outline-offset: 1px; }
label { display: block; margin: 10px 0 0; font-size: .85rem; font-weight: 600; color: var(--tiho); }
.trazi { margin: 10px 0 12px; }
.red2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.red2 .usko + label { grid-column: auto; }
.forma .red2:first-of-type { grid-template-columns: 84px 1fr; }
details { margin-top: 12px; }
summary { cursor: pointer; color: var(--tiho); font-size: .9rem; font-weight: 600; }

.kartica {
  background: var(--povrs); border: 1px solid var(--ivica); border-radius: var(--r);
  padding: 16px; margin: 16px 0;
}
.naslov-red { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prazno { padding: 28px 8px; text-align: center; color: var(--tiho); }
.beleska { color: var(--tiho); font-style: italic; }

/* ---------- cipovi ---------- */
.filteri { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 14px 0 4px; }
.cipovi { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ivica);
  background: transparent; color: var(--tiho); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.cip.izabran { background: var(--tekst); border-color: var(--tekst); color: var(--poz); }

/* ---------- sta svira ---------- */
.svira {
  position: relative; padding: 16px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(255, 214, 10, .16), rgba(255, 214, 10, .03)), var(--povrs);
  border: 1px solid rgba(255, 214, 10, .35);
}
.svira-vrh { display: flex; justify-content: space-between; align-items: center; }
.svira h1 { margin-top: 6px; padding-right: 96px; }
.svira .izv { margin: 0; font-weight: 600; padding-right: 96px; }
.veliki-bpm {
  position: absolute; right: 16px; top: 42px; text-align: right;
  font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--zuta); font-variant-numeric: tabular-nums;
}
.veliki-bpm small { display: block; font-size: .72rem; font-weight: 700; color: var(--tiho); letter-spacing: .08em; }

/* ---------- liste numera i ploca ---------- */
.lista { display: flex; flex-direction: column; gap: 6px; }
.grupa {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 4px;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--zuta);
}
.grupa span { color: var(--tiho); font-weight: 600; }
.grupa::after { content: ''; flex: 1; height: 1px; background: var(--ivica); }
.nm, .pl {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%;
  padding: 11px 13px; border-radius: 14px; text-align: left;
  border: 1px solid var(--ivica); background: var(--povrs); color: var(--tekst); font: inherit; cursor: pointer;
}
.nm:active, .pl:active { background: var(--povrs2); }
.nm.bleda { opacity: .45; }
.nm-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nm-tekst b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-tekst span { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-tekst small { color: var(--tiho); font-size: .78rem; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-bpm { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.nm-bpm b { font-size: 1.25rem; font-weight: 800; }
.nm-bpm b.nema { font-size: .8rem; color: var(--dug); }
.smer { font-size: .74rem; font-weight: 700; }
.smer.brza { color: var(--dug); }
.smer.sporija { color: var(--plavo); }
.pitch { font-size: .72rem; color: var(--tiho); }
.pitch.van { color: var(--dug); }
.nm-oznake { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.nm-oznake:empty { display: none; }
.oz { font-size: .72rem; color: var(--tiho); }
.oz.nova { color: var(--ok); font-weight: 600; }
.oz.siva { color: var(--tiho); font-weight: 600; }
.poz {
  min-width: 34px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--zuta);
  font-variant-numeric: tabular-nums;
}
.pogodci { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.pogodci span { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--povrs2); }

/* ---------- BPM: merenje, baza, lupkanje ---------- */
.bpm-red { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: stretch; margin-top: 4px; }
.meri {
  min-height: 60px; border-radius: 14px; border: 0; background: var(--zuta); color: var(--na-zutoj);
  font: inherit; font-weight: 750; cursor: pointer; touch-action: manipulation;
}
.meri.aktivno { background: var(--dug); color: #fff; animation: disi 1.2s ease-in-out infinite; }
@keyframes disi { 50% { opacity: .75; } }
.bpm-red input { margin-top: 0; min-height: 60px; font-size: 1.5rem; font-weight: 800; text-align: center; }
.bpm-info:empty { display: none; }
.bpm-info { margin-top: 8px; }
.bpm-info p { margin: 4px 0; }
.nivo { height: 6px; border-radius: 3px; background: var(--povrs2); overflow: hidden; margin: 6px 0; }
.nivo span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .15s; }
.upozorenje { color: var(--dug); }
.otvori-tap { display: block; margin-top: 6px; }
.tap {
  width: 100%; min-height: 80px; margin-top: 8px; border-radius: 14px; border: 2px dashed rgba(255, 214, 10, .5);
  background: rgba(255, 214, 10, .07); color: var(--zuta); font: inherit; font-weight: 700; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.tap[hidden] { display: none; }
.tap.puls { animation: puls .18s ease-out; }
@keyframes puls { from { background: rgba(255, 214, 10, .35); } to { background: rgba(255, 214, 10, .07); } }
.izvor { font-size: .68rem; color: var(--tiho); }

/* ---------- list (sheet) ---------- */
.list-pozadina {
  position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6);
  display: flex; align-items: flex-end; justify-content: center;
}
.list {
  width: 100%; max-width: 640px; max-height: 92vh; overflow: auto;
  background: var(--povrs); border-radius: 20px 20px 0 0; border: 1px solid var(--ivica);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}

/* ---------- poruka dole ---------- */
#poruka {
  position: fixed; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  padding: 11px 16px; border-radius: 14px; background: var(--tekst); color: var(--poz);
  font-weight: 600; font-size: .92rem; transition: opacity .2s, transform .2s;
}
#poruka.vidljiva { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#poruka button { background: none; border: 0; color: #8a6d00; font: inherit; font-weight: 800; cursor: pointer; padding: 0; }

.rezerva .dugme { flex: 1 1 140px; }
.odjava { display: block; margin-top: 14px; }

/* ---------- prijava ---------- */
.prijava { max-width: 380px; margin: 0 auto; padding: 18vh 20px 40px; }
.prijava .znak {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px;
  background: radial-gradient(circle, var(--zuta) 0 18%, #111 19% 100%); border: 2px solid #333;
  color: transparent; font-size: 0;
}
.prijava button { width: 100%; margin-top: 18px; }
.greska { color: var(--dug); font-weight: 600; }

@media (min-width: 700px) {
  .sadrzaj { padding-top: 32px; }
}
