/* === GLOBAL === */
:root{
  --primary:#1f4cff;--primary-600:#2640d9;--accent:#f59e0b;
  --text:#0f172a;--muted:#64748b;--bg:#ffffff;--bg-soft:#f8fafc;--border:#e2e8f0;
  --card:#ffffff;--shadow:0 10px 30px rgba(2,6,23,.08);--shadow-hover:0 16px 40px rgba(2,6,23,.12);
  --radius:18px
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --card: #0f172a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-hover: 0 18px 50px rgba(0,0,0,.55);
}

body{
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Inter,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  margin:0;
  padding:0;
}
.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
}

/* === HEADER === */
.header{
  background:var(--bg-soft);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:80;
}
[data-theme="dark"] .header{background:rgba(11,18,32,.6)}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
  position:relative;
  z-index:70;
}

.logo{
  display:flex;
  align-items:center;
  gap:.6rem;
  text-decoration:none;
}
.logo-badge{
  width:34px;
  height:34px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--primary),#152325);
  box-shadow:var(--shadow);
}
.logo-text{
  font-weight:900;
  font-size:1.6rem;
  background:linear-gradient(90deg,#1f4cff,#22d3ee,#10b981);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* === NAV LINKOVI === */
.nav-links{
  display:flex;
  align-items:center;
  gap:14px;
}
.nav-links a{
  color:var(--muted);
  font-size:.95rem;
  padding:.4rem .6rem;
  border-radius:8px;
  text-decoration:none;
  transition:background .2s,color .2s;
}
.nav-links a:hover{
  color:var(--text);
  background:var(--bg-soft);
  border:1px solid var(--border);
}

/* === DUGMAD / AKCIJE === */
.nav-actions{
  display:flex;
  align-items:center;
  gap:.6rem;
}
.btn{
  appearance:none;
  border:1px solid var(--border);
  background:var(--bg-soft);
  color:var(--text);
  padding:.55rem .9rem;
  border-radius:10px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  display:grid;
  place-items:center;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-hover);
}
.btn-primary{
  background:var(--primary);
  border:none;
  color:#fff;
}
.btn-primary:hover{
  background:var(--primary-600);
}
.theme-toggle{
  width:42px;
  height:42px;
  border-radius:10px;
  display:grid;
  place-items:center;
}

/* Ukloni pozadinu u headeru (čisto dugme kao na indexu) */
.header .btn{
  background:none;
  border:1px solid var(--border);
  color:var(--text);
}
.header .btn:hover{
  background:rgba(255,255,255,0.06);
  box-shadow:none;
}

/* === BURGER MENU === */
.burger{
  background:none;
  border:none;
  color:var(--text);
  font-size:1.6rem;
  cursor:pointer;
  display:none;
}
.burger:hover{color:var(--accent)}

.mobile-menu{
  position:fixed;
  top:0;
  right:-100%;
  width:80%;
  height:100vh;
  background:var(--bg-soft);
  transition:right .3s ease;
  padding:60px 24px;
  display:flex;
  flex-direction:column;
  gap:1rem;
  z-index:1001;
}
.mobile-menu.open{right:0}

.mobile-menu a{
  color:var(--text);
  padding:.8rem 1rem;
  border-radius:10px;
  text-decoration:none;
  background:var(--bg-soft);
  border:1px solid var(--border);
}
.mobile-menu a:hover{
  background:var(--bg);
  color:var(--primary);
}
.mobile-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:1000;
}
.mobile-backdrop.show{
  opacity:1;
  pointer-events:auto;
}
.mm-close{
  background:none;
  border:none;
  color:var(--text);
  font-size:1.5rem;
  cursor:pointer;
}

/* === Mobilni meni (verticalni prikaz linkova) === */
.mobile-links {
  display: flex;
  flex-direction: column;  /* ⟵ ključna linija */
  gap: 10px;
  margin-top: 1rem;
}

.mobile-links a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-links a:hover {
  background: var(--bg);
  color: var(--primary);
}


/* === RESPONSIVE === */
@media(max-width:980px){
  .nav-links{display:none}
  .burger{display:block}
}

/* === LAYOUT MODOVI === */
body.layout-wide .container {
  max-width: 100%;
}

body.layout-center .container {
  max-width: 780px;
}


body.layout-center { background: rgba(59,130,246,0.05); }
body.layout-wide { background: rgba(16,185,129,0.05); }

body { background: var(--bg); }
[data-theme="dark"] body {
  background: var(--bg-soft);
}

/* === FOOTER === */
/* ==== FOOTER ==== */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
}

.site-footer .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.site-footer .footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.site-footer .footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer .copy {
  font-size: 0.9rem;
  text-align: center;
}

/* === DARK MODE === */
[data-theme="dark"] .site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .site-footer .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .site-footer .copy {
    font-size: 0.85rem;
  }
}
