/* ============================================
   Personata Studios - Homepage Overhaul Components
   Supplementary CSS for sonic branding showcase
   ============================================ */

/* ===========================================
   1. WAVE DIVIDER
   Full-width animated waveform between sections
   =========================================== */
.wave-divider {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 120px;
  margin-top: -30px;
  margin-bottom: -30px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.wave-divider canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===========================================
   2. INLINE AUDIO SHOWCASE
   Full-width cards replacing audio grid
   =========================================== */
.inline-audio-section {
  padding: 80px 0;
}

.inline-audio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inline-audio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.inline-audio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0), rgba(212, 168, 67, 0));
  transition: background 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.inline-audio.playing::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.06), transparent 70%);
}

.inline-audio.playing {
  border-color: rgba(212, 168, 67, 0.25);
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.08);
}

.inline-audio:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

/* Left: play button + info */
.inline-audio__left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  min-width: 180px;
}

.inline-audio__play {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--bg-primary);
  font-size: 1.2rem;
}

.inline-audio__play:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}

.inline-audio__play svg {
  width: 22px;
  height: 22px;
  fill: var(--bg-primary);
}

.inline-audio__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inline-audio__brand {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.inline-audio__industry {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Center: waveform visualization */
.inline-audio__wave {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.inline-audio__wave canvas {
  width: 200px;
  height: 48px;
  display: block;
}

/* Right: track selector pills */
.inline-audio__tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  position: relative;
  z-index: 1;
  width: 260px;
  min-width: 260px;
}

.track-pill {
  padding: 5px 12px;
  border-radius: 50px;
  text-align: center;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.track-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
}

.track-pill.active {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* ===========================================
   3. CREDIBILITY BAR
   Full-width trust strip with counters
   =========================================== */
.cred-bar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(180deg, rgba(212, 168, 67, 0.04) 0%, var(--bg-secondary) 50%, rgba(212, 168, 67, 0.04) 100%);
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.cred-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 100%;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cred-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cred-bar__item {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.cred-bar__text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.cred-bar__item + .cred-bar__item::before {
  content: '\00B7';
  color: rgba(212, 168, 67, 0.3);
  font-size: 1.5rem;
  margin-right: 24px;
  line-height: 1;
}

.cred-bar__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 10px;
  animation: icon-pulse 3s ease-in-out infinite;
}

.cred-bar__item:nth-child(2) .cred-bar__icon { animation-delay: 0.5s; }
.cred-bar__item:nth-child(3) .cred-bar__icon { animation-delay: 1s; }
.cred-bar__item:nth-child(4) .cred-bar__icon { animation-delay: 1.5s; }

@keyframes icon-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.15);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(212, 168, 67, 0.12);
  }
}

.cred-bar__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.cred-bar__label .cred-number {
  color: var(--gold);
  font-weight: 800;
}

.cred-bar__divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ===========================================
   4. QUIZ TEASER
   Interactive quiz call-to-action card
   =========================================== */
.quiz-teaser {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
  margin: 40px 0;
}

.quiz-teaser canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.quiz-teaser__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.quiz-teaser__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.quiz-teaser h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.quiz-teaser h2 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-teaser__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.quiz-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.quiz-teaser__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 168, 67, 0.3);
  color: var(--bg-primary);
}

.quiz-teaser__cta svg {
  width: 18px;
  height: 18px;
  fill: var(--bg-primary);
  transition: transform var(--transition);
}

.quiz-teaser__cta:hover svg {
  transform: translateX(3px);
}

/* ===========================================
   5. MEGA WAVE
   Scroll-reactive full-width waveform
   =========================================== */
.mega-wave {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 200px;
  margin-top: -20px;
  margin-bottom: -20px;
  z-index: 2;
  overflow: hidden;
}

.mega-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Gradient fade edges for seamless blend */
.mega-wave::before,
.mega-wave::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.mega-wave::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.mega-wave::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}


/* ===========================================
   RESPONSIVE: 1024px
   =========================================== */
@media (max-width: 1024px) {

  /* Inline audio */
  .inline-audio {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 24px;
  }

  .inline-audio__left {
    min-width: 0;
  }

  .inline-audio__wave canvas {
    width: 160px;
  }

  .inline-audio__tracks {
    min-width: 0;
    justify-content: flex-start;
  }

  /* Cred bar */
  .cred-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .cred-bar__divider {
    display: none;
  }

  .cred-bar__item {
    flex: 0 0 calc(50% - 12px);
    justify-content: center;
  }

  /* Quiz teaser */
  .quiz-teaser {
    padding: 60px 40px;
  }

  /* Mega wave */
  .mega-wave {
    height: 160px;
  }
}


/* ===========================================
   RESPONSIVE: 768px
   =========================================== */
@media (max-width: 768px) {

  /* Wave divider */
  .wave-divider {
    height: 80px;
    margin-top: -20px;
    margin-bottom: -20px;
  }

  /* Inline audio */
  .inline-audio {
    padding: 16px 18px;
    gap: 12px;
  }

  .inline-audio__left {
    gap: 12px;
  }

  .inline-audio__play {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1rem;
  }

  .inline-audio__play svg {
    width: 18px;
    height: 18px;
  }

  .inline-audio__brand {
    font-size: 0.92rem;
  }

  .inline-audio__wave {
    justify-content: flex-start;
  }

  .inline-audio__wave canvas {
    width: 100%;
    max-width: 200px;
    height: 36px;
  }

  .inline-audio__tracks {
    gap: 6px;
  }

  .track-pill {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  /* Cred bar */
  .cred-bar {
    padding: 24px 16px;
  }

  .cred-bar__item {
    flex: 0 0 100%;
    justify-content: flex-start;
  }

  .cred-bar__label {
    font-size: 0.8rem;
  }

  .cred-bar__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }

  /* Quiz teaser */
  .quiz-teaser {
    padding: 48px 24px;
    margin: 24px 0;
    border-radius: var(--radius);
  }

  .quiz-teaser h2 {
    font-size: 1.6rem;
  }

  .quiz-teaser__subtitle {
    font-size: 0.95rem;
  }

  .quiz-teaser__cta {
    padding: 14px 32px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  /* Mega wave */
  .mega-wave {
    height: 120px;
    margin-top: -10px;
    margin-bottom: -10px;
  }

  .mega-wave::before,
  .mega-wave::after {
    width: 60px;
  }
}
