/* UPPS - Evidence-based health information (Serbian, Latin) */
/* System monospace fonts only, white bg, black text, Royal Blue + green accents */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #4b4b4b;
  --border: #e5e5e5;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
  --blue: #4169E1;        /* Royal Blue */
  --blue-dark: #2748b5;
  --green: #16A34A;
  --green-dark: #12803a;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  background-image:
    radial-gradient(at 18% 16%, rgba(65, 105, 225, 0.20) 0px, transparent 52%),
    radial-gradient(at 82% 24%, rgba(22, 163, 74, 0.17) 0px, transparent 50%),
    radial-gradient(at 50% 88%, rgba(65, 105, 225, 0.14) 0px, transparent 55%),
    radial-gradient(at 8% 78%, rgba(22, 163, 74, 0.12) 0px, transparent 48%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Glass morphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--fg);
  letter-spacing: 1px;
}
.brand span { color: var(--blue); }
.brand-logo {
  display: block;
  height: 75px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-desktop a {
  color: var(--fg);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-desktop a:hover { color: var(--blue); text-decoration: none; }

.nav-actions .btn {
  font-size: 0.75rem;
  padding: 7px 14px;
}
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-secondary {
  background: var(--green);
  color: #fff;
}
.btn-secondary:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-ghost {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--fg); font-weight: 600; }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 32px auto;
  padding: 40px 24px;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 0 20px;
}
.section-title {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Grid cards */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-block; }
}

.card {
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31,38,135,0.18);
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0 0 12px; font-size: 0.95rem; }
.card a.card-link { font-weight: 600; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(65,105,225,0.12);
  color: var(--blue);
  margin-right: 6px;
}
.badge.green {
  background: rgba(22,163,74,0.12);
  color: var(--green);
}

/* Article/content */
.content {
  max-width: 820px;
  margin: 32px auto;
  padding: 0 20px;
}
.content h1 { font-size: 2rem; margin: 0 0 12px; }
.content h2 { font-size: 1.4rem; margin: 28px 0 10px; color: var(--blue); }
.content h3 { font-size: 1.15rem; margin: 20px 0 8px; color: var(--green); }
.content p { margin: 0 0 14px; }
.content ul, .content ol { margin: 0 0 14px 24px; }
.content li { margin: 4px 0; }
.content blockquote {
  border-left: 4px solid var(--blue);
  padding: 10px 16px;
  background: rgba(65,105,225,0.05);
  margin: 16px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout {
  padding: 16px 20px;
  margin: 20px 0;
}
.callout strong { color: var(--green); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
th { background: rgba(65,105,225,0.08); color: var(--blue); font-weight: 700; }
tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-col h4 { margin: 0 0 10px; font-size: 1rem; color: var(--blue); }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; margin: 4px 0; }
.footer-col a:hover { color: var(--blue); text-decoration: none; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  z-index: 200;
}
.search-overlay.open { display: flex; }
.search-box {
  width: min(600px, 90vw);
  padding: 20px;
}
.search-box input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.9);
}
.search-results { margin-top: 12px; max-height: 50vh; overflow: auto; }
.search-results a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--fg); }
.search-results a:hover { background: rgba(65,105,225,0.08); text-decoration: none; }

/* Misc */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 16px 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

.hero-mini {
  padding: 28px 24px;
  margin: 24px auto;
  max-width: var(--maxw);
  text-align: center;
}
.hero-mini h1 { font-size: 2rem; margin: 0 0 8px; }
.hero-mini p { color: var(--muted); margin: 0; }

.list-clean { list-style: none; padding: 0; }
.list-clean li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-clean li a { font-weight: 600; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
.stat {
  padding: 18px;
  text-align: center;
}
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--blue); }
.stat .label { color: var(--muted); font-size: 0.85rem; }

.timeline li { margin: 8px 0; }
.timeline li strong { color: var(--green); }
