/* ================================================
   CLINTONVILLE ROLLER CLUB — Main Stylesheet
   70s Funk · Retro Neon · Roller Skate Vibes
   ================================================ */

/* 1. RESET & VARIABLES
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors (pulled from logo) */
  --pink:       #FF4D9E;
  --hot-pink:   #FF006E;
  --green:      #06D6A0;
  --mint:       #3DFCA0;
  --purple:     #8338EC;
  --coral:      #FF6B6B;
  --yellow:     #FFD166;
  --orange:     #FF9A3C;
  --cyan:       #00D4FF;

  /* Backgrounds */
  --dark:       #FFFFFF;
  --dark-2:     #F8F8FF;
  --dark-3:     #F2F0FF;
  --dark-4:     #EAE8FF;
  --card-bg:    rgba(255, 255, 255, 0.95);

  /* Text */
  --text:       #1A1A2E;
  --text-muted: rgba(26, 26, 46, 0.62);
  --text-dim:   rgba(26, 26, 46, 0.35);

  /* Gradients */
  --rainbow:        linear-gradient(90deg, #FF6B6B, #FF9A3C, #FFD166, #06D6A0, #00D4FF, #8338EC, #FF4D9E);
  --rainbow-diag:   linear-gradient(135deg, #FF6B6B, #FF9A3C, #FFD166, #06D6A0, #00D4FF, #8338EC, #FF4D9E);
  --pink-grad:      linear-gradient(135deg, #FF4D9E, #8338EC);
  --green-grad:     linear-gradient(135deg, #06D6A0, #00D4FF);
  --dark-grad:      linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);

  /* Glows */
  --glow-pink:   0 0 24px rgba(255, 77, 158, 0.55), 0 0 60px rgba(255, 77, 158, 0.2);
  --glow-green:  0 0 24px rgba(6, 214, 160, 0.55), 0 0 60px rgba(6, 214, 160, 0.2);
  --glow-purple: 0 0 24px rgba(131, 56, 236, 0.55), 0 0 60px rgba(131, 56, 236, 0.2);

  /* Typography */
  --font-display: 'Righteous', sans-serif;
  --font-accent:  'Pacifico', cursive;
  --font-body:    'Nunito', sans-serif;

  /* Spacing */
  --section-pad: clamp(3.5rem, 9vw, 6.5rem);
  --container:   min(1200px, 92vw);

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 50px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 2. BASE TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 0.4em;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 100%;
  animation: rainbow-shift 6s linear infinite;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.container { width: var(--container); margin: 0 auto; }

section { padding: var(--section-pad) 0; }

/* 3. NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(255, 77, 158, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  background: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15), 0 0 0 2px rgba(255,77,158,0.2);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: rainbow-shift 5s linear infinite;
  line-height: 1.15;
}

.nav-logo-text span { display: block; font-size: 0.72rem; letter-spacing: 0.12em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(26, 26, 46, 0.55);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
  background: rgba(255, 77, 158, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  color: rgba(26, 26, 46, 0.55);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.nav-social a:hover { color: var(--pink); background: rgba(255,77,158,0.15); transform: translateY(-2px); }

.nav-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(26, 26, 46, 0.55);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--r-sm);
  transition: color 0.2s;
  font-size: 1.3rem;
}

.nav-cart-btn:hover { color: var(--pink); }

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--pink);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.visible { display: flex; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(26, 26, 46, 0.55);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--pink); }

/* 4. HERO
   ================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,20,0.55) 0%,
    rgba(10,10,20,0.4) 50%,
    rgba(10,10,20,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  animation: fade-up 1s ease both;
}

.hero-logo {
  width: min(240px, 55vw);
  margin: 0 auto 1.5rem;
  background: white;
  border-radius: 50%;
  padding: 18px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.25), 0 0 0 4px rgba(255,77,158,0.35), 0 0 60px rgba(131,56,236,0.2);
  animation: float 4s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--text);
  text-shadow: 0 0 40px rgba(255,77,158,0.5);
  margin-bottom: 0.5rem;
}

.hero-est {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  margin-top: 0.3rem;
}

/* Sparkle decorations */
.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparkle-spin 3s linear infinite;
}
.sparkle svg { fill: white; opacity: 0.7; }

/* 5. BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--r-xl);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px) scale(1.03); }

.btn-primary {
  background: var(--pink-grad);
  color: white;
  box-shadow: var(--glow-pink);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(255,77,158,0.8), 0 0 80px rgba(255,77,158,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: var(--glow-green);
}
.btn-secondary:hover { background: rgba(6,214,160,0.1); box-shadow: 0 0 40px rgba(6,214,160,0.7); }

.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
}
.btn-outline:hover { background: rgba(255,77,158,0.1); }

.btn-yellow {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  box-shadow: 0 0 24px rgba(255,209,102,0.4);
}
.btn-yellow:hover { box-shadow: 0 0 40px rgba(255,209,102,0.7); }

/* 6. WAVE DIVIDERS
   ================================================ */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* 7. ABOUT SECTION
   ================================================ */
.about-section {
  background: var(--dark-2);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,77,158,0.12);
  border: 1px solid rgba(255,77,158,0.3);
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--r-xl);
  margin-bottom: 1.2rem;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.about-img-grid img {
  border-radius: var(--r-md);
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-img-grid img:hover { transform: scale(1.03); box-shadow: var(--glow-pink); }
.about-img-grid img:first-child { grid-column: span 2; height: 260px; }

/* 8. HOW TO JOIN
   ================================================ */
.join-section { background: var(--dark-3); }

.join-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 158, 0.3);
  box-shadow: var(--glow-pink);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  background: var(--pink-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.step-card p { color: var(--text-muted); font-size: 0.95rem; }

.join-cta { text-align: center; margin-top: 3rem; }

/* 9. NEWSLETTER SECTION
   ================================================ */
.newsletter-section {
  background: linear-gradient(135deg, #fdf0ff 0%, #f0fff8 50%, #fff0f8 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(131,56,236,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-inner .section-title { margin-bottom: 0.5rem; }

.newsletter-inner p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.9);
  border: 2px solid rgba(26,26,46,0.15);
  border-radius: var(--r-xl);
  padding: 0.85rem 1.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--pink);
}

.newsletter-form input::placeholder { color: var(--text-dim); }

.newsletter-msg {
  font-size: 0.9rem;
  min-height: 1.4rem;
  transition: all 0.3s;
}
.newsletter-msg.success { color: var(--green); }
.newsletter-msg.error   { color: var(--coral); }

/* 10. DONATE SECTION
   ================================================ */
.donate-section {
  background: var(--dark-2);
  text-align: center;
}

.donate-inner {
  max-width: 600px;
  margin: 0 auto;
}

.donate-inner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.venmo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #3D95CE;
  color: white;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--r-xl);
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(61,149,206,0.4);
}

.venmo-btn:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(61,149,206,0.7); }

/* 11. SPONSORS SECTION
   ================================================ */
.sponsors-section {
  background: var(--dark-3);
  text-align: center;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.sponsor-placeholder {
  width: 160px;
  height: 80px;
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: border-color 0.2s, color 0.2s;
}

.sponsor-placeholder:hover { border-color: var(--pink); color: var(--pink); }

/* 12. FOOTER
   ================================================ */
.footer {
  background: #FFFFFF;
  border-top: 2px solid rgba(255,77,158,0.15);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: rainbow-shift 5s linear infinite;
  margin-bottom: 0.8rem;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.footer-brand .social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.2s;
}

.social-links a:hover { background: rgba(255,77,158,0.2); color: var(--pink); transform: translateY(-3px); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }
.footer-bottom .rainbow-line {
  height: 2px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbow-shift 5s linear infinite;
  border-radius: 2px;
  width: 120px;
}

/* 13. EVENTS PAGE
   ================================================ */
.page-hero {
  padding: calc(var(--section-pad) + 80px) 0 var(--section-pad);
  background: var(--dark-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(131,56,236,0.15) 0%, transparent 70%);
}

.page-hero .section-title { font-size: clamp(2.5rem, 6vw, 4rem); position: relative; }
.page-hero p { color: var(--text-muted); position: relative; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.event-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.event-card:hover { transform: translateY(-6px); box-shadow: var(--glow-purple); }

.event-card-header {
  background: var(--pink-grad);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-date-block {
  text-align: center;
  background: rgba(255,255,255,0.25);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.8rem;
  min-width: 60px;
}

.event-date-block .month {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.event-date-block .day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.event-card-header h3 {
  font-size: 1.15rem;
  color: white;
}

.event-card-header .event-type {
  font-size: 0.75rem;
  opacity: 0.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card-body { padding: 1.5rem; }
.event-card-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.event-meta span {
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 14. GALLERY PAGE
   ================================================ */
.gallery-grid {
  columns: 4;
  column-gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) { .gallery-grid { columns: 3; } }
@media (max-width: 768px)  { .gallery-grid { columns: 2; } }
@media (max-width: 480px)  { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.gallery-item::after {
  content: '✦';
  position: absolute;
  inset: 0;
  background: rgba(255,77,158,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--r-md);
  box-shadow: var(--glow-pink);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,77,158,0.2);
  border: 2px solid rgba(255,77,158,0.4);
  color: white;
  font-size: 1.5rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,77,158,0.5); }

/* 15. MERCH PAGE
   ================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--glow-pink); }

.product-img {
  aspect-ratio: 1;
  background: var(--dark-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  color: var(--text-dim);
  font-size: 3.5rem;
  gap: 0.5rem;
}

.product-img-placeholder span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: var(--pink-grad);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-xl);
}

.product-info { padding: 1.5rem; }

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green);
}

.add-to-cart-btn {
  background: var(--pink-grad);
  color: white;
  border: none;
  border-radius: var(--r-xl);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.add-to-cart-btn:hover { transform: scale(1.05); box-shadow: var(--glow-pink); }
.add-to-cart-btn:active { transform: scale(0.97); }

/* 16. CART DRAWER
   ================================================ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-backdrop.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: min(420px, 100vw);
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid rgba(255,77,158,0.2);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
}

.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cart-drawer-header h3 { font-family: var(--font-display); font-size: 1.2rem; }

.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.cart-close:hover { color: var(--pink); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.03);
  margin-bottom: 0.75rem;
}

.cart-item-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: var(--dark-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.cart-item-info span { color: var(--green); font-weight: 700; font-size: 0.88rem; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: none;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}

.qty-btn:hover { border-color: var(--pink); color: var(--pink); }
.qty-display { font-weight: 700; min-width: 20px; text-align: center; }

.remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0.2rem;
}
.remove-btn:hover { color: var(--coral); }

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.cart-empty .cart-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.cart-total span:last-child { color: var(--green); font-family: var(--font-display); font-size: 1.2rem; }

.checkout-btn {
  width: 100%;
  background: var(--pink-grad);
  color: white;
  border: none;
  border-radius: var(--r-xl);
  padding: 1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.checkout-btn:hover { box-shadow: var(--glow-pink); transform: translateY(-2px); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Cart success / cancel banners */
.page-banner {
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  display: none;
}
.page-banner.success { background: rgba(6,214,160,0.15); color: var(--green); border-bottom: 1px solid rgba(6,214,160,0.3); display: block; }
.page-banner.error   { background: rgba(255,107,107,0.15); color: var(--coral); border-bottom: 1px solid rgba(255,107,107,0.3); display: block; }

/* 17. ANIMATIONS
   ================================================ */
@keyframes rainbow-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sparkle-spin {
  0%   { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50%  { transform: rotate(180deg) scale(1.3); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.6; }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fade-up 0.7s ease both; }
.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }

/* 18. RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-social { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .join-steps { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input,
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .product-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}
