
/* 1. Thumbnail wrapper must be relative */
.nifaq-thumb-wrapper {
  position: relative;
}

/* 2. Headphone Icon - Floating on bottom-right */
.nifaq-headphone-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* 3. Headphone Icon SVG */
.nifaq-headphone-icon .bde-icon-atom {
  width: 22px;
  height: 22px;
  fill: currentColor;
  color: #222;
}

/* 4. Pulse Animation when audio is playing */
.nifaq-headphone-icon.is-pulsing .bde-icon-atom {
  animation: pulse-icon 1.4s ease-in-out infinite;
  transform-origin: center;
}

/* 5. Define Pulse Keyframes */
@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* 6. Tooltip styling for waveform */
.nifaq-tooltip {
  position: absolute;
  top: -28px;
  font-size: 12px;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 12;
  white-space: nowrap;
}

/* 7. Cognition mode adjustments (optional) */
body.cognition-mode .nifaq-audio-player {
  filter: contrast(1.2) saturate(1.1);
}

/* 8. Optional dark mode styles */
body.dark-mode .nifaq-audio-player {
  background-color: #111;
  color: #f0f0f0;
}

body.dark-mode .nifaq-controls button svg {
  fill: #eee;
}

.nifaq-featured-image img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

