/* ============================================
   Whit Did Ye Say? | Audio Component A
   Orange circle player, used everywhere.
   Idle pulse, equalizer bars, bounce on end.
   ============================================ */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .audio-btn { animation: none !important; }
  .audio-btn::after { animation: none !important; }
  .eq-bars span { animation: none !important; }
}

/* Base button */
.audio-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #F97316;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: audio-idle-pulse 2.5s ease-in-out infinite;
}

.audio-btn.audio-btn--large {
  width: 64px;
  height: 64px;
  min-width: 64px;
}

/* Idle pulse */
@keyframes audio-idle-pulse {
  0%, 100% { transform: scale(1.00); }
  50% { transform: scale(1.03); }
}

/* Hover glow ring */
.audio-btn:hover {
  box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.28);
  animation: none;
  transform: scale(1.05);
}

/* Playing state */
.audio-btn.is-playing {
  animation: none;
  transform: scale(1.0);
}

.audio-btn.is-playing:hover {
  box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.28);
}

/* End bounce */
.audio-btn.audio-end-bounce {
  animation: audio-end-bounce 250ms ease forwards;
}

@keyframes audio-end-bounce {
  0% { transform: scale(1.0); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1.0); }
}

/* Icon container */
.audio-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Play triangle: visible when idle */
.play-icon {
  display: block;
}

.audio-btn.is-playing .play-icon {
  display: none;
}

/* Equalizer bars: hidden when idle, visible when playing */
.eq-bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 18px;
}

.audio-btn.is-playing .eq-bars {
  display: flex;
}

.eq-bars span {
  display: block;
  width: 3px;
  background: white;
  border-radius: 2px;
  animation: eq-bar 0.8s ease-in-out infinite;
}

.eq-bars span:nth-child(1) {
  height: 10px;
  animation-delay: 0s;
  animation-duration: 0.7s;
}

.eq-bars span:nth-child(2) {
  height: 18px;
  animation-delay: 0.15s;
  animation-duration: 0.9s;
}

.eq-bars span:nth-child(3) {
  height: 12px;
  animation-delay: 0.3s;
  animation-duration: 0.75s;
}

@keyframes eq-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.0); }
}

/* ============================================
   Insult Hub Page Styles
   ============================================ */

/* Hero */
.insult-hub-hero {
  padding: 64px 0 48px;
  background: var(--bg-dark, #0B0F1A);
}

.insult-hub-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.insult-hub-hero-text {
  flex: 1;
}

.insult-hub-h1 {
  font-family: 'Lilita One', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.insult-hub-intro {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  color: #B0BEC5;
  line-height: 1.7;
  margin-bottom: 16px;
}

.insult-hub-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.insult-hub-mascot {
  flex-shrink: 0;
}

.insult-hub-mascot img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .insult-hub-hero-inner {
    flex-direction: column-reverse;
    gap: 24px;
  }
  .insult-hub-mascot img {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: block;
  }
}

/* Buttons */
.btn-orange-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #F97316;
  color: #fff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-orange-solid:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: #5B9BD5;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(91, 155, 213, 0.4);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: #5B9BD5;
  color: #fff;
}

/* Category jump nav */
.cat-jump-nav {
  background: rgba(17, 24, 39, 0.8);
  border-top: 1px solid rgba(91, 155, 213, 0.1);
  border-bottom: 1px solid rgba(91, 155, 213, 0.1);
  padding: 12px 0;
  position: sticky;
  top: 64px;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.cat-jump-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-jump-link {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9FB3C8;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(91, 155, 213, 0.2);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cat-jump-link:hover {
  color: #fff;
  border-color: #5B9BD5;
  background: rgba(91, 155, 213, 0.1);
}

/* Categories wrap with tartan texture */
.insult-categories-wrap {
  background-image: url('/assets/wdys_texture_tartan.png');
  background-repeat: repeat;
  background-size: 400px;
  background-blend-mode: overlay;
  position: relative;
}

.insult-categories-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.93);
  pointer-events: none;
  z-index: 0;
}

.insult-category {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
}

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

.cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.cat-title {
  font-family: 'Lilita One', cursive;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.cat-pill {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5B9BD5;
  background: rgba(26, 95, 180, 0.15);
  border: 1px solid rgba(91, 155, 213, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
}

.cat-blurb {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.95rem;
  color: #9FB3C8;
  font-style: italic;
  margin-bottom: 24px;
}

.cat-empty {
  font-family: 'League Spartan', sans-serif;
  color: #6B7B8D;
  font-style: italic;
  padding: 24px 0;
}

/* Insult grid */
.insult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* Insult card */
.insult-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, #111827 0%, #0D1320 100%);
  border: 1px solid rgba(91, 155, 213, 0.15);
  border-radius: 14px;
  padding: 16px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.insult-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(26, 95, 180, 0.35);
}

.insult-card-text {
  flex: 1;
  min-width: 0;
}

.insult-scottish {
  font-family: 'Lilita One', cursive;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.insult-english {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.88rem;
  color: #9FB3C8;
  font-style: italic;
  line-height: 1.4;
}

.insult-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Send link */
.send-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.1);
  border: 1px solid rgba(91, 155, 213, 0.2);
  color: #5B9BD5;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.send-link:hover {
  background: rgba(91, 155, 213, 0.25);
  color: #fff;
}

/* Knot divider */
.knot-divider {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 0;
  overflow: hidden;
}

.knot-divider img {
  width: 100%;
  max-width: 1200px;
  height: 48px;
  object-fit: cover;
  opacity: 0.35;
  display: block;
  margin: 0 auto;
}

/* Footer CTA */
.insult-hub-footer-cta {
  padding: 64px 0;
}

.insult-cta-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, #111827 0%, #0E1525 100%);
  border: 1px solid rgba(91, 155, 213, 0.2);
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 800px;
  margin: 0 auto;
}

.insult-cta-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.insult-cta-text p {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  color: #B0BEC5;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .insult-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .insult-grid {
    grid-template-columns: 1fr;
  }
}
