/* Dr.Gray & Mrs.Dr.Gray 🖤 — Next-Level CSS Enhancement Layer
 * Diese Datei wird NEBEN style.css geladen und erweitert das bestehende Design
 * OHNE die Struktur zu verändern.
 * Einbindung: <link rel="stylesheet" href="style-nextlevel.css">
 */

/* ===== 1. AUDIO VISUALIZER ANIMATION (CSS-only, im Hintergrund) ===== */
.audio-viz-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 10%;
}

.audio-viz-bar {
  flex: 1;
  background: linear-gradient(to top, var(--gold), transparent);
  border-radius: 4px 4px 0 0;
  animation: vizDance 1.2s ease-in-out infinite alternate;
  min-width: 2px;
  max-width: 8px;
}

.audio-viz-bar:nth-child(odd) { animation-duration: 0.8s; animation-delay: 0.1s; }
.audio-viz-bar:nth-child(3n)  { animation-duration: 1.0s; animation-delay: 0.2s; }
.audio-viz-bar:nth-child(4n)  { animation-duration: 1.4s; animation-delay: 0.05s; }
.audio-viz-bar:nth-child(5n)  { animation-duration: 0.9s; animation-delay: 0.15s; }
.audio-viz-bar:nth-child(7n)  { animation-duration: 1.1s; animation-delay: 0.3s; }

@keyframes vizDance {
  0%   { height: 15%; opacity: 0.3; }
  50%  { height: 55%; opacity: 0.8; }
  100% { height: 90%; opacity: 1.0; }
}

/* ===== 2. NEON GOLDEN GLOW EFFECTS ===== */
.neon-glow {
  position: relative;
}

.neon-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.4s ease;
}

.neon-glow:hover::before {
  opacity: 0.4;
}

/* Hero Title extra Glow */
.hero-title {
  text-shadow:
    0 0 20px rgba(245, 200, 76, 0.15),
    0 0 40px rgba(245, 200, 76, 0.08),
    0 0 80px rgba(245, 200, 76, 0.04);
}

/* ===== 3. 3D TILT PRODUCT CARDS ===== */
.merch-card,
.catalog-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merch-card:hover,
.catalog-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(245, 200, 76, 0.1);
}

/* ===== 4. GLITCH TEXT EFFECT (für Überschriften, optional) ===== */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch1 0.3s ease;
  color: #ff0040;
  opacity: 0.7;
}

.glitch-text:hover::after {
  animation: glitch2 0.3s ease;
  color: #00ff9f;
  opacity: 0.7;
}

@keyframes glitch1 {
  0%   { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  20%  { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  40%  { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
  60%  { clip-path: inset(80% 0 10% 0); transform: translate(2px, 0); }
  80%  { clip-path: inset(10% 0 80% 0); transform: translate(-1px, 0); }
  100% { clip-path: inset(50% 0 50% 0); transform: translate(0, 0); }
}

@keyframes glitch2 {
  0%   { clip-path: inset(10% 0 80% 0); transform: translate(3px, 0); }
  20%  { clip-path: inset(80% 0 10% 0); transform: translate(-3px, 0); }
  40%  { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
  60%  { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 0); }
  80%  { clip-path: inset(70% 0 20% 0); transform: translate(1px, 0); }
  100% { clip-path: inset(40% 0 60% 0); transform: translate(0, 0); }
}

/* ===== 5. SCROLL-TRIGGERED REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-fade.visible {
  opacity: 1;
}

/* Staggered delays for grids */
.reveal-up:nth-child(1) { transition-delay: 0.0s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }
.reveal-up:nth-child(5) { transition-delay: 0.4s; }
.reveal-up:nth-child(6) { transition-delay: 0.5s; }

/* ===== 6. PULSE LIVE DOT ===== */
.live-dot {
  animation: livePulse 2s ease-in-out infinite;
}

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

/* ===== 7. SMOOTH MARQUEE BANNER ===== */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.live-banner-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeScroll 20s linear infinite;
}

.live-banner:hover .live-banner-track {
  animation-play-state: paused;
}

/* ===== 8. BEAT-MATCHED BORDER PULSE ===== */
@keyframes borderPulse {
  0%, 100% { border-color: rgba(255, 215, 0, 0.22); }
  50%      { border-color: rgba(255, 215, 0, 0.55); }
}

.hero .eyebrow {
  animation: borderPulse 2s ease-in-out infinite;
}

/* ===== 9. LOADING SKELETON SHIMMER ===== */
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 10. CUSTOM CURSOR GLOW ===== */
@media (pointer: fine) {
  body {
    cursor: default;
  }

  .hero::after,
  .page-content::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 200, 76, 0.08), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  body:hover .hero::after,
  body:hover .page-content::after {
    opacity: 1;
  }
}

/* ===== 11. BASS DROP SHADOW ON BUTTONS ===== */
.btn-primary {
  box-shadow:
    0 4px 15px rgba(245, 200, 76, 0.2),
    0 0 0 1px rgba(245, 200, 76, 0.1) inset;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  box-shadow:
    0 8px 30px rgba(245, 200, 76, 0.35),
    0 0 0 1px rgba(245, 200, 76, 0.2) inset;
  transform: translateY(-2px) scale(1.02);
}

/* ===== 12. EQUALIZER ICON ANIMATION ===== */
.eq-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.eq-bar {
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: eqBounce 0.6s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.eq-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 90%; animation-delay: 0.05s; }
.eq-bar:nth-child(5) { height: 40%; animation-delay: 0.15s; }

@keyframes eqBounce {
  0%   { transform: scaleY(0.4); }
  100% { transform: scaleY(1.0); }
}

/* ===== 13. GRADIENT TEXT (für Highlights) ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-strong), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 14. SCANLINE OVERLAY (subtil, cinematic) ===== */
.scanlines::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* ===== 15. RESPONSIVE REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .audio-viz-bar,
  .live-dot,
  .live-banner-track,
  .hero .eyebrow,
  .skeleton-shimmer,
  .eq-bar {
    animation: none !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .merch-card:hover,
  .catalog-card:hover {
    transform: translateY(-3px);
  }
}
