/* ============================================================
   Lunar Division Neon Noir — Theme Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void: #060609;
  --static: #0f0f16;
  --cyan: #00f0c8;
  --magenta: #f72585;
  --amber: #ffb347;
  --ghost: #c8c8d4;
}

html { background: var(--void); }

body {
  position: relative;
  background:
    radial-gradient(1px 1px at 10px 15px, rgba(255,255,255,0.28), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 28px 48px, rgba(255,255,255,0.20), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 50px 80px, rgba(0,240,200,0.14), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 70px 20px, rgba(255,255,255,0.25), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 130px, rgba(255,255,255,0.18), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 120px 45px, rgba(247,37,133,0.15), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 100px, rgba(255,255,255,0.22), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 180px 160px, rgba(255,255,255,0.10), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 210px 30px, rgba(0,240,200,0.16), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 240px 190px, rgba(255,255,255,0.20), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 260px 70px, rgba(255,179,71,0.15), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 140px, rgba(255,255,255,0.18), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 320px 50px, rgba(255,255,255,0.24), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 340px 200px, rgba(247,37,133,0.14), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 370px 90px, rgba(255,255,255,0.12), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 390px 170px, rgba(255,255,255,0.20), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 15px 260px, rgba(255,255,255,0.18), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 55px 330px, rgba(0,240,200,0.13), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 95px 280px, rgba(255,255,255,0.22), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 135px 350px, rgba(255,255,255,0.08), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 175px 240px, rgba(247,37,133,0.16), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 215px 370px, rgba(255,255,255,0.15), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 255px 300px, rgba(255,179,71,0.14), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 295px 250px, rgba(255,255,255,0.20), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 335px 360px, rgba(255,255,255,0.10), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 375px 220px, rgba(255,255,255,0.18), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 40px 400px, rgba(0,240,200,0.12), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 380px 400px, rgba(255,255,255,0.15), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 200px 320px, rgba(255,255,255,0.06), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 400px 280px, rgba(247,37,133,0.12), rgba(0,0,0,0));
  background-size: 400px 400px;
  color: var(--ghost);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Admin bar offset ---- */
.admin-bar .setlist-neon { top: 2.5rem; }

/* ---- SCANLINES ---- */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.15) 2px,
    rgba(0,0,0,.15) 4px
  );
}

/* ---- CRT VIGNETTE ---- */
.crt-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 9997;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.6) 100%);
}

/* ---- LISTEN LINK ---- */
.setlist-neon {
  position: fixed; top: 1rem; right: 1.5rem; z-index: 100;
  font-family: 'Fira Code', monospace;
  font-size: .8rem; color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--cyan);
  padding: .35rem .9rem;
  letter-spacing: .1em;
  text-shadow: 0 0 8px var(--cyan);
  box-shadow: 0 0 12px rgba(0,240,200,.2), inset 0 0 12px rgba(0,240,200,.08);
  transition: background .2s, box-shadow .2s;
}
.setlist-neon:hover {
  background: rgba(0,240,200,.1);
  box-shadow: 0 0 24px rgba(0,240,200,.4), inset 0 0 24px rgba(0,240,200,.15);
}

/* ---- GLITCH HEADER ---- */
.glitch-header {
  padding: 3rem 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid #1a1a28;
  position: relative;
  z-index: 1;
}

#main-content {
  position: relative;
  z-index: 1;
}
.band-name-glitch {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 6rem);
  color: var(--ghost);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow:
    2px 0 var(--magenta),
    -2px 0 var(--cyan);
  animation: glitch-text 3s infinite;
}
@keyframes glitch-text {
  0%, 100% { text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan); }
  25% { text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan); }
  50% { text-shadow: 2px -2px var(--magenta), -2px 2px var(--cyan); }
  75% { text-shadow: -1px 1px var(--magenta), 1px -1px var(--cyan); }
}
.sub-freq {
  font-family: 'Fira Code', monospace;
  font-size: .75rem; letter-spacing: .3em;
  color: var(--amber); margin-top: .3rem;
}

/* ---- LIVE DATES ---- */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; margin: 2rem auto 0; max-width: 800px;
  background: #1a1a28;
  border: 1px solid #1a1a28;
}
.date-tile {
  background: var(--static); padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: background .2s;
}
.date-tile:hover { background: #18181f; }
.date-num {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 3rem; line-height: 1;
  color: var(--magenta);
  text-shadow: 0 0 20px rgba(247,37,133,.5);
  min-width: 3.5rem;
}
.date-label { font-size: .6rem; color: var(--amber); text-transform: uppercase; letter-spacing: .15em; }
.date-venue-name { font-weight: 600; font-size: .9rem; margin: .15rem 0; }
.date-meta { font-size: .7rem; color: #666; }
.date-city-tag {
  margin-left: auto;
  font-family: 'Fira Code', monospace;
  font-size: .6rem; color: var(--cyan);
  border: 1px solid var(--cyan); padding: .2rem .5rem;
  text-shadow: 0 0 6px rgba(0,240,200,.4);
}
.no-shows {
  color: #555; text-align: center;
  grid-column: 1 / -1; padding: 2rem 1rem;
  font-family: 'Fira Code', monospace; font-size: .75rem;
}

/* ---- PHOTO CAROUSEL ---- */
.photo-carousel {
  position: relative;
  margin: 3rem auto;
  max-width: 1000px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16/9;
  position: relative;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
  border: 1px solid #1a1a28;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15);
  color: var(--cyan); font-family: 'Fira Code', monospace;
  font-size: 1.2rem; width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 10;
}
.carousel-btn:hover {
  background: rgba(0,0,0,.8); border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,240,200,.2);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; cursor: pointer;
  transition: all .2s; padding: 0;
}
.carousel-dot.active { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.carousel-dot:hover { background: rgba(255,255,255,.3); }

/* ---- SECTION HEADERS ---- */
.section-hdr {
  font-family: 'Fira Code', monospace;
  font-size: 1.2rem; letter-spacing: .2em;
  color: var(--cyan);
  text-align: center; margin: 3rem 0 1rem;
  text-shadow: 0 0 10px rgba(0,240,200,.3);
}
.section-hdr::before { content: '// '; }
.section-hdr::after { content: ' //'; }

/* ---- FLYER SPOTLIGHT ---- */
.flyer-spotlight {
  margin: 2rem auto;
  max-width: 800px;
  padding: 0 1rem;
}
.flyer-vignette {
  background: radial-gradient(ellipse at center, rgba(0,240,200,.04) 0%, transparent 70%);
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
}
.flyer-card {
  position: relative;
  max-width: 600px;
  width: 100%;
  display: inline-block;
}
.flyer-link { display: block; }
.flyer-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #1a1a28;
  transition: opacity .4s;
}
.flyer-tape {
  position: absolute;
  z-index: 2;
  background: rgba(245,235,200,.25);
  pointer-events: none;
}
.flyer-tape--tl { top: -9px;  left: 14px;  width: 38px; height: 17px; transform: rotate(-2deg); }
.flyer-tape--tr { top: -9px;  right: 14px; width: 35px; height: 17px; transform: rotate(3deg);  }
.flyer-tape--bl { bottom: -9px; left: 18px;  width: 40px; height: 17px; transform: rotate(2deg);  }
.flyer-tape--br { bottom: -9px; right: 16px; width: 33px; height: 17px; transform: rotate(-1deg); }
.flyer-indicator {
  display: flex; justify-content: center; gap: .4rem;
  margin-top: .8rem;
}
.flyer-indicator-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background .2s;
}
.flyer-indicator-dot.active { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }

/* ---- INSTAGRAM ---- */
.ig-section {
  margin: 3rem auto 2rem;
  max-width: 600px;
  padding: 0 1rem;
}
.ig-stories-strip {
  display: flex;
  gap: 1rem;
  padding: .5rem 0 1rem;
  justify-content: center;
  overflow-x: auto;
}
.ig-story-link {
  text-decoration: none;
  text-align: center;
  flex-shrink: 0;
}
.ig-story-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(247,37,133,.3);
  transition: box-shadow .2s;
}
.ig-story-circle:hover { box-shadow: 0 0 16px rgba(247,37,133,.5); }
.ig-story-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.ig-story-label {
  display: block;
  font-size: .55rem; color: #666;
  margin-top: .25rem;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ig-post-feature {
  max-width: 320px;
  margin: .8rem auto 0;
}
.ig-post-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #1a1a28;
  transition: border-color .2s;
}
.ig-post-img:hover { border-color: var(--magenta); }

@media (max-width: 600px) {
  .ig-story-circle { width: 48px; height: 48px; }
  .ig-story-label { max-width: 48px; font-size: .5rem; }
}

/* ---- CONTACT ---- */
.contact-box {
  max-width: 600px; margin: 3rem auto; padding: 0 1rem;
  text-align: center;
}
.contact-inner {
  background: var(--static);
  border: 2px solid var(--cyan);
  padding: 2rem;
  box-shadow: 0 0 24px rgba(0,240,200,.12), inset 0 0 24px rgba(0,240,200,.04);
}
.contact-label {
  font-family: 'Fira Code', monospace;
  font-size: .85rem; letter-spacing: .2em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.contact-email {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem; color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0,240,200,.3);
  transition: all .2s;
  word-break: break-all;
}
.contact-email:hover {
  text-shadow: 0 0 20px rgba(0,240,200,.6);
  color: #fff;
}
.contact-tag {
  font-size: .7rem; color: #555;
  margin-top: .75rem;
  font-style: italic;
}

/* ---- MUSIC ---- */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; padding: 0 1rem; max-width: 1000px; margin: 0 auto 4rem;
}
.music-card {
  background: var(--static); border: 1px solid #1a1a28;
  padding: .6rem;
}
.music-card iframe { border-radius: 4px; }

/* ---- FOOTER ---- */
.footer-neon {
  margin-top: 4rem; padding: 3rem 1rem 2rem;
  border-top: 1px solid #1a1a28;
  text-align: center;
  background: var(--static);
  position: relative;
  z-index: 1;
}
.social-grid {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.social-grid a {
  color: var(--ghost); text-decoration: none;
  font-family: 'Fira Code', monospace;
  font-size: .7rem; letter-spacing: .1em;
  padding: .35rem .8rem; border: 1px solid #333;
  transition: all .2s;
}
.social-grid a:hover {
  border-color: var(--cyan); color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
  box-shadow: 0 0 8px rgba(0,240,200,.15);
}
.footer-freq {
  font-family: 'Fira Code', monospace;
  font-size: .6rem; color: #444; letter-spacing: .15em;
}

/* ---- PAGE CONTENT (non-front pages) ---- */
.ld-page-content {
  padding: 2rem 1rem 4rem;
  max-width: 800px; margin: 0 auto;
}
.ld-page-inner {
  background: var(--static);
  border: 1px solid #1a1a28;
  padding: 2rem;
}
.ld-page-body {
  font-size: .9rem; line-height: 1.7;
  color: var(--ghost);
}
.ld-page-body a { color: var(--cyan); }
.ld-page-body h2, .ld-page-body h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--ghost); margin: 1.5rem 0 .5rem;
}

/* ---- WOOCOMMERCE OVERRIDES ---- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--static);
  border: 1px solid #1a1a28;
  padding: 1rem;
}
.woocommerce ul.products li.product h2,
.woocommerce div.product .product_title {
  font-family: 'Oswald', sans-serif !important;
  color: var(--ghost) !important;
  font-size: 1.2rem !important;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product .price {
  color: var(--magenta) !important;
  font-family: 'Fira Code', monospace !important;
}
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button {
  background: var(--static) !important;
  color: var(--cyan) !important;
  border: 1px solid var(--cyan) !important;
  font-family: 'Fira Code', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  font-weight: 400 !important;
  transition: all .2s !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background: rgba(0,240,200,.1) !important;
  box-shadow: 0 0 12px rgba(0,240,200,.2) !important;
}
.woocommerce table.shop_table {
  background: var(--static);
  border: 1px solid #1a1a28;
  color: var(--ghost);
}
.woocommerce table.shop_table th {
  font-family: 'Fira Code', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  color: var(--amber);
}
.woocommerce table.shop_table td {
  color: var(--ghost);
  font-size: .85rem;
}
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order {
  background: var(--static);
  border: 1px solid #1a1a28;
}
.woocommerce-info {
  background: var(--static) !important;
  color: var(--ghost) !important;
  border-top-color: var(--cyan) !important;
}
.woocommerce-message {
  background: var(--static) !important;
  color: var(--ghost) !important;
  border-top-color: var(--cyan) !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: var(--void) !important;
  color: var(--ghost) !important;
  border: 1px solid #1a1a28 !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--cyan) !important;
}
.select2-container--default .select2-selection--single {
  background: var(--void) !important;
  border: 1px solid #1a1a28 !important;
  color: var(--ghost) !important;
}

/* ---- ASTRONAUT SPRITES ---- */
#astro-sprites {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.astro-sprite {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease-in;
}
.astro-sprite.astro-visible { opacity: 1; }

@keyframes astro-float-1 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}
@keyframes astro-float-2 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 3px; }
}
@keyframes astro-float-3 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -2px; }
}

@media (prefers-reduced-motion: reduce) {
  .astro-sprite { animation: none !important; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .dates-grid { grid-template-columns: 1fr; }
  .date-tile { flex-wrap: wrap; }
  .date-city-tag { margin-left: 0; }
  .contact-inner { padding: 1.5rem 1rem; }
  .contact-email { font-size: .9rem; }
}
