/* ══════════════════════════════════════
   COOKIE CONSENT — baner i podešavanja
   Markup: includes/partials/cookie_banner.php
   ══════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--dark); color: #fff;
  transform: translateY(100%); transition: transform 0.35s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 16px 48px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto;
}
.cookie-text { flex: 1 1 420px; }
.cookie-text strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.cookie-text p { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin: 0; line-height: 1.6; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

/* "Prihvati" i "Odbij" namerno izgledaju isto — izbor mora biti ravnopravan */
.cookie-choice-btn {
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
  padding: 9px 20px; border-radius: 6px; cursor: pointer;
  background: #fff; color: var(--dark); border: 1.5px solid #fff;
  transition: background 0.2s, color 0.2s;
}
.cookie-choice-btn:hover { background: var(--gold); border-color: var(--gold); }
.cookie-link-btn {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.85); font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; text-decoration: underline;
}
.cookie-link-btn:hover { color: #fff; }

/* Prozor sa podešavanjima — iznad banera, koji ostaje otvoren ispod njega */
#cookie-prefs { z-index: 9500; }
.cookie-prefs-modal { max-width: 520px; max-height: 90vh; overflow-y: auto; }
.cookie-cat-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  background: #f8f9ff; border: 1px solid #d0d5dd; border-radius: 8px;
}
.cookie-cat-row strong { display: block; font-size: 0.92rem; }
.cookie-cat-row small  { font-size: 0.78rem; color: #475569; line-height: 1.5; }
.cookie-cat-row input  { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.cookie-cat-required   { background: #f0fdf4; border-color: #bbf7d0; cursor: default; }
.cookie-cat-required strong { color: #15803d; }
.cookie-cat-always     { font-size: 0.85rem; color: #15803d; font-weight: 600; white-space: nowrap; }
.cookie-prefs-actions  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cookie-prefs-actions .cookie-choice-btn { border-color: var(--dark); }
.cookie-prefs-actions .cookie-choice-btn:hover { border-color: var(--gold); }

/* Link u footeru izgleda kao ostali linkovi */
.footer-link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: inherit; font: inherit; text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-inner   { padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .cookie-choice-btn { flex: 1; }
  .cookie-prefs-actions { grid-template-columns: 1fr; }
}
