/*
Theme Name:   BDSMLust Child
Template:     retrotube
Description:  Child theme za BDSMLust
Version:      1.0
*/

/* ============================================================
   IMPORTUJ PARENT TEMU
   ============================================================ */
@import url('../retrotube/style.css');

/* ============================================================
   NEUTRALIŠI STARI HEADER IZ PARENT TEME
   Ove klase više ne koristimo — sakrivamo ih bez brisanja
   ============================================================ */
.site-branding,
#site-navigation,
#site-navigation #head-mobile,
#site-navigation .button-nav,
.main-navigation {
  display: none !important;
}

/* site-header:before/after clearfix ostaje, ali
   sam <header id="masthead"> više nije u upotrebi —
   koristimo #bl-header umesto njega */
#masthead {
  display: none !important;
}

/* ============================================================
   NOVI HEADER — BDSMLust v3
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bl-bg:           #080808;
  --bl-surface:      #0f0f0f;
  --bl-surface2:     #161616;
  --bl-surface3:     #1e1e1e;
  --bl-accent:       #c0392b;
  --bl-accent-glow:  rgba(192,57,43,0.2);
  --bl-gold:         #c9862a;
  --bl-gold-light:   #e6a84a;
  --bl-text:         #f2f2f2;
  --bl-text-dim:     #aaa;
  --bl-text-muted:   #505050;
  --bl-border:       rgba(255,255,255,0.06);
  --bl-border-hover: rgba(255,255,255,0.12);
  --bl-header-h:     68px;
  --bl-cat-h:        46px;
  --bl-radius:       10px;
}

#bl-header * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Wrapper ── */
#bl-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--bl-border);
  transition: box-shadow 0.3s;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
#bl-header.bl-scrolled {
  box-shadow: 0 4px 48px rgba(0,0,0,0.7);
}
/* Crveno-zlatna linija na vrhu */
#bl-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bl-accent) 0%, var(--bl-gold) 60%, transparent 100%);
  opacity: 0.9;
  z-index: 1;
}

/* ── Top row ── */
.bl-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bl-header-h);
  padding: 0 24px;
  max-width: 1600px;
  margin: 0 auto;
  gap: 16px;
}

/* ── Logo ── */
.bl-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 1.5px;
  text-decoration: none;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.bl-logo img {
  max-height: 44px;
  width: auto;
}
.bl-logo:hover { opacity: 0.85; }
.bl-logo .bl-l1 { color: #fff; }
.bl-logo .bl-l2 {
  color: var(--bl-accent);
  text-shadow: 0 0 20px var(--bl-accent-glow);
}

/* ── Desktop search ── */
.bl-search-center {
  flex: 1;
  max-width: 480px;
  position: relative;
}
/* Neutrališi WP search formu stilove unutar headera */
.bl-search-center form,
.bl-search-center .header-search { margin: 0; background: none; }

.bl-search-center input[type="text"],
.bl-search-center input[type="search"] {
  width: 100%;
  height: 40px;
  background: var(--bl-surface2) !important;
  border: 1px solid var(--bl-border) !important;
  border-radius: 99px !important;
  color: var(--bl-text) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 0 44px 0 18px !important;
  outline: none;
  float: none !important;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.bl-search-center input[type="text"]::placeholder,
.bl-search-center input[type="search"]::placeholder {
  color: var(--bl-text-muted);
}
.bl-search-center input[type="text"]:focus,
.bl-search-center input[type="search"]:focus {
  border-color: rgba(201,134,42,0.4) !important;
  background: var(--bl-surface3) !important;
  box-shadow: 0 0 0 3px rgba(201,134,42,0.08) !important;
}
/* Sakrij submit dugme iz search forme */
.bl-search-center input[type="submit"],
.bl-search-center #searchsubmit {
  display: none !important;
}
.bl-search-center .bl-s-icon {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--bl-text-muted);
  pointer-events: none;
  display: flex;
}
.bl-search-center .bl-s-icon svg { width: 16px; height: 16px; }

/* ── Actions ── */
.bl-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.bl-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: none; border: none;
  cursor: pointer; color: var(--bl-text-dim);
  border-radius: var(--bl-radius);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.bl-icon-btn:hover {
  background: var(--bl-surface2);
  color: var(--bl-text);
}
.bl-icon-btn svg { width: 20px; height: 20px; }
.bl-search-toggle-mobile { display: none; }

/* ── Hamburger ── */
.bl-hamburger {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  gap: 5px;
  width: 42px; height: 42px;
  background: none; border: none;
  cursor: pointer;
  border-radius: var(--bl-radius);
  transition: background 0.15s;
  padding: 0 10px;
}
.bl-hamburger:hover { background: var(--bl-surface2); }
.bl-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--bl-text-dim);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1),
              opacity 0.25s, width 0.3s, background 0.15s;
  transform-origin: center;
}
.bl-hamburger span:nth-child(1) { width: 22px; }
.bl-hamburger span:nth-child(2) { width: 16px; }
.bl-hamburger span:nth-child(3) { width: 22px; }
.bl-hamburger:hover span { background: var(--bl-text); }
.bl-hamburger:hover span:nth-child(2) { width: 22px; }

.bl-hamburger.bl-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 22px;
}
.bl-hamburger.bl-open span:nth-child(2) {
  opacity: 0; width: 0;
}
.bl-hamburger.bl-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 22px;
}

/* ── Mobile search slide ── */
.bl-mobile-search {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1);
  border-top: 1px solid transparent;
  background: var(--bl-surface);
}
.bl-mobile-search.bl-open {
  max-height: 72px;
  border-top-color: var(--bl-border);
}
.bl-mobile-search-inner {
  padding: 12px 16px;
  position: relative;
}
.bl-mobile-search input[type="text"],
.bl-mobile-search input[type="search"] {
  width: 100%; height: 42px;
  background: var(--bl-surface2) !important;
  border: 1px solid var(--bl-border) !important;
  border-radius: 99px !important;
  color: var(--bl-text) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 0 44px 0 18px !important;
  outline: none;
  float: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bl-mobile-search input[type="submit"],
.bl-mobile-search #searchsubmit { display: none !important; }
.bl-mobile-search input::placeholder { color: var(--bl-text-muted); }
.bl-mobile-search input:focus {
  border-color: rgba(201,134,42,0.4) !important;
  box-shadow: 0 0 0 3px rgba(201,134,42,0.08) !important;
}
.bl-mobile-search .bl-msb-icon {
  position: absolute; right: 28px; top: 50%;
  transform: translateY(-50%);
  color: var(--bl-text-muted); display: flex; pointer-events: none;
}
.bl-mobile-search .bl-msb-icon svg { width: 16px; height: 16px; }

/* ── Category bar ── */
.bl-cat-wrap {
  background: var(--bl-surface);
  border-top: 1px solid var(--bl-border);
  position: relative;
}
.bl-cat-inner {
  display: flex; align-items: center;
  max-width: 1600px; margin: 0 auto; padding: 0 8px;
}
.bl-cat-arrow {
  flex-shrink: 0; width: 32px; height: var(--bl-cat-h);
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--bl-text-muted);
  cursor: pointer; transition: color 0.15s; z-index: 2;
}
.bl-cat-arrow:hover { color: var(--bl-gold-light); }
.bl-cat-arrow svg { width: 14px; height: 14px; }

.bl-cat-list {
  display: flex; align-items: center;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; flex: 1;
  height: var(--bl-cat-h); gap: 2px;
}
.bl-cat-list::-webkit-scrollbar { display: none; }

.bl-cat-list a {
  flex-shrink: 0; padding: 0 14px; height: 32px;
  display: flex; align-items: center;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--bl-text-muted);
  cursor: pointer; border-radius: 99px;
  white-space: nowrap; text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.bl-cat-list a:hover,
.bl-cat-list a:visited,
.bl-cat-list a:active {
  color: var(--bl-text-dim);
  background: var(--bl-surface2);
  text-decoration: none;
}
.bl-cat-list a.bl-active {
  color: var(--bl-gold-light);
  background: rgba(201,134,42,0.1);
}

.bl-cat-fade-l, .bl-cat-fade-r {
  position: absolute; top: 0; bottom: 0; width: 48px;
  pointer-events: none; z-index: 1;
}
.bl-cat-fade-l {
  left: 40px;
  background: linear-gradient(to right, var(--bl-surface), transparent);
}
.bl-cat-fade-r {
  right: 40px;
  background: linear-gradient(to left, var(--bl-surface), transparent);
}

/* ── Nav overlay ── */
.bl-nav-overlay {
  position: fixed; inset: 0;
  z-index: 99999;
  pointer-events: none;
}
.bl-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.35s, backdrop-filter 0.35s;
}
.bl-nav-overlay.bl-open { pointer-events: all; }
.bl-nav-overlay.bl-open .bl-nav-backdrop {
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bl-nav-drawer {
  position: absolute; top: 0; right: 0;
  width: min(360px, 90vw); height: 100%;
  background: var(--bl-surface);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--bl-border);
  overflow: hidden;
}
.bl-nav-overlay.bl-open .bl-nav-drawer {
  transform: translateX(0);
}
.bl-nav-drawer::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(192,57,43,0.1) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

.bl-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--bl-header-h);
  border-bottom: 1px solid var(--bl-border);
  flex-shrink: 0; position: relative; z-index: 1;
}
.bl-nav-head .bl-logo { font-size: 1.4rem; }

.bl-nav-close {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bl-surface2);
  border: 1px solid var(--bl-border);
  color: var(--bl-text-dim); cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bl-nav-close:hover {
  background: var(--bl-surface3);
  color: var(--bl-text);
  border-color: var(--bl-border-hover);
}
.bl-nav-close svg { width: 16px; height: 16px; }

.bl-nav-body {
  flex: 1; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bl-surface3) transparent;
  position: relative; z-index: 1;
  padding-bottom: 8px;
}
.bl-nav-body::-webkit-scrollbar { width: 4px; }
.bl-nav-body::-webkit-scrollbar-thumb {
  background: var(--bl-surface3); border-radius: 2px;
}

.bl-nav-section {
  padding: 18px 20px 6px;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bl-text-muted);
}
.bl-nav-divider {
  height: 1px;
  background: var(--bl-border);
  margin: 6px 20px;
}

.bl-nav-links { list-style: none; padding: 0 10px; }
.bl-nav-links li a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  text-decoration: none;
  color: var(--bl-text-dim);
  font-size: 0.875rem; font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.bl-nav-links li a:hover,
.bl-nav-links li a:visited { text-decoration: none; }
.bl-nav-links li a:hover {
  color: var(--bl-text);
  background: var(--bl-surface2);
}
.bl-nav-links li a.bl-active {
  color: var(--bl-gold-light);
  background: rgba(201,134,42,0.08);
}

.bl-nav-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bl-surface2); border-radius: 7px;
  transition: background 0.15s;
}
.bl-nav-links li a:hover .bl-nav-icon { background: var(--bl-surface3); }
.bl-nav-links li a.bl-active .bl-nav-icon { background: rgba(201,134,42,0.12); }
.bl-nav-icon svg { width: 14px; height: 14px; }

.bl-nav-badge {
  font-size: 0.6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  letter-spacing: 0.06em; margin-left: auto;
}
.bl-nav-badge.red   { background: var(--bl-accent); color: #fff; }
.bl-nav-badge.gold  { background: rgba(201,134,42,0.2); color: var(--bl-gold-light); }
.bl-nav-badge.green { background: rgba(46,160,67,0.2); color: #3fb950; }

.bl-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e74c3c; box-shadow: 0 0 6px #e74c3c;
  animation: bl-pulse 1.6s ease-in-out infinite;
  margin-left: auto; flex-shrink: 0;
}
@keyframes bl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.bl-nav-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--bl-border);
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; position: relative; z-index: 1;
}
.bl-nav-footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 1px;
}
.bl-nav-footer-logo .bl-l1 { color: var(--bl-text-muted); }
.bl-nav-footer-logo .bl-l2 { color: var(--bl-accent); }
.bl-nav-footer-text {
  font-size: 0.68rem; color: var(--bl-text-muted); line-height: 1.5;
}
.bl-nav-footer-rta {
  margin-left: auto; font-size: 0.6rem; font-weight: 700;
  color: var(--bl-text-muted); border: 1px solid var(--bl-border);
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.08em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bl-search-center    { display: none; }
  .bl-search-toggle-mobile { display: flex; }
  .bl-header-top       { padding: 0 16px; }
}
