/* =========================================================
   SOKOLIS – Tehnička podrška
   ========================================================= */

:root {
  --panel-bg: rgba(38, 42, 46, 0.58);
  --panel-bg-hover: rgba(24, 27, 30, 0.88);
  --panel-border: rgba(255, 255, 255, 0.16);
  --panel-border-hover: rgba(255, 255, 255, 0.28);
  --tekst: rgba(255, 255, 255, 0.86);
  --tekst-hover: #ffffff;
  --akcenat: #ffd27a;
  --greska: #ff9d92;
  --uspeh: #9ce8b5;
  --prelaz: 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--tekst);
  background: #22262a url("../img/sokolis-pozadina.jpg") center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  body {
    background-image: url("../img/sokolis-pozadina-mob.jpg");
    background-attachment: scroll;
  }
}

/* blaga tamna zavesa preko fotografije radi čitljivosti */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.34) 100%);
  pointer-events: none;
  z-index: 0;
}

.omotac {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.omotac--siroko { max-width: 980px; }

/* ---------- Panel sa tekstom ---------- */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 40px 44px;
  color: var(--tekst);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: background-color var(--prelaz), color var(--prelaz),
              border-color var(--prelaz), box-shadow var(--prelaz),
              backdrop-filter var(--prelaz);
}

/* efekat pri nadnošenju miša – tamnija pozadina, jasnija slova */
.panel:hover,
.panel:focus-within {
  background: var(--panel-bg-hover);
  border-color: var(--panel-border-hover);
  color: var(--tekst-hover);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.panel h1 {
  margin: 0 0 26px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.panel h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color var(--prelaz), width var(--prelaz);
}

.panel:hover h1::after { background: var(--akcenat); width: 96px; }

.panel p { margin: 0 0 16px; }
.panel p:last-child { margin-bottom: 0; }

.panel .razmak { height: 10px; }

.potpis {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ---------- Linkovi ---------- */
a {
  color: var(--akcenat);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 210, 122, 0.45);
  transition: color 180ms, border-color 180ms;
}

a:hover,
a:focus-visible { color: #ffe4ab; border-bottom-color: #ffe4ab; }

.veza-prijava {
  display: inline-block;
  border: 0;
  padding: 2px 0;
  font-weight: 600;
}

/* ---------- Dugmad ---------- */
.dugme {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 200ms, border-color 200ms, transform 120ms;
}

.dugme:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.6); }
.dugme:active { transform: translateY(1px); }

.dugme--glavno {
  background: var(--akcenat);
  border-color: var(--akcenat);
  color: #24282c;
}

.dugme--glavno:hover { background: #ffdd9a; border-color: #ffdd9a; }

.dugme--sporedno { background: transparent; }

.akcije {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
}

/* ---------- Forma ---------- */
.forma-uvod { margin-bottom: 28px; }

.forma-uvod h1 { margin-bottom: 14px; }

.forma-uvod .podnaslov {
  font-size: 15px;
  opacity: 0.85;
}

fieldset {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0 0 8px;
  padding: 22px 0 4px;
}

legend {
  padding: 0 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.mreza {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.polje { display: flex; flex-direction: column; gap: 7px; }
.polje--puno { grid-column: 1 / -1; }

label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.obavezno { color: var(--akcenat); }

.napomena-polja {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.75;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 5px;
  transition: background-color 180ms, border-color 180ms, box-shadow 180ms;
}

textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

input::placeholder,
textarea::placeholder { color: rgba(255, 255, 255, 0.45); }

input:hover, select:hover, textarea:hover { background: rgba(255, 255, 255, 0.14); }

input:focus, select:focus, textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--akcenat);
  box-shadow: 0 0 0 3px rgba(255, 210, 122, 0.22);
}

select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23ffffff' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

select option { background: #2b3035; color: #fff; }

input[type="file"] { padding: 9px; font-size: 14.5px; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 14px; font: inherit; font-size: 14px;
  color: #fff; background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; cursor: pointer;
}

.polje-greska input,
.polje-greska select,
.polje-greska textarea { border-color: var(--greska); }

.tekst-greska { font-size: 13.5px; color: var(--greska); font-weight: 400; }

.saglasnost {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
}

.saglasnost input[type="checkbox"] {
  width: 19px; height: 19px; margin: 2px 0 0; flex: 0 0 auto;
  accent-color: var(--akcenat); cursor: pointer;
}

.med { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Poruke ---------- */
.poruka {
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 3px solid;
  margin-bottom: 24px;
  font-size: 15.5px;
  background: rgba(0, 0, 0, 0.3);
}

.poruka ul { margin: 8px 0 0; padding-left: 20px; }
.poruka--greska { border-color: var(--greska); }
.poruka--uspeh { border-color: var(--uspeh); }
.poruka--info { border-color: var(--akcenat); }
.poruka h2 { margin: 0 0 8px; font-size: 18px; }

.rezime {
  margin: 22px 0 0;
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.rezime th, .rezime td {
  text-align: left; padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  vertical-align: top;
}
.rezime th { width: 220px; font-weight: 600; opacity: 0.82; }

/* ---------- Podnožje ---------- */
.podnozje {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 22px 20px 30px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.podnozje a { color: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(255, 255, 255, 0.3); }

/* ---------- Responsivno ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .omotac { padding: 26px 14px 24px; }
  .panel { padding: 26px 22px; border-radius: 8px; }
  .mreza { grid-template-columns: 1fr; }
  .rezime th { width: auto; display: block; padding-bottom: 0; border: 0; }
  .rezime td { display: block; padding-top: 2px; }
  /* na dodir uređajima panel je odmah čitljiv */
  .panel { background: rgba(30, 34, 38, 0.78); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

:focus-visible { outline: 2px solid var(--akcenat); outline-offset: 3px; }
