/* =========================================================
   BAPE — temă de toamnă / Halloween (octombrie)
   Se pune PESTE style.css. Mov-ul (#9584FF) rămâne culoarea
   principală; portocaliul de dovleac e doar accent.
   Ca să o scoți: șterge cele 2 rânduri halloween din index.html.
   ========================================================= */
:root {
  --pumpkin: #ff8a3d;
  --pumpkin-2: #ffb347;
  --ember: #ff5f1f;
  --night: #0a0614;
}

/* ---------- fundal: noapte de toamnă ---------- */
body {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 138, 61, .16), transparent 62%),
    radial-gradient(1000px 640px at 6% -10%, rgba(var(--a), .24), transparent 62%),
    radial-gradient(900px 520px at 50% 115%, rgba(255, 95, 31, .14), transparent 70%),
    var(--night);
  background-attachment: fixed;
}
#leaves { display: none !important; } /* frunzele mov sunt înlocuite de cele de toamnă */
#hwSky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* lună plină */
.hw-moon {
  position: fixed; top: 54px; right: 6vw; z-index: 0; pointer-events: none;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff4dc 0%, #ffe2a8 45%, #ffbf66 78%, #f59e3b 100%);
  box-shadow: 0 0 60px 18px rgba(255, 179, 71, .35), 0 0 160px 60px rgba(255, 138, 61, .15);
  opacity: .9; animation: hwMoon 8s ease-in-out infinite;
}
.hw-moon::before, .hw-moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(214, 140, 60, .35); }
.hw-moon::before { width: 22px; height: 22px; left: 30px; top: 58px; }
.hw-moon::after { width: 14px; height: 14px; left: 70px; top: 32px; }
@keyframes hwMoon { 50% { box-shadow: 0 0 70px 22px rgba(255, 179, 71, .42), 0 0 180px 70px rgba(255, 138, 61, .18); } }

/* ceață + cimitir pixelat jos */
.hw-ground { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; height: 190px; opacity: .6; }
.hw-ground svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; }
.hw-ground::before {
  content: ""; position: absolute; inset: auto -10% 0 -10%; height: 140px;
  background: radial-gradient(60% 100% at 30% 100%, rgba(185, 173, 255, .16), transparent 70%), radial-gradient(50% 90% at 75% 100%, rgba(255, 179, 71, .1), transparent 70%);
  filter: blur(8px); animation: hwFog 18s ease-in-out infinite alternate;
}
@keyframes hwFog { to { transform: translateX(6%); } }

/* ---------- meniul din stânga ---------- */
.sidebar { background: linear-gradient(180deg, #1c1230 0%, #130c1f 55%, #0d0816 100%) !important; }
.hw-web { position: absolute; top: 0; right: 0; width: 110px; height: 110px; pointer-events: none; opacity: .32; z-index: 2; }
.hw-web svg { width: 100%; height: 100%; }
.hw-spider { position: absolute; top: 0; right: 34px; z-index: 3; pointer-events: none; animation: hwSpider 6s ease-in-out infinite; transform-origin: top center; }
.hw-spider::before { content: ""; display: block; width: 1px; height: 46px; margin: 0 auto; background: rgba(255,255,255,.35); }
.hw-spider span { display: block; font-size: 18px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
@keyframes hwSpider { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(18px) rotate(4deg); } 70% { transform: translateY(8px) rotate(-3deg); } }
.side-brand { position: relative; }
.side-brand::after {
  content: "🎃"; position: absolute; right: calc(50% - 74px); bottom: 2px; font-size: 30px;
  filter: drop-shadow(0 4px 10px rgba(255, 138, 61, .7)); animation: hwBob 3.2s ease-in-out infinite;
}
@keyframes hwBob { 50% { transform: translateY(-5px) rotate(-6deg); } }
.side-nav a.is-active { box-shadow: 0 8px 30px -12px rgba(var(--a), .8), inset 0 -2px 0 rgba(255, 138, 61, .55); }
.nav-hot { color: #ffc98a !important; }
.nav-tag { background: linear-gradient(135deg, var(--pumpkin-2), var(--pumpkin)) !important; color: #2a1200 !important; }

/* ---------- bannerul de sezon ---------- */
.hw-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 16px 52px 16px 20px; border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 138, 61, .22), rgba(var(--a), .16) 55%, rgba(var(--a), .06)),
    rgba(20, 12, 32, .8);
  border: 1px solid rgba(255, 138, 61, .45);
  box-shadow: 0 20px 50px -30px rgba(255, 138, 61, .8);
}
.hw-banner__ic { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 6px 14px rgba(255, 138, 61, .7)); animation: hwBob 3s ease-in-out infinite; }
.hw-banner__t { flex: 1; min-width: 200px; }
.hw-banner__t b { display: block; font: 800 1.08rem var(--num); background: linear-gradient(90deg, #fff, var(--pumpkin-2) 55%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-banner__t span { display: block; color: #e6dcf5; font-size: .92rem; margin-top: 2px; }
.hw-count { display: flex; gap: 8px; }
.hw-count div { min-width: 58px; padding: 8px 10px; border-radius: 12px; text-align: center; background: rgba(10, 6, 20, .6); border: 1px solid rgba(255, 179, 71, .35); }
.hw-count b { display: block; font: 800 1.25rem var(--num); color: var(--pumpkin-2); line-height: 1.1; }
.hw-count small { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hw-banner__x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.hw-banner__x:hover { color: #fff; border-color: var(--pumpkin); }

/* ---------- titluri, carduri, butoane ---------- */
.page-head h1 { background: linear-gradient(100deg, #fff 25%, var(--accent-2) 60%, var(--pumpkin-2)) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.card:hover { box-shadow: 0 22px 50px -34px rgba(255, 138, 61, .55), 0 20px 50px -35px rgba(var(--a), .8); }
.btn--primary:hover { box-shadow: 0 14px 40px -6px rgba(var(--a), .85), 0 0 0 1px rgba(255, 138, 61, .35), inset 0 1px 0 rgba(255,255,255,.35); }
.stat strong { text-shadow: 0 0 22px rgba(255, 138, 61, .25); }
.hdr { border-bottom-color: rgba(255, 138, 61, .22) !important; }

/* „Făcut cu 🎃 de petrq_” */
.heart { font-size: 0; }
.heart::before { content: "🎃"; font-size: .95rem; }

@media (max-width: 980px) {
  .hw-moon { width: 74px; height: 74px; top: 84px; right: 18px; }
  .hw-moon::before { width: 14px; height: 14px; left: 18px; top: 36px; }
  .hw-moon::after { width: 9px; height: 9px; left: 44px; top: 20px; }
  .hw-ground { height: 120px; }
  .hw-ground svg { height: 100px; }
}
@media (max-width: 640px) {
  .hw-count div { min-width: 48px; padding: 6px 8px; }
  .hw-count b { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-moon, .hw-spider, .side-brand::after, .hw-banner__ic, .hw-ground::before { animation: none !important; }
}
