/* ============================================
   WILMINGTON ROCKS — Premium Adaptive Design
   Magazine-quality, music-blog aesthetic
   ============================================ */

/* --- CSS Custom Properties (Day Theme - Default) --- */
:root,
[data-theme="day"] {
  /* Primary palette */
  --color-primary: #10b0b0;
  --color-primary-light: #60d0d0;
  --color-primary-lighter: #a0e0e0;
  --color-primary-dark: #007070;

  /* Accent */
  --color-accent: #f0c060;
  --color-accent-light: #f5d78a;
  --color-accent-dark: #d4a030;

  /* Backgrounds */
  --bg-primary: #f0f7f7;
  --bg-secondary: #e6f4f4;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #60d0e0 0%, #a0e0e0 30%, #f0c060 100%);
  --bg-nav: rgba(255, 255, 255, 0.92);

  /* Text */
  --text-primary: #1a2a35;
  --text-secondary: #405060;
  --text-muted: #607080;
  --text-inverse: #ffffff;

  /* Surfaces */
  --surface-border: rgba(16, 176, 176, 0.15);
  --surface-shadow: rgba(64, 96, 112, 0.1);
  --surface-glow: rgba(96, 208, 224, 0.2);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: rgba(64, 96, 112, 0.08);

  /* Waves */
  --wave-1: rgba(96, 208, 208, 0.5);
  --wave-2: rgba(160, 224, 224, 0.4);
  --wave-3: rgba(240, 192, 96, 0.2);

  /* Misc */
  --hero-overlay: rgba(240, 247, 247, 0.1);
  --card-hover-shadow: rgba(16, 176, 176, 0.2);
  --nav-shadow: rgba(64, 96, 112, 0.08);
  --footer-bg: #1a2a35;
  --footer-text: #a0e0e0;

  /* Gradient text */
  --gradient-text: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-accent));

  /* Section divider */
  --divider-color: var(--bg-secondary);

  /* Scrollbar */
  --scrollbar-track: #e6f4f4;
  --scrollbar-thumb: #b0d8d8;
  --scrollbar-thumb-hover: var(--color-primary);

  /* Selection */
  --selection-bg: rgba(16, 176, 176, 0.25);
  --selection-text: var(--text-primary);

  /* Logo visibility */
  --logo-day-opacity: 1;
  --logo-night-opacity: 0;

  /* Grain */
  --grain-opacity: 0.03;

  /* Card accent default */
  --card-accent: var(--color-primary);

  /* Transitions */
  --theme-transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Night Theme --- */
[data-theme="night"] {
  --color-primary: #10e0d0;
  --color-primary-light: #20e0d0;
  --color-primary-lighter: #40e8d8;
  --color-primary-dark: #006060;

  --color-accent: #e03090;
  --color-accent-light: #f050b0;
  --color-accent-dark: #b02070;

  --bg-primary: #0a1520;
  --bg-secondary: #0f1e30;
  --bg-card: #142535;
  --bg-hero: linear-gradient(135deg, #0a1520 0%, #102040 50%, #103050 100%);
  --bg-nav: rgba(10, 21, 32, 0.95);

  --text-primary: #e8f0f4;
  --text-secondary: #a0c0d0;
  --text-muted: #607890;
  --text-inverse: #0a1520;

  --surface-border: rgba(16, 224, 208, 0.15);
  --surface-shadow: rgba(0, 0, 0, 0.3);
  --surface-glow: rgba(16, 224, 208, 0.1);

  --glass-bg: rgba(20, 37, 53, 0.6);
  --glass-border: rgba(16, 224, 208, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.2);

  --wave-1: rgba(16, 224, 208, 0.2);
  --wave-2: rgba(16, 48, 80, 0.6);
  --wave-3: rgba(224, 48, 144, 0.1);

  --hero-overlay: rgba(10, 21, 32, 0.2);
  --card-hover-shadow: rgba(16, 224, 208, 0.15);
  --nav-shadow: rgba(0, 0, 0, 0.3);
  --footer-bg: #060e18;
  --footer-text: #10e0d0;

  --gradient-text: linear-gradient(135deg, var(--color-primary), var(--color-accent-light), var(--color-primary-light));

  --divider-color: var(--bg-secondary);

  --scrollbar-track: #0f1e30;
  --scrollbar-thumb: #1a3550;
  --scrollbar-thumb-hover: var(--color-primary);

  --selection-bg: rgba(16, 224, 208, 0.3);
  --selection-text: var(--text-primary);

  --logo-day-opacity: 0;
  --logo-night-opacity: 1;

  --grain-opacity: 0.04;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--theme-transition), color var(--theme-transition);
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Selection styling */
::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
  border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Firefox scrollbar */
html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-light);
}

/* ============================================
   THEME TRANSITION OVERLAY
   ============================================ */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.theme-transition-overlay.active {
  opacity: 0.3;
}

/* ============================================
   LOGO VISIBILITY
   ============================================ */
.logo-day {
  opacity: var(--logo-day-opacity);
  transition: opacity var(--theme-transition);
  position: absolute;
}

.logo-night {
  opacity: var(--logo-night-opacity);
  transition: opacity var(--theme-transition);
  position: absolute;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 12px var(--nav-shadow);
  transition: background var(--theme-transition), box-shadow var(--theme-transition);
  border-bottom: 1px solid var(--surface-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  text-decoration: none;
}

.nav-logo .logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo .logo-day,
.nav-logo .logo-night {
  position: relative;
}

.nav-logo .logo-night {
  position: absolute;
  left: 0;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--theme-transition);
}

.brand-accent {
  color: var(--color-primary);
  transition: color var(--theme-transition);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  background: var(--surface-glow);
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.theme-toggle:hover .theme-icon {
  filter: brightness(1.3);
}

.theme-icon {
  font-size: 1.1rem;
  transition: all 0.4s ease;
}

[data-theme="day"] .moon-icon {
  opacity: 0.4;
  transform: scale(0.8);
}

[data-theme="day"] .sun-icon {
  opacity: 1;
  transform: scale(1);
}

[data-theme="night"] .sun-icon {
  opacity: 0.4;
  transform: scale(0.8);
}

[data-theme="night"] .moon-icon {
  opacity: 1;
  transform: scale(1);
}

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--bg-hero);
  transition: background var(--theme-transition);
}

/* Animated gradient shimmer */
.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, var(--wave-3) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, var(--surface-glow) 0%, transparent 50%);
  animation: heroShimmer 12s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 0.4; transform: scale(1); }
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 240px;
  z-index: 1;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-1 path {
  fill: var(--wave-1);
  transition: fill var(--theme-transition);
}

.wave-2 path {
  fill: var(--bg-primary);
  transition: fill var(--theme-transition);
}

.wave-1 {
  animation: wave-drift 10s ease-in-out infinite;
}

.wave-2 {
  animation: wave-drift 7s ease-in-out infinite reverse;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-30px) translateY(-4px); }
  50% { transform: translateX(-15px) translateY(2px); }
  75% { transform: translateX(-40px) translateY(-2px); }
}

/* Night particles / stars canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
}

.hero-logo-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 36px;
}

/* Glow ring around logo */
.hero-logo-container::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-primary), var(--color-accent), var(--color-primary));
  opacity: 0.25;
  animation: logoGlow 6s linear infinite;
  filter: blur(12px);
}

.hero-logo-container::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-lighter);
  opacity: 0.3;
  animation: logoRingPulse 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoRingPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.04); }
}

[data-theme="night"] .hero-logo-container::before {
  opacity: 0.4;
  background: conic-gradient(from 0deg, var(--color-primary), var(--color-accent), var(--color-primary-light), var(--color-accent-light), var(--color-primary));
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.2));
  transition: opacity var(--theme-transition), transform 0.4s ease;
}

.hero-logo-day {
  opacity: var(--logo-day-opacity);
  position: absolute;
  top: 0;
  left: 0;
}

.hero-logo-night {
  opacity: var(--logo-night-opacity);
  position: absolute;
  top: 0;
  left: 0;
}

.hero-logo-container:hover .hero-logo {
  transform: scale(1.06);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.title-wilmington {
  display: block;
  color: var(--text-inverse);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  transition: color var(--theme-transition);
}

[data-theme="night"] .title-wilmington {
  color: var(--text-primary);
  text-shadow: 0 2px 30px rgba(16, 224, 208, 0.15);
}

.title-rocks {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background var(--theme-transition);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

[data-theme="night"] .title-rocks {
  filter: drop-shadow(0 0 20px rgba(16, 224, 208, 0.3));
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-inverse);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.1);
  transition: color var(--theme-transition);
}

[data-theme="night"] .hero-tagline {
  color: var(--text-secondary);
}

.tagline-emphasis {
  font-weight: 700;
  color: var(--color-accent);
  transition: color var(--theme-transition);
  position: relative;
}

.tagline-emphasis::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.5;
  border-radius: 2px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 42px;
  background: var(--color-primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 60px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(16, 176, 176, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero-cta:hover::before {
  transform: translateX(100%);
}

[data-theme="night"] .hero-cta {
  color: var(--text-inverse);
  box-shadow: 0 4px 24px rgba(16, 224, 208, 0.3), 0 0 40px rgba(16, 224, 208, 0.15);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(16, 176, 176, 0.45);
  color: var(--text-inverse);
}

[data-theme="night"] .hero-cta:hover {
  box-shadow: 0 8px 36px rgba(16, 224, 208, 0.4), 0 0 60px rgba(16, 224, 208, 0.2);
}

.hero-time-indicator {
  position: absolute;
  bottom: 100px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0.7;
}

.time-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.time-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-inverse);
  font-family: 'Space Grotesk', monospace;
  transition: color var(--theme-transition);
}

[data-theme="night"] .time-text {
  color: var(--text-muted);
}

/* ============================================
   SECTION DIVIDERS (wave shapes between sections)
   ============================================ */
.section-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-divider .divider-fill {
  fill: var(--bg-secondary);
  transition: fill var(--theme-transition);
}

.section-divider.divider-to-primary .divider-fill {
  fill: var(--bg-primary);
}

/* ============================================
   SECTIONS (global)
   ============================================ */
.section {
  padding: 100px 0;
  transition: background-color var(--theme-transition);
  position: relative;
}

.section.bg-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color var(--theme-transition);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title .title-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="night"] .section-title .title-text {
  filter: drop-shadow(0 0 12px rgba(16, 224, 208, 0.2));
}

/* Decorative line under title */
.section-title-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-decor .decor-line {
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.5;
}

.section-title-decor .decor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  transition: color var(--theme-transition);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ============================================
   ABOUT CARDS — Glassmorphism
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

a.about-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.about-card-link:hover {
  text-decoration: none;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  transition: all 0.4s ease, background var(--theme-transition), border-color var(--theme-transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-text);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--glass-shadow), 0 0 0 1px var(--glass-border);
}

.about-card:hover::before {
  opacity: 1;
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--surface-glow), var(--glass-bg));
  border: 1px solid var(--surface-border);
  transition: all 0.3s ease;
}

.about-card:hover .about-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px var(--surface-glow);
}

.about-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color var(--theme-transition);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color var(--theme-transition);
}

/* ============================================
   FILTER BUTTONS (used for Bands & Businesses)
   ============================================ */
/* Business search bar */
.biz-search-container {
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}

.biz-search-input {
  width: 100%;
  padding: 14px 24px;
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease, background var(--theme-transition), border-color var(--theme-transition), color var(--theme-transition);
}

.biz-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 176, 176, 0.15);
}

.biz-search-input::placeholder {
  color: var(--text-muted);
  transition: color var(--theme-transition);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Space Grotesk', sans-serif;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--surface-glow);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 12px rgba(16, 176, 176, 0.3);
}

[data-theme="night"] .filter-btn.active {
  box-shadow: 0 2px 16px rgba(16, 224, 208, 0.25);
}

/* View toggle (card / list) */
.view-toggle-group {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  overflow: hidden;
}

.view-toggle-btn {
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.view-toggle-btn.active {
  background: var(--color-primary);
  color: white;
}

.view-toggle-btn:hover:not(.active) {
  background: var(--surface-glow);
  color: var(--text-primary);
}

/* Controls bar for filter + view toggles */
.section-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* ============================================
   BANDS SECTION
   ============================================ */
.bands-section-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Subtle waveform pattern */
.bands-section-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    var(--surface-glow) 8px,
    var(--surface-glow) 9px
  );
  opacity: 0.15;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q5 0 10 10 Q15 20 20 10 Q25 0 30 10 Q35 20 40 10 Q45 0 50 10 Q55 20 60 10 Q65 0 70 10 Q75 20 80 10 Q85 0 90 10 Q95 20 100 10' stroke='white' fill='none' stroke-width='3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q5 0 10 10 Q15 20 20 10 Q25 0 30 10 Q35 20 40 10 Q45 0 50 10 Q55 20 60 10 Q65 0 70 10 Q75 20 80 10 Q85 0 90 10 Q95 20 100 10' stroke='white' fill='none' stroke-width='3'/%3E%3C/svg%3E");
  mask-size: 200px 120px;
  -webkit-mask-size: 200px 120px;
}

.bands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.band-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1), background var(--theme-transition), border-color var(--theme-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Colored accent strip at top */
.band-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--color-primary));
  transition: height 0.3s ease;
}

.band-card-inner {
  padding: 24px 24px 20px;
}

a.band-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px var(--card-hover-shadow), 0 0 0 1px var(--surface-border);
  border-color: var(--color-primary-light);
  color: inherit;
  text-decoration: none;
}

a.band-card:hover::before {
  height: 5px;
}

[data-theme="night"] a.band-card:hover {
  box-shadow: 0 12px 40px var(--card-hover-shadow), 0 0 20px rgba(16, 224, 208, 0.05);
}

.band-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.band-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--theme-transition);
  margin: 0;
}

.band-status,
.biz-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-live {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

[data-theme="night"] .status-live {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}

.status-prospect {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="night"] .status-prospect {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

.status-progress {
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

[data-theme="night"] .status-progress {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.25);
}

.status-other {
  background: var(--surface-glow);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
}

/* Genre tags — color-coded */
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.genre-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* Genre color variants */
.genre-rock       { background: rgba(239, 68, 68, 0.12); color: #dc2626; border-color: rgba(239, 68, 68, 0.2); }
.genre-metal      { background: rgba(51, 51, 51, 0.12); color: #555; border-color: rgba(51, 51, 51, 0.2); }
.genre-folk       { background: rgba(34, 197, 94, 0.12); color: #16a34a; border-color: rgba(34, 197, 94, 0.2); }
.genre-hiphop     { background: rgba(168, 85, 247, 0.12); color: #9333ea; border-color: rgba(168, 85, 247, 0.2); }
.genre-country    { background: rgba(249, 115, 22, 0.12); color: #ea580c; border-color: rgba(249, 115, 22, 0.2); }
.genre-indie      { background: rgba(236, 72, 153, 0.12); color: #db2777; border-color: rgba(236, 72, 153, 0.2); }
.genre-punk       { background: rgba(239, 68, 68, 0.15); color: #b91c1c; border-color: rgba(239, 68, 68, 0.25); }
.genre-blues      { background: rgba(59, 130, 246, 0.12); color: #2563eb; border-color: rgba(59, 130, 246, 0.2); }
.genre-jazz       { background: rgba(217, 119, 6, 0.12); color: #b45309; border-color: rgba(217, 119, 6, 0.2); }
.genre-electronic { background: rgba(6, 182, 212, 0.12); color: #0891b2; border-color: rgba(6, 182, 212, 0.2); }
.genre-pop        { background: rgba(244, 114, 182, 0.12); color: #ec4899; border-color: rgba(244, 114, 182, 0.2); }
.genre-rnb        { background: rgba(139, 92, 246, 0.12); color: #7c3aed; border-color: rgba(139, 92, 246, 0.2); }
.genre-americana  { background: rgba(180, 83, 9, 0.12); color: #b45309; border-color: rgba(180, 83, 9, 0.2); }
.genre-soul       { background: rgba(217, 70, 239, 0.12); color: #c026d3; border-color: rgba(217, 70, 239, 0.2); }
.genre-default    { background: var(--surface-glow); color: var(--color-primary); border-color: var(--surface-border); }

/* Night mode genre adjustments */
[data-theme="night"] .genre-rock       { background: rgba(239, 68, 68, 0.15); color: #f87171; }
[data-theme="night"] .genre-metal      { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
[data-theme="night"] .genre-folk       { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
[data-theme="night"] .genre-hiphop     { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
[data-theme="night"] .genre-country    { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
[data-theme="night"] .genre-indie      { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
[data-theme="night"] .genre-punk       { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
[data-theme="night"] .genre-blues      { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
[data-theme="night"] .genre-jazz       { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
[data-theme="night"] .genre-electronic { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
[data-theme="night"] .genre-pop        { background: rgba(244, 114, 182, 0.15); color: #f9a8d4; }
[data-theme="night"] .genre-rnb        { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
[data-theme="night"] .genre-americana  { background: rgba(180, 83, 9, 0.15); color: #fbbf24; }
[data-theme="night"] .genre-soul       { background: rgba(217, 70, 239, 0.15); color: #e879f9; }

.band-notes,
.biz-notes {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 8px;
  transition: color var(--theme-transition);
}

.card-link-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.35s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-link-hint::after {
  content: '→';
  transition: transform 0.3s ease;
}

a.band-card:hover .card-link-hint,
a.biz-card:hover .card-link-hint {
  opacity: 1;
  transform: translateX(0);
}

a.band-card:hover .card-link-hint::after,
a.biz-card:hover .card-link-hint::after {
  transform: translateX(4px);
}

/* ============================================
   CARD COVER IMAGES
   ============================================ */
.card-cover-image {
  position: relative;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.card-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

/* Adjust card styling when cover image is present */
.band-card.has-cover-image .band-card-inner {
  padding-top: 20px;
}

.biz-card.has-cover-image .biz-card-inner {
  padding-top: 20px;
}

/* Accent strip positioning with cover images */
.band-card.has-cover-image::before {
  z-index: 2;
  border-radius: 16px 0 0 0;
}

.biz-card.has-cover-image::before {
  z-index: 2;
  border-radius: 16px 0 0 0;
}

/* ============================================
   BUSINESSES SECTION
   ============================================ */
.businesses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* List view for businesses */
.businesses-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.businesses-grid.list-view .biz-card {
  border-radius: 12px;
}

.businesses-grid.list-view .biz-card-inner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.businesses-grid.list-view .biz-header {
  margin-bottom: 0;
  min-width: 200px;
  flex: 1;
}

.businesses-grid.list-view .biz-meta {
  margin-bottom: 0;
}

.businesses-grid.list-view .biz-address,
.businesses-grid.list-view .biz-phone,
.businesses-grid.list-view .biz-notes {
  display: none;
}

.biz-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1), background var(--theme-transition), border-color var(--theme-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Category color accent strip */
.biz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, var(--color-primary));
  transition: width 0.3s ease;
  border-radius: 16px 0 0 16px;
}

.biz-card-inner {
  padding: 22px 22px 18px 26px;
}

a.biz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px var(--card-hover-shadow);
  border-color: var(--color-primary-light);
  color: inherit;
  text-decoration: none;
}

a.biz-card:hover::before {
  width: 5px;
}

[data-theme="night"] a.biz-card:hover {
  box-shadow: 0 10px 32px var(--card-hover-shadow), 0 0 16px rgba(16, 224, 208, 0.05);
}

.biz-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.biz-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--theme-transition);
  margin: 0;
}

.biz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.biz-tag {
  display: inline-block;
  padding: 3px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--theme-transition);
  border: 1px solid transparent;
}

/* Category color variants */
.cat-coffee     { background: rgba(180, 83, 9, 0.1); color: #92400e; border-color: rgba(180, 83, 9, 0.15); }
.cat-bar        { background: rgba(217, 119, 6, 0.1); color: #b45309; border-color: rgba(217, 119, 6, 0.15); }
.cat-restaurant { background: rgba(239, 68, 68, 0.1); color: #dc2626; border-color: rgba(239, 68, 68, 0.15); }
.cat-retail     { background: rgba(59, 130, 246, 0.1); color: #2563eb; border-color: rgba(59, 130, 246, 0.15); }
.cat-fitness    { background: rgba(34, 197, 94, 0.1); color: #16a34a; border-color: rgba(34, 197, 94, 0.15); }
.cat-brewery    { background: rgba(249, 115, 22, 0.1); color: #ea580c; border-color: rgba(249, 115, 22, 0.15); }
.cat-salon      { background: rgba(236, 72, 153, 0.1); color: #db2777; border-color: rgba(236, 72, 153, 0.15); }
.cat-arts       { background: rgba(168, 85, 247, 0.1); color: #9333ea; border-color: rgba(168, 85, 247, 0.15); }
.cat-services   { background: rgba(100, 116, 139, 0.1); color: #475569; border-color: rgba(100, 116, 139, 0.15); }
.cat-default    { background: var(--surface-glow); color: var(--color-accent-dark); border-color: var(--surface-border); }

/* Night category adjustments */
[data-theme="night"] .cat-coffee     { background: rgba(180, 83, 9, 0.15); color: #fbbf24; }
[data-theme="night"] .cat-bar        { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
[data-theme="night"] .cat-restaurant { background: rgba(239, 68, 68, 0.15); color: #f87171; }
[data-theme="night"] .cat-retail     { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
[data-theme="night"] .cat-fitness    { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
[data-theme="night"] .cat-brewery    { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
[data-theme="night"] .cat-salon      { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
[data-theme="night"] .cat-arts       { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
[data-theme="night"] .cat-services   { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
[data-theme="night"] .cat-default    { color: var(--color-accent-light); }

/* District badge */
.district-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--surface-glow);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  letter-spacing: 0.02em;
  transition: all var(--theme-transition);
}

.district-badge::before {
  content: '📍';
  font-size: 0.7rem;
}

.biz-address {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 6px;
  transition: color var(--theme-transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.biz-phone {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 4px;
  transition: color var(--theme-transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Pet-friendly badge */
.biz-pets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(251, 191, 36, 0.1);
  color: #92400e;
  border: 1px solid rgba(251, 191, 36, 0.2);
  transition: all var(--theme-transition);
}

[data-theme="night"] .biz-pets {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

.biz-pets::before {
  content: '🐾';
  font-size: 0.85rem;
}

/* ── Enriched business fields (Google Places data) ── */
.biz-enrich-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
}

.biz-rating {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 3px;
}

.biz-review-count {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.78rem;
}

.biz-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
}

[data-theme="night"] .biz-price {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
}

.biz-open-status {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 7px;
}

.biz-open-status.is-open {
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.biz-open-status.is-closed {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

[data-theme="night"] .biz-open-status.is-open {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
}

[data-theme="night"] .biz-open-status.is-closed {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
}

.biz-services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.biz-service-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-surface-alt, rgba(128,128,128,0.08));
  border: 1px solid var(--color-border, rgba(128,128,128,0.15));
  border-radius: 20px;
  padding: 2px 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Load More button */
.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  color: var(--color-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.load-more-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 176, 176, 0.3);
}

[data-theme="night"] .load-more-btn:hover {
  box-shadow: 0 6px 24px rgba(16, 224, 208, 0.25);
}

.load-more-btn .count-badge {
  font-size: 0.75rem;
  background: var(--surface-glow);
  padding: 2px 8px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.load-more-btn:hover .count-badge {
  background: rgba(255,255,255,0.2);
}

/* ============================================
   DISCOVER CARDS
   ============================================ */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.discover-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), background var(--theme-transition), border-color var(--theme-transition);
  position: relative;
}

.discover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--card-hover-shadow);
}

.discover-card.featured {
  grid-column: 1 / -1;
}

.discover-card.featured .card-image {
  height: 300px;
}

.card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.placeholder-img {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-accent));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all var(--theme-transition);
  position: relative;
}

.placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.3));
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.placeholder-text {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Cover image overlay for spotlights with photos */
.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
  z-index: 1;
}

.discover-card.has-cover .card-content {
  position: relative;
  z-index: 2;
}

/* Date range badge on cards */
.card-date {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.card-content {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--surface-glow);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--theme-transition);
  border: 1px solid var(--surface-border);
}

.card-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color var(--theme-transition);
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color var(--theme-transition);
}

/* ============================================
   EVENTS
   ============================================ */
.events-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  margin-bottom: 16px;
  transition: all 0.35s ease, background var(--theme-transition), border-color var(--theme-transition);
  position: relative;
  overflow: hidden;
}

.event-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-text);
  border-radius: 16px 0 0 16px;
}

.event-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 24px var(--card-hover-shadow);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 12px;
  background: var(--surface-glow);
  border-radius: 12px;
  transition: background var(--theme-transition);
  border: 1px solid var(--surface-border);
}

.event-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--theme-transition);
}

.event-day {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: color var(--theme-transition);
}

.event-details h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  transition: color var(--theme-transition);
}

.event-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color var(--theme-transition);
}

/* Coming soon event special styling */
.event-coming-soon {
  text-align: center;
  padding: 48px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px dashed var(--surface-border);
}

.event-coming-soon::before {
  display: none;
}

.event-coming-soon .event-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.event-coming-soon h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.event-coming-soon p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Event card grid for new events system */
.events-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-primary);
  transition: color var(--theme-transition);
}

.events-group-title:first-child {
  margin-top: 0;
}

.event-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  margin-bottom: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1), background var(--theme-transition), border-color var(--theme-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Category-based accent colors */
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.event-live-music::before { background: #ef4444; }
.event-watch-party::before { background: #3b82f6; }
.event-festival::before { background: #22c55e; }
.event-art::before { background: #9333ea; }
.event-comedy::before { background: #eab308; }
.event-food-drink::before { background: #f97316; }
.event-community::before { background: #ec4899; }
.event-other::before { background: #6b7280; }

.event-card-inner {
  padding: 20px 24px;
}

a.event-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 8px 30px var(--card-hover-shadow), 0 0 0 1px var(--surface-border);
  border-color: var(--color-primary-light);
  color: inherit;
  text-decoration: none;
}

a.event-card:hover::before {
  width: 6px;
}

[data-theme="night"] a.event-card:hover {
  box-shadow: 0 8px 30px var(--card-hover-shadow), 0 0 15px rgba(16, 224, 208, 0.08);
}

.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--surface-glow);
  border-radius: 50px;
  border: 1px solid var(--surface-border);
  transition: all var(--theme-transition);
}

.event-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  padding: 3px 10px;
  background: rgba(16, 176, 176, 0.1);
  border-radius: 50px;
  transition: all var(--theme-transition);
}

.event-featured {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: 3px 8px;
  background: rgba(240, 192, 96, 0.15);
  border-radius: 50px;
  border: 1px solid rgba(240, 192, 96, 0.3);
  transition: all var(--theme-transition);
}

.event-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color var(--theme-transition);
  line-height: 1.3;
}

.event-venue {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: color var(--theme-transition);
}

.event-neighborhood {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--theme-transition);
}

.event-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  transition: color var(--theme-transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.event-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--theme-transition);
}

.card-link-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.8;
  transition: all 0.3s ease, color var(--theme-transition);
}

a.event-card:hover .card-link-hint {
  opacity: 1;
  color: var(--color-primary);
}

/* Responsive event cards */
@media (max-width: 768px) {
  .event-card-inner {
    padding: 16px 20px;
  }

  .event-name {
    font-size: 1.05rem;
  }

  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .event-meta {
    flex-wrap: wrap;
  }

  .events-group-title {
    font-size: 1rem;
    margin: 24px 0 12px 0;
  }
}

/* ============================================
   COMMUNITY
   ============================================ */
.community-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.community-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 28px;
  transition: color var(--theme-transition);
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(16, 176, 176, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(16, 176, 176, 0.4);
  color: white;
}

[data-theme="night"] .btn-primary {
  box-shadow: 0 4px 24px rgba(16, 224, 208, 0.25);
}

[data-theme="night"] .btn-primary:hover {
  box-shadow: 0 8px 36px rgba(16, 224, 208, 0.35), 0 0 40px rgba(16, 224, 208, 0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  padding: 60px 0 24px;
  transition: background var(--theme-transition);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand .logo-day,
.footer-brand .logo-night {
  position: relative;
}

.footer-brand .logo-night {
  position: absolute;
  left: 0;
}

.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--footer-text);
  transition: color var(--theme-transition);
}

.footer-name .brand-accent {
  color: var(--color-primary-light);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, color var(--theme-transition);
  font-weight: 500;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--footer-text);
}

.footer-tagline {
  color: var(--footer-text);
  font-size: 0.9rem;
  opacity: 0.4;
  transition: color var(--theme-transition);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--footer-text);
  font-size: 0.8rem;
  opacity: 0.35;
  transition: color var(--theme-transition);
}

/* ============================================
   DISCOVER CARD GRADIENTS (for dynamic content)
   ============================================ */
.spotlight-gradient {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-accent)) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 8s ease infinite !important;
}

.article-gradient {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-primary-dark), var(--color-accent)) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 8s ease infinite !important;
}

a.discover-card {
  text-decoration: none;
  color: inherit;
}

a.discover-card:hover {
  color: inherit;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 60px 20px;
  grid-column: 1 / -1;
  transition: color var(--theme-transition);
  font-weight: 300;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for cards */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.30s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.40s; }
.stagger-9 { transition-delay: 0.45s; }
.stagger-10 { transition-delay: 0.50s; }
.stagger-11 { transition-delay: 0.55s; }
.stagger-12 { transition-delay: 0.60s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.4s ease, background var(--theme-transition);
    box-shadow: 0 8px 24px var(--nav-shadow);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hero-logo-container {
    width: 160px;
    height: 160px;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .hero-time-indicator {
    right: 20px;
    bottom: 80px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .discover-grid {
    grid-template-columns: 1fr;
  }

  .event-item {
    flex-direction: column;
    gap: 16px;
  }

  .bands-grid {
    grid-template-columns: 1fr;
  }

  .businesses-grid {
    grid-template-columns: 1fr;
  }

  .section-controls {
    flex-direction: column;
    gap: 10px;
  }

  .filter-bar {
    margin-bottom: 12px;
  }

  .view-toggle-group {
    margin-left: 0;
  }

  .section-divider {
    height: 50px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero-logo-container {
    width: 130px;
    height: 130px;
  }

  .hero-logo {
    width: 130px;
    height: 130px;
  }

  .section {
    padding: 60px 0;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .bands-grid {
    gap: 16px;
  }

  .businesses-grid {
    gap: 12px;
  }
}

/* ============================================
   NIGHT THEME NEON ENHANCEMENTS
   ============================================ */
[data-theme="night"] .about-card:hover {
  box-shadow: 0 16px 48px var(--glass-shadow), 0 0 24px rgba(16, 224, 208, 0.06);
}

[data-theme="night"] .discover-card:hover {
  box-shadow: 0 16px 48px var(--card-hover-shadow), 0 0 20px rgba(16, 224, 208, 0.06);
}

[data-theme="night"] .event-item:hover {
  box-shadow: 0 6px 24px var(--card-hover-shadow), 0 0 16px rgba(16, 224, 208, 0.04);
}

[data-theme="night"] .community-cta {
  box-shadow: 0 0 32px rgba(16, 224, 208, 0.04);
}

/* Night mode nav glow */
[data-theme="night"] .nav {
  border-bottom-color: rgba(16, 224, 208, 0.08);
}

/* Night mode footer subtle glow */
[data-theme="night"] .footer {
  box-shadow: 0 -1px 0 rgba(16, 224, 208, 0.06);
}

/* ══════════════════════════════════════════════
   AUTH — Nav Sign In / User Menu
   ══════════════════════════════════════════════ */
.nav-signin-btn {
  background: var(--color-primary, #10E0D0);
  color: #0a0a0f;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-signin-btn:hover { opacity: 0.85; }

.nav-user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background 0.2s;
}
.nav-avatar-btn:hover { background: rgba(255,255,255,0.08); }

.nav-user-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary, #10E0D0);
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-chevron {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  transition: transform 0.2s;
}

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-surface, #1a1a2e);
  border: 1px solid var(--color-border, rgba(255,255,255,0.1));
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1000;
  overflow: hidden;
}
.nav-user-dropdown.open { display: block; }

.nav-user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-user-dropdown a:hover { background: rgba(255,255,255,0.06); }

/* ══════════════════════════════════════════════
   AUTH — Modals
   ══════════════════════════════════════════════ */
.wr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.wr-modal-overlay.open { display: flex; }

.wr-modal {
  background: var(--color-surface, #13131f);
  border: 1px solid var(--color-border, rgba(255,255,255,0.1));
  border-radius: 20px;
  padding: 36px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.wr-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.wr-modal-close:hover { background: rgba(255,255,255,0.08); color: var(--color-text); }

.wr-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.wr-modal-logo { font-size: 2.5rem; margin-bottom: 8px; }
.wr-modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-text);
}
.wr-modal-header p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

/* FirebaseUI overrides */
#firebaseui-auth-container .firebaseui-container { background: transparent !important; box-shadow: none !important; }
#firebaseui-auth-container .firebaseui-card-content { padding: 0 !important; }
#firebaseui-auth-container .firebaseui-card-header { display: none !important; }
#firebaseui-auth-container .firebaseui-card-actions { padding: 0 !important; }
#firebaseui-auth-container .firebaseui-idp-button {
  border-radius: 10px !important;
  margin-bottom: 10px !important;
}
#firebaseui-auth-container .firebaseui-idp-text { font-family: 'Space Grotesk', sans-serif !important; }
#firebaseui-auth-container .mdl-button--raised.mdl-button--colored {
  background: var(--color-primary, #10E0D0) !important;
  color: #0a0a0f !important;
}

/* Profile modal */
.profile-photo-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary, #10E0D0);
  margin: 0 auto 12px;
  display: block;
}
.profile-section {
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
  padding: 16px 0;
}
.profile-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

/* Day theme adjustments */
[data-theme="day"] .wr-modal { background: #ffffff; border-color: rgba(0,0,0,0.1); }
[data-theme="day"] .nav-user-dropdown { background: #ffffff; border-color: rgba(0,0,0,0.1); }
[data-theme="day"] .nav-user-dropdown a:hover { background: rgba(0,0,0,0.05); }
[data-theme="day"] .nav-avatar-btn:hover { background: rgba(0,0,0,0.05); }
