/*
Theme Name: EDM HBG
Theme URI: https://edmhbg.com
Author: EDM HBG
Description: Custom one-page theme for EDM HBG — Harrisburg's grassroots EDM community. Includes hero, mission statement, next event, and an auto-scrolling photo gallery.
Version: 1.0
Requires PHP: 7.4
Text Domain: edmhbg
*/

/* =====================================================
   All page CSS below (ported from the original design)
   ===================================================== */

  :root{
    --night:#12101E;
    --surface:#1B1830;
    --surface-2:#231F3C;
    --coral:#FF6B4A;
    --violet:#B45CFF;
    --gold:#FFD166;
    --text:#F5F1EA;
    --muted:#9B96AC;
    --line: rgba(245,241,234,0.14);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--night);
    color:var(--text);
    font-family:'Inter', sans-serif;
    overflow-x:hidden;
  }
  h1,h2,h3,.display{
    font-family:'Unbounded', sans-serif;
    line-height:1.05;
    margin:0;
  }
  .mono{ font-family:'Space Mono', monospace; letter-spacing:0.06em; }
  a{color:inherit;}
  img{max-width:100%;display:block;}

  /* ---------- ambient glow ---------- */
  .glow-field{
    position:fixed; inset:0; z-index:0; pointer-events:none;
    background:
      radial-gradient(650px 550px at 12% 6%, rgba(255,107,74,0.32), transparent 62%),
      radial-gradient(750px 650px at 88% 26%, rgba(180,92,255,0.30), transparent 62%),
      radial-gradient(600px 500px at 55% 68%, rgba(255,209,102,0.20), transparent 60%),
      radial-gradient(500px 450px at 8% 85%, rgba(255,107,74,0.18), transparent 60%),
      radial-gradient(550px 500px at 95% 92%, rgba(180,92,255,0.20), transparent 60%);
  }

  /* ---------- nav ---------- */
  header{
    position:sticky; top:0; z-index:50;
    display:flex; align-items:center; justify-content:space-between;
    padding: 10px 6vw;
    background:rgba(11,11,20,0.72);
    backdrop-filter: blur(10px);
    border-bottom:1px solid var(--line);
  }
  .logo{
    font-size:1.15rem; font-weight:900; letter-spacing:0.02em;
    display:flex; align-items:center;
  }
  .logo img{ height:88px; width:auto; display:block; }
  .logo span{ color:var(--coral); }
  nav ul{
    list-style:none; display:flex; gap:2.2rem; margin:0; padding:0;
  }
  nav a{
    text-decoration:none; font-size:0.85rem; font-weight:600;
    text-transform:uppercase; letter-spacing:0.08em; color:var(--muted);
    transition:color 0.2s ease;
  }
  nav a:hover, nav a:focus-visible{ color:var(--text); }
  .nav-toggle{ display:none; }

  /* ---------- hero ---------- */
  .hero{
    position:relative; z-index:1;
    min-height:92vh;
    display:flex; flex-direction:column; justify-content:center;
    padding: 8vh 6vw 6vh;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:0.6rem;
    font-size:0.78rem; color:var(--gold); margin-bottom:1.6rem;
    text-transform:uppercase;
  }
  .eyebrow::before{
    content:''; width:8px;height:8px;border-radius:50%;
    background:var(--gold); box-shadow:0 0 12px var(--gold);
    animation:pulseDot 1.8s ease-in-out infinite;
  }
  @keyframes pulseDot{ 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.4;transform:scale(0.7);} }

  .hero h1{
    font-size:clamp(2.6rem, 8vw, 6.4rem);
    font-weight:900;
    text-transform:uppercase;
  }
  .hero h1 .line2{
    background:linear-gradient(100deg, var(--coral), var(--violet) 60%, var(--gold));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero p.sub{
    max-width:560px; margin-top:1.8rem;
    font-size:1.05rem; color:var(--muted); line-height:1.6;
  }
  .hero-actions{ display:flex; gap:1rem; margin-top:2.6rem; flex-wrap:wrap; }
  .btn{
    display:inline-block; padding:0.9rem 1.7rem; border-radius:100px;
    font-weight:600; font-size:0.92rem; text-decoration:none;
    transition:transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn-primary{
    background:var(--coral); color:#100A08;
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(255,107,74,0.35); }
  .btn-ghost{
    border:1px solid var(--line); color:var(--text);
  }
  .btn-ghost:hover{ border-color:var(--text); transform:translateY(-2px); }

  /* ---------- waveform divider (signature element) ---------- */
  .waveform{
    position:relative; z-index:1;
    width:100%; height:64px;
    display:flex; align-items:center; justify-content:center;
    gap:4px; padding: 0 6vw;
    overflow:hidden;
  }
  .waveform span{
    display:block; width:3px; border-radius:3px;
    background:linear-gradient(180deg, var(--coral), var(--violet));
    opacity:0.55;
    animation:barPulse 2.4s ease-in-out infinite;
  }
  @keyframes barPulse{
    0%,100%{ transform:scaleY(0.3); }
    50%{ transform:scaleY(1); }
  }

  /* ---------- section shell ---------- */
  section{ position:relative; z-index:1; padding: 7vh 6vw; }
  .section-head{ max-width:680px; margin-bottom:3rem; }
  .kicker{
    font-size:0.78rem; color:var(--coral); text-transform:uppercase;
    margin-bottom:0.8rem; display:block;
  }
  .section-head h2{
    font-size:clamp(1.8rem, 4vw, 2.8rem);
    font-weight:800;
  }

  /* ---------- mission ---------- */
  .mission{ background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .mission-grid{
    display:grid; grid-template-columns: 0.9fr 1.4fr; gap:4rem; align-items:start;
    max-width:1180px; margin:0 auto;
  }
  .mission-lead blockquote{
    margin:0; font-family:'Unbounded', sans-serif; font-weight:600;
    font-size:1.5rem; line-height:1.4; color:var(--gold);
    border-left:3px solid var(--coral); padding-left:1.4rem;
  }
  .mission-lead .signoff{
    margin-top:1.6rem; font-size:0.85rem; color:var(--muted);
  }
  .mission-body p{
    font-size:1.02rem; line-height:1.85; color:#DAD6E8; margin:0 0 1.5rem;
  }
  .mission-body p:last-child{ margin-bottom:0; }
  .mission-body strong{ color:var(--text); }

  /* ---------- next event ---------- */
  .event-card{
    max-width:1180px; margin:0 auto;
    display:grid; grid-template-columns: 1fr 1.3fr;
    background:var(--surface-2);
    border:1px solid var(--line); border-radius:20px;
    overflow:hidden;
  }
  .event-date{
    background:
      radial-gradient(400px 300px at 20% 0%, rgba(255,107,74,0.35), transparent 60%),
      radial-gradient(400px 300px at 100% 100%, rgba(180,92,255,0.3), transparent 60%),
      var(--night);
    padding: 3rem 2.4rem;
    display:flex; flex-direction:column; justify-content:center;
    border-right:1px solid var(--line);
  }
  .event-date .month{ color:var(--coral); font-size:0.95rem; text-transform:uppercase; }
  .event-date .day{ font-family:'Unbounded'; font-weight:900; font-size:5rem; line-height:1; margin:0.2rem 0; }
  .event-date .year{ color:var(--muted); font-size:0.95rem; }
  .event-info{ padding: 3rem 2.6rem; display:flex; flex-direction:column; gap:1.2rem; }
  .event-info h3{ font-size:1.6rem; font-weight:800; }
  .event-meta{ display:flex; flex-wrap:wrap; gap:1.6rem; color:var(--muted); font-size:0.9rem; }
  .event-meta .item{ display:flex; align-items:center; gap:0.5rem; }
  .event-info p{ color:#DAD6E8; line-height:1.7; margin:0; }
  .event-tags{ display:flex; gap:0.6rem; flex-wrap:wrap; margin-top:0.4rem; }
  .tag{
    font-size:0.75rem; padding:0.35rem 0.8rem; border-radius:100px;
    border:1px solid var(--line); color:var(--gold);
  }
  .event-note{
    margin-top:0.6rem; font-size:0.8rem; color:var(--muted); border-top:1px dashed var(--line); padding-top:1rem;
  }

  /* ---------- gallery (auto-scrolling marquee) ---------- */
  .gallery-wrap{ max-width:1180px; margin:0 auto; }
  .marquee-viewport{
    position:relative; overflow:hidden; border-radius:20px;
    background:var(--surface-2); border:1px solid var(--line);
    padding: 1.4rem 0;
  }
  .marquee-viewport::before, .marquee-viewport::after{
    content:''; position:absolute; top:0; bottom:0; width:80px; z-index:3; pointer-events:none;
  }
  .marquee-viewport::before{ left:0; background:linear-gradient(90deg, var(--surface-2), transparent); }
  .marquee-viewport::after{ right:0; background:linear-gradient(270deg, var(--surface-2), transparent); }
  .marquee-track{
    display:flex; align-items:center; gap:1.1rem;
    width:max-content;
    padding: 0 1.1rem;
    animation: marqueeScroll 26s linear infinite;
  }
  .marquee-track.paused{ animation-play-state: paused; }
  .marquee-item{
    flex:0 0 auto; width:300px; aspect-ratio:4/3;
    border-radius:14px; overflow:hidden; position:relative;
    z-index:1;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  .marquee-item:hover{
    transform: scale(1.28);
    z-index:5;
    box-shadow: 0 24px 50px rgba(0,0,0,0.55);
  }
  .marquee-item img{ width:100%; height:100%; object-fit:cover; display:block; }
  @keyframes marqueeScroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce){
    .marquee-track{ animation:none; }
  }

  /* ---------- connect / footer ---------- */
  .connect{
    text-align:center;
    background:var(--surface); border-top:1px solid var(--line);
  }
  .connect h2{ font-size:clamp(1.8rem,5vw,3rem); font-weight:900; max-width:720px; margin:0 auto 1.2rem; }
  .connect p{ color:var(--muted); max-width:520px; margin:0 auto 2.2rem; line-height:1.7; }
  .connect .btn-primary{ padding:1rem 2.2rem; }

  footer{
    padding: 3rem 6vw 2.4rem;
    display:flex; justify-content:space-between; align-items:center;
    flex-wrap:wrap; gap:1rem;
    color:var(--muted); font-size:0.82rem;
    border-top:1px solid var(--line);
  }
  .footer-links{ display:flex; gap:1.6rem; }
  .footer-links a{ text-decoration:none; color:var(--muted); }
  .footer-links a:hover{ color:var(--text); }

  @media (max-width: 860px){
    nav ul{ display:none; }
    .mission-grid{ grid-template-columns:1fr; gap:2rem; }
    .event-card{ grid-template-columns:1fr; }
    .event-date{ border-right:none; border-bottom:1px solid var(--line); }
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation:none !important; transition:none !important; }
  }
