/* =====================================
   MAGAZINE HEADER (2 rows) – CANONICAL
===================================== */

.sr-site-header--mag{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid #eee;
  box-shadow:0 2px 12px rgba(0,0,0,0.04);
 

}

/* ROWS */
.sr-header-top{ border-bottom:1px solid #f0f0f0; }
.sr-header-navrow{ background:#fff; }

/* Container */
.sr-header-inner{
  max-width:1180px;
  margin:0 auto;
  padding:20px 20px;   /* ↑ malo viši */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

/* NAV row tighter */
.sr-header-navrow .sr-header-inner{
  padding-top:14px;
  padding-bottom:14px;
}
.sr-header-inner--nav{
  align-items:center;
}
.sr-header-search--nav{
  margin-left:24px;
}

/* Brand */
.sr-brand{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:200px;
}

.sr-brand-name{
  font-size:30px;      /* ↑ veće */
  font-weight:900;
  letter-spacing:-0.03em;
  line-height:1.05;
}

/* ✅ KEEP ONLY ONE tagline rule (removed duplicate) */
.sr-brand-tagline{
  font-size:13px;      /* ↑ malo veće */
  opacity:0.65;
}

/* Search */
.sr-header-search{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}

.sr-search-input{
  width:280px;
  height:42px;
  padding:0 14px;
  border:1px solid #eee;
  border-radius:999px;
  font-size:14px;
  outline:none;
}


.sr-search-input:focus{ border-color:#111; }

.sr-search-btn{
  height:40px;
  padding:0 14px;
  border:1px solid #eee;
  border-radius:999px;
  background:#fff;
  font-weight:800;
  cursor:pointer;
}

.sr-search-btn:hover{
  border-color:var(--sr-accent);
  color:var(--sr-accent);
}

/* Menu */
.sr-menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0;
  margin:0;
  flex-wrap:wrap;
}

.sr-menu > li{ position:relative; }

.sr-menu > li > a{
  display:inline-block;
  padding:10px 0;
  font-weight:800;
  font-size:16px;          /* +20% test */
  text-transform:uppercase;
  letter-spacing:0.06em;
  opacity:0.9;
}


.sr-menu > li > a:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

/* Active menu */
.sr-menu .current-menu-item > a,
.sr-menu .current-menu-ancestor > a,
.sr-menu .current_page_item > a{
  color:var(--sr-accent);
  text-decoration:underline;
  text-underline-offset:4px;
}

/* Dropdown */
.sr-menu .sub-menu{
  list-style:none;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid #eee;
  padding:10px;
  margin:0;
  display:none;
}

.sr-menu li:hover > .sub-menu{ display:block; }

.sr-menu .sub-menu a{
  display:block;
  padding:8px 10px;
  font-size:13px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
  opacity:0.95;
}

.sr-menu .sub-menu a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* TRENDING BAR */
.sr-header-trending{
  background:var(--sr-bg-soft);
  border-bottom:1px solid #eee;
}

.sr-header-trending .sr-header-inner{
  padding-top:10px;
  padding-bottom:10px;
}

.sr-trending{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
}

.sr-trending-label{
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.06em;
  opacity:0.7;
  white-space:nowrap;
}

.sr-trending-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.sr-trending-tag{
  font-size:13px;
  font-weight:700;
  padding:6px 10px;
  border:1px solid var(--sr-border);
  border-radius:999px;
  background:#fff;
  transition:all .2s ease;
}

.sr-trending-tag:hover{
  border-color:var(--sr-accent);
  color:var(--sr-accent);
}

/* =====================================
   RESPONSIVE GUARDS (mob landscape + small widths)
===================================== */

/* Smaller devices: allow brand to shrink and menu to stay readable */
@media (max-width: 720px){
  .sr-brand{ min-width: 0; }
  .sr-menu{ gap: 14px; }
  .sr-menu > li > a{
    font-size: 14px;
    letter-spacing: 0.04em;
  }
}

/* Ultra-narrow landscape (e.g. 800×360): keep nav usable without breaking layout */
@media (max-width: 860px) and (max-height: 420px){
  .sr-header-inner{ padding: 14px 14px; }
  .sr-menu{ flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sr-menu::-webkit-scrollbar{ display:none; }
}

/* Mobile: sakrij search + trending da header ostane čist */
@media (max-width:900px){
  .sr-header-search{ display:none; }
  .sr-header-trending{ display:none; }
  .sr-nav{ display:none; }
}
/* =====================================
   HEADER VARIANT – DARK FULL BLEED
===================================== */
.sr-site-header--dark{
  background:#0b0b0c;
  border-bottom:1px solid rgba(255,255,255,0.10);
  box-shadow:0 2px 12px rgba(0,0,0,0.25);
}

.sr-site-header--dark .sr-header-top{
  border-bottom: none;
}

.sr-site-header--dark .sr-header-navrow{
  background:#0b0b0c;
}

.sr-site-header--dark .sr-brand-name,
.sr-site-header--dark .sr-brand-tagline,
.sr-site-header--dark .sr-menu a{
  color:rgba(255,255,255,0.92);
}

.sr-site-header--dark .sr-brand-tagline{
  opacity:.7;
}

.sr-site-header--dark .sr-search-input{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  color:rgba(255,255,255,0.92);
}

.sr-site-header--dark .sr-search-input::placeholder{
  color:rgba(255,255,255,0.55);
}

.sr-site-header--dark .sr-menu > li > a:hover{
  color:var(--sr-accent);
  text-decoration:none;
}

.sr-site-header--dark .sr-menu .current-menu-item > a,
.sr-site-header--dark .sr-menu .current-menu-ancestor > a{
  color:var(--sr-accent);
}
/* Brand hover – accent orange */
.sr-site-header--dark .sr-brand-link:hover .sr-brand-name{
  color: var(--sr-accent);
}
.sr-brand-name{
  transition: color .2s ease;
}
/* ========== Responsive guards ========== */

/* Malo suzi meni i pusti brand da se skupi */
@media (max-width: 720px){
  .sr-brand{ min-width: 0; }
  .sr-menu{ gap: 14px; }
  .sr-menu > li > a{
    font-size: 14px;
    letter-spacing: 0.04em;
  }
}

/* Ultra-narrow landscape (npr 800×360): meni scrolla umjesto da lomi header */
@media (max-width: 860px) and (max-height: 420px){
  .sr-header-inner{ padding: 14px 14px; }
  .sr-menu{ flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sr-menu::-webkit-scrollbar{ display:none; }
}
/* =====================================
   HAMBURGER + MOBILE NAV DRAWER
===================================== */

/* Hamburger button — skriven na desktopu */
.sr-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.sr-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
  transform-origin: center;
}

/* Animacija u X kad je otvoren */
.sr-hamburger.is-active .sr-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sr-hamburger.is-active .sr-hamburger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.sr-hamburger.is-active .sr-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.sr-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #0b0b0c;
  border-left: 1px solid rgba(255,255,255,0.10);
  z-index: 200;
  overflow-y: auto;
  padding: 80px 24px 40px;

  transform: translateX(100%);
  transition: transform 0.28s ease;
  visibility: hidden;
}

.sr-mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Overlay */
.sr-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(2px);
}

.sr-mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile meni linkovi */
.sr-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.sr-mobile-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sr-mobile-menu > li > a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sr-mobile-menu > li > a:hover {
  color: var(--sr-accent);
}

/* Submenu */
.sr-mobile-menu .sub-menu {
  list-style: none;
  padding: 0 0 8px 16px;
  margin: 0;
}

.sr-mobile-menu .sub-menu a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
}

.sr-mobile-menu .sub-menu a:hover {
  color: var(--sr-accent);
}

/* Active item */
.sr-mobile-menu .current-menu-item > a,
.sr-mobile-menu .current-menu-ancestor > a {
  color: var(--sr-accent);
}

/* Mobile search */
.sr-mobile-search {
  margin-bottom: 28px;
}

.sr-mobile-search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  outline: none;
}

.sr-mobile-search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.sr-mobile-search-input:focus {
  border-color: var(--sr-accent);
}

/* Prikaži hamburger na mobitelu */
@media (max-width: 900px) {
  .sr-hamburger {
    display: flex;
  }
}


/* Spriječi scroll na body kad je drawer otvoren */
body.sr-nav-open {
  overflow: hidden;
}
/* Sakrij mobile drawer na desktopu */
@media (min-width: 901px) {
  .sr-mobile-nav,
  .sr-mobile-overlay {
    display: none !important;
  }
}