/* Express Courier — praćenje pošiljki (javni portal) — shared styles */

:root {
  --navy: #1e3a5f;
  --navy-dark: #152b47;
  --navy-light: #2c4d78;
  --amber: #ffb500;
  --amber-dark: #e0a000;
  --amber-soft: #fff6e0;

  --bg: #f4f6f9;
  --white: #ffffff;
  --text: #1a2433;
  --text-muted: #64748b;
  --border: #e3e8ef;

  --green: #1a8f4b;
  --green-soft: #e7f6ed;
  --yellow: #b8860b;
  --yellow-soft: #fff7e0;
  --red: #c0392b;
  --red-soft: #fdecea;
  --blue: #2c6fbf;
  --blue-soft: #eaf2fb;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --maxw: 860px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / brand ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--amber);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.brand-name .amber { color: var(--amber-dark); }
.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.header-contact {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}
.header-contact strong { color: var(--navy); }

/* ---------- Layout container ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 60px; }

/* ---------- Hero (index) ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 20px 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,181,0,0.16), transparent 70%);
}
.hero-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 30px; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.3px; }
.hero p { font-size: 16px; margin: 0 0 26px; color: #cdd8e6; }

/* ---------- Search box ---------- */
.search-box {
  display: flex;
  gap: 8px;
  background: var(--white);
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.search-box input::placeholder { color: #9aa7b6; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 22px;
  transition: background 0.15s, transform 0.05s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy-dark); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.back-link:hover { color: var(--navy); text-decoration: none; }

/* ---------- Result: tracking header ---------- */
.track-head { margin-bottom: 18px; }
.track-head .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}
.track-head .number {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  font-family: "Consolas", "SF Mono", monospace;
  letter-spacing: 0.5px;
}

/* ---------- Status banner ---------- */
.status-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.status-banner.cat-info    { border-left-color: var(--blue); }
.status-banner.cat-progress{ border-left-color: var(--amber); }
.status-banner.cat-warn    { border-left-color: var(--yellow); }
.status-banner.cat-danger  { border-left-color: var(--red); }
.status-banner.cat-success { border-left-color: var(--green); }

.status-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.cat-info    .status-icon { background: var(--blue-soft); }
.cat-progress .status-icon { background: var(--amber-soft); }
.cat-warn    .status-icon { background: var(--yellow-soft); }
.cat-danger  .status-icon { background: var(--red-soft); }
.cat-success .status-icon { background: var(--green-soft); }

.status-body { flex: 1; }
.status-name { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.cat-info    .status-name { color: var(--navy); }
.cat-progress .status-name { color: var(--amber-dark); }
.cat-warn    .status-name { color: var(--yellow); }
.cat-danger  .status-name { color: var(--red); }
.cat-success .status-name { color: var(--green); }
.status-explain { color: var(--text-muted); margin: 0; font-size: 14.5px; }

/* ---------- Meta grid ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.meta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
}
.meta-card .k {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-card .v { font-size: 15px; font-weight: 600; color: var(--text); }

/* ---------- Action note ---------- */
.action-note {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}
.action-note .an-ico { font-size: 20px; flex-shrink: 0; line-height: 1.3; }
.action-note strong { display: block; margin-bottom: 3px; }
.action-note.warn   { background: var(--yellow-soft); border: 1px solid #f0d68a; color: #6b4e00; }
.action-note.warn strong { color: var(--yellow); }
.action-note.danger { background: var(--red-soft); border: 1px solid #f2c2bc; color: #7a241a; }
.action-note.danger strong { color: var(--red); }

/* ---------- Timeline ---------- */
.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin: 26px 0 14px;
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 22px;
  box-shadow: var(--shadow);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
}
.tl-item::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 34px;
  bottom: -18px;
  width: 2px;
  background: var(--border);
}
.tl-item:last-child::after { display: none; }
.tl-item.current::before {
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber);
  width: 13px;
  height: 13px;
  left: 4px;
}
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl-status { font-weight: 700; font-size: 15px; color: var(--text); }
.tl-item.current .tl-status { color: var(--navy); }
.tl-date { font-size: 13px; color: var(--text-muted); font-family: "Consolas", monospace; white-space: nowrap; }
.tl-loc { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.tl-loc .center { color: var(--navy-light); }
.tl-now {
  display: inline-block;
  background: var(--amber);
  color: var(--navy-dark);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Privacy note ---------- */
.privacy-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: #eef2f7;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.privacy-note .p-ico { flex-shrink: 0; }

/* ---------- Not found ---------- */
.notfound {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.notfound .nf-ico { font-size: 46px; margin-bottom: 12px; }
.notfound h2 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
.notfound p { color: var(--text-muted); margin: 0 auto 22px; max-width: 420px; }

/* ---------- Example list (primjeri.html) ---------- */
.intro-block { margin-bottom: 24px; }
.intro-block h1 { font-size: 24px; color: var(--navy); margin: 0 0 8px; }
.intro-block p { color: var(--text-muted); margin: 0; max-width: 620px; }

.example-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}
.example-card.cat-info    { border-left-color: var(--blue); }
.example-card.cat-progress{ border-left-color: var(--amber); }
.example-card.cat-warn    { border-left-color: var(--yellow); }
.example-card.cat-danger  { border-left-color: var(--red); }
.example-card.cat-success { border-left-color: var(--green); }
.example-icon {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cat-info    .example-icon { background: var(--blue-soft); }
.cat-progress .example-icon { background: var(--amber-soft); }
.cat-warn    .example-icon { background: var(--yellow-soft); }
.cat-danger  .example-icon { background: var(--red-soft); }
.cat-success .example-icon { background: var(--green-soft); }
.example-body { flex: 1; min-width: 0; }
.example-body h3 { margin: 0 0 3px; font-size: 16px; color: var(--navy); }
.example-body p { margin: 0 0 6px; font-size: 13.5px; color: var(--text-muted); }
.example-body code {
  font-family: "Consolas", "SF Mono", monospace; font-size: 13px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 6px; color: var(--navy);
}
.example-card .btn { flex-shrink: 0; }

@media (max-width: 680px) {
  .example-card { flex-direction: column; align-items: flex-start; }
  .example-card .btn { width: 100%; justify-content: center; }
}

/* ---------- SVG ikone ---------- */
.ico-svg { display: block; flex-shrink: 0; }

.status-icon .ico-svg { width: 26px; height: 26px; }
.cat-info    .status-icon { color: var(--blue); }
.cat-progress .status-icon { color: var(--amber-dark); }
.cat-warn    .status-icon { color: var(--yellow); }
.cat-danger  .status-icon { color: var(--red); }
.cat-success .status-icon { color: var(--green); }

.example-icon .ico-svg { width: 22px; height: 22px; }
.cat-info    .example-icon { color: var(--blue); }
.cat-progress .example-icon { color: var(--amber-dark); }
.cat-warn    .example-icon { color: var(--yellow); }
.cat-danger  .example-icon { color: var(--red); }
.cat-success .example-icon { color: var(--green); }

.meta-card .k .ico-svg { width: 15px; height: 15px; }

.action-note .an-ico .ico-svg { width: 20px; height: 20px; }
.action-note.warn   .an-ico { color: var(--yellow); }
.action-note.danger .an-ico { color: var(--red); }
.action-note.cat-success .an-ico { color: var(--green); }

.privacy-note .p-ico .ico-svg { width: 16px; height: 16px; margin-top: 1px; }
.notfound .nf-ico { color: var(--text-muted); line-height: 0; }
.notfound .nf-ico .ico-svg { width: 46px; height: 46px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-top: 40px;
}
.site-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer-inner .demo-tag {
  background: var(--amber-soft);
  color: var(--yellow);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .hero h1 { font-size: 24px; }
  .search-box { flex-direction: column; }
  .search-box .btn { justify-content: center; }
  .meta-grid { grid-template-columns: 1fr; }
  .header-contact { display: none; }
  .track-head .number { font-size: 20px; }
  .status-banner { flex-direction: column; gap: 12px; }
}
