/* ========================================================
   MODERAN HEADER & OFF-CANVAS HAMBURGER MENI
   ======================================================== */

:root {
  --header-bg: #aa9400;
  --header-dark: #8e7b00;
  --brand-mk: #9d0303;
  --drawer-width: 320px;
  --text-primary: #2c2c2c;
  --text-muted: #666666;
  --hover-bg: #f5f0e1;
  --active-color: #9d0303;
}

/* Zaglavlje */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--header-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 0 8px;
  min-height: 48px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger dugme */
.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
  background-color: rgba(0, 0, 0, 0.12);
  outline: none;
}

.hamburger-btn .bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* MK bedž */
.mk-badge {
  display: inline-block;
  color: #ffffff !important;
  padding: 6px 10px;
  background-color: var(--brand-mk);
  font-weight: bold;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none !important;
  line-height: 1;
}

.mk-badge:hover {
  background-color: #7b0202;
}

/* Slika i Naslov */
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #ffffff !important;
}

.brand-icon {
  height: 36px;
  width: auto;
  border-radius: 3px;
  vertical-align: middle;
}

.brand-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
}

@media (max-width: 500px) {
  .brand-title {
    font-size: 17px;
  }
}

/* Danas bedž u zaglavlju */
.header-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff !important;
  font-size: 13px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-today-btn:hover {
  background: rgba(0, 0, 0, 0.32);
}

@media (max-width: 480px) {
  .header-today-btn span.day-name {
    display: none;
  }
}

/* ========================================================
   OFF-CANVAS DRAWER (BOČNI MENI)
   ======================================================== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-width);
  max-width: 86vw;
  background: #ffffff;
  color: var(--text-primary);
  z-index: 99999;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* Kada je meni otvoren */
body.drawer-open {
  overflow: hidden;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .drawer-panel {
  transform: translateX(0);
}

/* Zaglavlje bočnog menija */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--header-bg);
  color: #ffffff;
}

.drawer-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: bold;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.drawer-close-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Telo menija */
.drawer-content {
  padding: 10px 0 30px;
  flex: 1;
}

.drawer-section-title {
  padding: 12px 18px 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.15s, color 0.15s;
}

.drawer-nav-list li a:hover {
  background-color: var(--hover-bg);
  color: var(--active-color);
  text-decoration: none;
}

.drawer-nav-list li a .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  opacity: 0.85;
}

.drawer-nav-list li a.highlight-link {
  font-weight: bold;
  color: var(--active-color);
}

.drawer-divider {
  height: 1px;
  background: #eaeaea;
  margin: 10px 16px;
}

/* Dugme za brzu pretragu / dark temu u fioci */
.drawer-footer {
  padding: 12px 18px;
  background: #f9f9f9;
  border-top: 1px solid #eaeaea;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Zadušnice bedž u kalendaru - tamno sivi pravougaonik sa belim bold slovima */
.zadusnice-badge {
  background-color: #4a4a4a;
  color: #ffffff !important;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
  font-size: 0.95em;
  letter-spacing: 0.3px;
}

a .zadusnice-badge,
.zadusnice-badge a {
  color: #ffffff !important;
  text-decoration: none !important;
}
