/* Halloween accents — applied only when html[data-theme="halloween"] */

[data-theme="halloween"] {
  --pumpkin: #ff8a25;
  --halloween-purple: #a76bfa;
}

[data-theme="halloween"] .site-header {
  border-bottom-color: rgba(255, 138, 37, 0.28);
}

[data-theme="halloween"] .site-nav a:hover,
[data-theme="halloween"] .site-nav a:focus-visible,
[data-theme="halloween"] .site-nav a[aria-current="page"] {
  border-bottom-color: var(--pumpkin);
}

[data-theme="halloween"] .hero {
  position: relative;
  overflow: visible;
  --hero-glow: rgba(26, 140, 255, 0.28);
  background:
    radial-gradient(ellipse 42% 52% at 12% 18%, rgba(255, 138, 37, 0.22), transparent 58%),
    radial-gradient(ellipse 28% 34% at 6% 78%, rgba(167, 107, 250, 0.18), transparent 62%),
    radial-gradient(ellipse 52% 68% at 82% 46%, var(--hero-glow), transparent 64%),
    radial-gradient(ellipse 34% 40% at 74% 82%, rgba(0, 196, 245, 0.16), transparent 58%),
    var(--navy);
}

[data-theme="halloween"] .hero > .wrap {
  position: relative;
  z-index: 1;
}

[data-theme="halloween"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 138, 37, 0.55) 0 0.28rem, transparent 0.7rem),
    radial-gradient(circle at 8% 42%, rgba(167, 107, 250, 0.45) 0 0.2rem, transparent 0.55rem),
    radial-gradient(circle at 28% 86%, rgba(255, 138, 37, 0.4) 0 0.22rem, transparent 0.62rem);
  opacity: 0.9;
}

[data-theme="halloween"] .hero-visual,
[data-theme="halloween"] .hero-daisy {
  overflow: visible;
}

[data-theme="halloween"] .hero-daisy-photo {
  object-fit: contain;
  object-position: center top;
}

[data-theme="halloween"] .hero-visual::before {
  background: radial-gradient(
    ellipse at 58% 52%,
    rgba(26, 140, 255, 0.4),
    rgba(255, 138, 37, 0.14) 48%,
    rgba(167, 107, 250, 0.1) 62%,
    transparent 74%
  );
}

[data-theme="halloween"] .button-primary {
  box-shadow: 0 0 1.35rem rgba(255, 138, 37, 0.58);
}

[data-theme="halloween"] .button-primary:hover,
[data-theme="halloween"] .button-primary:focus-visible {
  box-shadow: 0 0 1.65rem rgba(255, 138, 37, 0.7);
}

[data-theme="halloween"] .button-secondary {
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 0.85rem rgba(167, 107, 250, 0.22);
}

[data-theme="halloween"] .section-header h1,
[data-theme="halloween"] .section-header h2 {
  background-image: linear-gradient(90deg, var(--cyan), var(--pumpkin));
}

[data-theme="halloween"] .site-footer {
  border-top-color: rgba(255, 138, 37, 0.22);
}

[data-theme="halloween"] .gp-hero {
  background:
    radial-gradient(ellipse 36% 48% at 10% 16%, rgba(255, 138, 37, 0.12), transparent 58%),
    radial-gradient(ellipse 48% 70% at 88% 18%, rgba(167, 107, 250, 0.2), transparent 58%),
    radial-gradient(ellipse 62% 80% at 78% 58%, var(--gp-glow), transparent 64%),
    radial-gradient(ellipse 40% 42% at 18% 88%, rgba(0, 196, 245, 0.12), transparent 56%),
    var(--navy);
}

[data-theme="halloween"] .gp-hero-visual img {
  box-shadow:
    0 1.5rem 3rem rgba(0, 0, 0, 0.45),
    0 0 2.4rem rgba(26, 140, 255, 0.16),
    0 0 1.6rem rgba(255, 138, 37, 0.16);
}

[data-theme="halloween"] .hero-daisy-accessory:not([hidden]) {
  position: absolute;
  left: 11%;
  top: 0;
  width: 30%;
  max-width: 10.5rem;
  height: auto;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(-8%);
}

@media (max-width: 900px) {
  [data-theme="halloween"] .hero::after {
    background:
      radial-gradient(circle at 12% 8%, rgba(255, 138, 37, 0.18) 0 0.18rem, transparent 0.46rem),
      radial-gradient(circle at 88% 10%, rgba(167, 107, 250, 0.16) 0 0.14rem, transparent 0.38rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="halloween"] .button-primary,
  [data-theme="halloween"] .button-primary:hover,
  [data-theme="halloween"] .button-primary:focus-visible {
    box-shadow: 0 0 0.65rem rgba(255, 138, 37, 0.28);
  }
}
