/* =========================================================
   eHAUL - BLACK WEEK TEMA (blackweek)
   Ucitava se samo kad je tema 'blackweek' aktivna (season.php)
   Crna traka sa odbrojavanjem + "Black Week" stavka u meniju.
   Fire Deals sekcija ima svoje stilove na pocetnoj (.eh-deals--bw).
   ========================================================= */

html.theme-blackweek{
  --bw-black:#0b0b0c;
  --bw-fire1:#ff6a3d;
  --bw-fire2:#e0173f;
  --bw-gold:#ffc24a;
}

/* ---------- 1) Crna announcement traka ---------- */
.eh-bw-bar{
  position:relative;
  background:var(--bw-black, #0b0b0c);
  color:#fff;
  font-family:'Nunito Sans', sans-serif;
  overflow:hidden;
}
.eh-bw-bar::after{
  /* tanka vatrena linija koja "tece" ispod trake */
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg, transparent, #ff6a3d, #ffc24a, #e0173f, transparent);
  background-size:200% 100%;
  animation:ehBwFlow 4s linear infinite;
}
.eh-bw-bar-in{
  display:flex; align-items:center; justify-content:center; gap:18px;
  min-height:40px; padding-top:5px; padding-bottom:5px;
}
.eh-bw-bar-text{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; letter-spacing:.3px; line-height:1.3; }
.eh-bw-bar-text b{ color:#ff8a5c; font-weight:900; letter-spacing:.8px; }
.eh-bw-bar .eh-flame{ width:20px; height:20px; flex:0 0 auto; animation:ehBwFlicker 1.4s ease-in-out infinite alternate; transform-origin:50% 90%; }

.eh-bw-t-mob{ display:none; }
.eh-bw-countdown{ display:inline-flex; align-items:center; gap:4px; font-size:12px; }
.eh-bw-countdown[hidden]{ display:none; }
.eh-bw-cd-label{ margin-right:3px; color:rgba(255,255,255,.72); font-weight:700; }
.eh-bw-cd-box{
  display:inline-flex; align-items:baseline; gap:1px;
  padding:3px 6px; border-radius:5px;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.12);
}
.eh-bw-cd-box b{ font-size:13px; font-weight:900; font-variant-numeric:tabular-nums; color:#fff; min-width:15px; text-align:center; }
.eh-bw-cd-box i{ font-style:normal; font-size:10px; font-weight:700; color:rgba(255,255,255,.6); }

.eh-bw-bar-cta{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 13px; border-radius:20px;
  background:linear-gradient(90deg, #ff6a3d, #e0173f);
  color:#fff !important; font-size:12.5px; font-weight:800; line-height:1; text-decoration:none !important;
  box-shadow:0 4px 14px rgba(224,23,63,.35);
  transition:transform .2s ease, box-shadow .2s ease;
}
.eh-bw-bar-cta:hover{ transform:translateY(-1px); box-shadow:0 6px 18px rgba(224,23,63,.5); }

@media (max-width:767px){
  .eh-bw-bar-in{ flex-wrap:wrap; gap:4px 10px; min-height:36px; padding:5px 10px 6px; }
  .eh-bw-bar-text{ font-size:12px; gap:6px; }
  .eh-bw-bar .eh-flame{ width:16px; height:16px; }
  .eh-bw-bar-cta{ display:none; }
  .eh-bw-t-desk{ display:none; }
  .eh-bw-t-mob{ display:inline; }
  .eh-bw-cd-label{ font-size:11px; }
  .eh-bw-cd-box{ padding:2px 5px; }
  .eh-bw-cd-box b{ font-size:12px; }
}

/* ---------- 2) Meni: Black Week stavka (crno + vatreno) ---------- */
#solidMenu .navbar-nav > li.menu-blackweek > a{ display:flex; align-items:center; }
.menu-bw-pill{
  position:relative;
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px 7px 10px; border-radius:30px;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(90deg, #ffc24a, #ff6a3d, #e0173f) border-box;
  border:1.5px solid transparent;
  color:#fff !important; font-weight:900; letter-spacing:.4px; line-height:1;
  box-shadow:0 3px 14px rgba(224,23,63,.30);
  transition:transform .2s ease, box-shadow .2s ease;
}
.menu-bw-pill .eh-flame{ width:17px; height:17px; flex:0 0 auto; animation:ehBwFlicker 1.3s ease-in-out infinite alternate; transform-origin:50% 90%; }
#solidMenu .navbar-nav > li.menu-blackweek > a:hover .menu-bw-pill,
#solidMenu .navbar-nav > li.menu-blackweek.active > a .menu-bw-pill{
  background:
    linear-gradient(90deg, #ff6a3d, #e0173f) padding-box,
    linear-gradient(90deg, #ffc24a, #ff6a3d, #e0173f) border-box;
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(224,23,63,.45);
}
@media (min-width:992px){ .menu-bw-pill{ margin:-7px 0; } }
@media (max-width:991px){
  #solidMenu .navbar-nav > li.menu-blackweek > a{ padding-top:10px; padding-bottom:10px; }
  .menu-bw-pill{ padding:9px 16px 9px 12px; font-size:15px; }
}

/* ---------- 3) Sitni detalji ---------- */
html.theme-blackweek .eh-category-kicker{ color:#e0173f; }

@keyframes ehBwFlicker{ 0%{ transform:scale(1) rotate(-3deg); } 100%{ transform:scale(1.1) rotate(3deg); } }
@keyframes ehBwFlow{ 0%{ background-position:0% 0; } 100%{ background-position:200% 0; } }
@media (prefers-reduced-motion: reduce){
  .eh-bw-bar::after, .eh-bw-bar .eh-flame, .menu-bw-pill .eh-flame{ animation:none; }
}
