/* ============================================================
   HALLOWEEN THEME — SaveTheMoments360
   ============================================================ */

:root {
  --hw-orange:     #ff6a00;
  --hw-orange-dim: rgba(255, 106, 0, 0.12);
}

/* ── Scroll progress bar ───────────────────────────────────── */
.scroll-progress {
  background: linear-gradient(90deg, #ff6a00 0%, #ff1c00 100%) !important;
}

/* ── Nav: login button Halloween accent (before login) ─────── */
.nav__auth-login {
  border-color: var(--hw-orange) !important;
  color: var(--hw-orange) !important;
}
.nav__auth-login:hover {
  background: var(--hw-orange) !important;
  color: #111 !important;
  box-shadow: 0 0 22px rgba(255, 106, 0, 0.45) !important;
}

/* ── Buttons: orange glow on hover ─────────────────────────── */
.btn--yellow:hover {
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.35) !important;
}

/* ── Ticker dots orange ─────────────────────────────────────── */
.ticker__dot {
  color: var(--hw-orange) !important;
}

/* ── Pumpkin avatar when user is logged in ─────────────────── */
.nav__auth-avatar.hw-pumpkin-av {
  background: var(--hw-orange) !important;
}

/* ── Nav: pumpkin prefix next to username ──────────────────── */
.hw-user-pumpkin::before {
  content: '🎃 ';
}

/* ── Spider webs — fixed in top corners ─────────────────────── */
.hw-web {
  position: fixed;
  top: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: 200;
  opacity: 0.22;
}
.hw-web--l { left: 0; }
.hw-web--r { right: 0; transform: scaleX(-1); }

/* ── Dangling spider ────────────────────────────────────────── */
.hw-spider {
  position: fixed;
  top: 148px;
  pointer-events: none;
  z-index: 201;
  font-size: 1rem;
  opacity: 0.5;
  animation: hw-dangle 4s ease-in-out infinite;
  line-height: 1;
}
.hw-spider--l { left: 76px; }
.hw-spider--r { right: 76px; }

@keyframes hw-dangle {
  0%, 100% { transform: translateY(0) rotate(-14deg); }
  50%       { transform: translateY(10px) rotate(14deg); }
}

/* ── Flying bats ─────────────────────────────────────────────── */
.hw-bat {
  position: fixed;
  pointer-events: none;
  z-index: 202;
  color: rgba(210, 190, 230, 0.32);
  opacity: 0;
}
.hw-bat svg {
  display: block;
  fill: currentColor;
  animation: hw-wingflap 0.22s ease-in-out infinite alternate;
}
@keyframes hw-wingflap {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.5); }
}

.hw-bat--1 { top: 9vh;  width: 28px; height: 18px; animation: hw-fly1 19s -3s  linear infinite; }
.hw-bat--2 { top: 21vh; width: 22px; height: 14px; animation: hw-fly2 25s -11s linear infinite; }
.hw-bat--3 { top: 5vh;  width: 34px; height: 22px; animation: hw-fly3 16s -7s  linear infinite; }

@keyframes hw-fly1 {
  0%   { transform: translate(-60px,  0px);  opacity: 0;    }
  4%   {                                     opacity: 0.55; }
  25%  { transform: translate(25vw,  -22px); }
  50%  { transform: translate(50vw,   14px); }
  75%  { transform: translate(75vw,  -12px); }
  96%  {                                     opacity: 0.55; }
  100% { transform: translate(110vw,  0px);  opacity: 0;    }
}
@keyframes hw-fly2 {
  0%   { transform: translate(-60px,  0px);  opacity: 0;    }
  4%   {                                     opacity: 0.45; }
  30%  { transform: translate(30vw,   20px); }
  55%  { transform: translate(55vw,  -16px); }
  80%  { transform: translate(80vw,   10px); }
  96%  {                                     opacity: 0.45; }
  100% { transform: translate(110vw,  0px);  opacity: 0;    }
}
@keyframes hw-fly3 {
  0%   { transform: translate(-60px,  0px);  opacity: 0;    }
  4%   {                                     opacity: 0.5;  }
  20%  { transform: translate(20vw,  -14px); }
  45%  { transform: translate(45vw,   22px); }
  70%  { transform: translate(70vw,  -18px); }
  96%  {                                     opacity: 0.5;  }
  100% { transform: translate(110vw,  0px);  opacity: 0;    }
}

/* ── Moon ────────────────────────────────────────────────────── */
.hw-moon {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 38% 33%, #fff9c4, #fbbf24 55%, #d97706 100%);
  animation: hw-moonglow 5s ease-in-out infinite;
  opacity: 0.88;
}
.hw-moon svg { width: 100%; height: 100%; display: block; border-radius: 50%; }

@keyframes hw-moonglow {
  0%, 100% { box-shadow: 0 0 60px 18px rgba(255, 175, 0, 0.18), 0 0 120px 40px rgba(255, 100, 0, 0.07); }
  50%       { box-shadow: 0 0 90px 28px rgba(255, 175, 0, 0.26), 0 0 160px 60px rgba(255, 100, 0, 0.11); }
}

/* ── Pumpkin decoration at hero bottom ──────────────────────── */
.hw-pumpkin-deco {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  animation: hw-bob 3.5s ease-in-out infinite;
}
.hw-pumpkin-deco svg { display: block; }

@keyframes hw-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}

/* ── Fog gradient at hero bottom ────────────────────────────── */
.hw-fog {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.8) 0%, transparent 100%);
  animation: hw-fog-drift 9s ease-in-out infinite alternate;
}
@keyframes hw-fog-drift {
  from { opacity: 0.8; }
  to   { opacity: 1.0; }
}

/* ── Ghost background decoration (auth wall / empty panel) ──── */
.hw-ghost-bg {
  position: absolute;
  right: -8px;
  bottom: -8px;
  pointer-events: none;
  opacity: 0.07;
  animation: hw-ghost-float 4.5s ease-in-out infinite;
  z-index: 0;
}
.hw-ghost-bg svg { display: block; }

@keyframes hw-ghost-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%       { transform: translateY(-14px) rotate(8deg); }
}

/* ── Ghost emoji prefix on auth-wall heading ─────────────────── */
.hw-ghost-prefix::before { content: '👻 '; }

/* ── Modal Halloween pumpkin icon ────────────────────────────── */
.hw-modal-pumpkin {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
  animation: hw-modal-pulse 2.5s ease-in-out infinite;
}
@keyframes hw-modal-pulse {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50%       { transform: scale(1.1) rotate(5deg); }
}

/* ── CTA section subtle bat deco ─────────────────────────────── */
.hw-cta-bat {
  position: absolute;
  right: 80px;
  top: 20px;
  font-size: 3.5rem;
  opacity: 0.04;
  pointer-events: none;
  animation: hw-dangle 6s 1s ease-in-out infinite;
}

/* ── Halloween header band inside nav ────────────────────────── */
.hw-nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #111;
  background: var(--hw-orange);
  padding: 3px 9px 3px 8px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
  animation: hw-nav-tag-pulse 2.8s ease-in-out infinite;
}
@keyframes hw-nav-tag-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(0.96); }
}

/* ── Booking section Halloween border accent ─────────────────── */
.booking-section {
  position: relative;
}
.booking-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--hw-orange) 40%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
}

/* ── Mobile responsiveness ──────────────────────────────────── */
@media (max-width: 600px) {
  /* Sieć pajęcza — mniejsza, nie zasłania treści */
  .hw-web {
    width: 100px;
    height: 100px;
    opacity: 0.16;
  }

  /* Pajączki — bliżej rogów */
  .hw-spider--l { left: 38px; }
  .hw-spider--r { right: 38px; }
  .hw-spider { top: 90px; }

  /* Nav tag — ukryj tekst, zostaw tylko emoji */
  .hw-nav-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
    margin-left: 6px;
    letter-spacing: 0.8px;
  }
  .hw-nav-tag::after { content: ''; }

  /* Księżyc — mniejszy na galerii/rezerwacji */
  .hw-moon {
    width: 60px !important;
    height: 60px !important;
    top: 50px !important;
    right: 4% !important;
  }

  /* Dynie — mniejsze na małym ekranie */
  .hw-pumpkin-deco svg {
    width: 48px !important;
    height: 48px !important;
  }

  /* CTA bat — responsywna pozycja */
  .hw-cta-bat {
    right: 16px;
    font-size: 2.2rem;
  }

  /* Lata netoperze — mniej, żeby nie mielić CPU */
  .hw-bat--3 { display: none; }
}

@media (max-width: 400px) {
  /* Najwęższe ekrany — ukryj sieć pajęczą zupełnie */
  .hw-web, .hw-spider { display: none; }

  /* Tylko 1 nieoperz */
  .hw-bat--2, .hw-bat--3 { display: none; }
}
