/* Hece Davulu - Activity-specific styles only.
   Shared styles (layout, feedback, typography) come from shared/css/.
   Use CSS custom properties from variables.css for all colors, spacing, fonts.
   See docs/DESIGN-SYSTEM.md for the full design language. */

/* Word display area - word text */
.word-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.word-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: var(--letter-spacing);
}

.word-syllable {
  display: inline-block;
  color: var(--color-primary);
  transition:
    color var(--duration-fast) var(--easing-smooth),
    transform var(--duration-fast) var(--easing-smooth),
    text-shadow var(--duration-fast) var(--easing-smooth);
}

.word-syllable.is-active {
  color: var(--color-correct);
  transform: translateY(-2px);
  text-shadow: var(--shadow-glow-correct);
}

/* Drum wrapper - centers the drum in the content area */
.drum-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
}

/* Drum button - main tap target */
.drum {
  position: relative;
  width: 280px;
  height: 260px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--easing-smooth);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.drum:hover {
  transform: scale(1.05);
}

.drum:active {
  transform: scale(0.95);
}

/* Drum hit animation */
.drum.drum-hit {
  animation: drumBounce var(--duration-normal) var(--easing-bounce);
}

@keyframes drumBounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.88); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Drum visual - CSS-drawn drum */
.drum-body {
  position: relative;
  width: 100%;
  height: 100%;
}

.drum-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 60px;
  background: var(--color-encourage);
  border-radius: 50%;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.drum-side {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
  background: linear-gradient(180deg, var(--color-secondary), #e05555);
  border-radius: 0 0 20px 20px;
  z-index: 1;
}

.drum-zigzag {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 40px;
  z-index: 2;
  background:
    linear-gradient(135deg, var(--color-encourage) 25%, transparent 25%) -20px 0,
    linear-gradient(225deg, var(--color-encourage) 25%, transparent 25%) -20px 0,
    linear-gradient(315deg, var(--color-encourage) 25%, transparent 25%),
    linear-gradient(45deg, var(--color-encourage) 25%, transparent 25%);
  background-size: 40px 40px;
  background-color: transparent;
  opacity: 0.4;
}

/* Syllable counter dots */
.syllable-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  min-height: 48px;
}

.syllable-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-deco-purple);
  background: var(--color-bg-light);
  transition: all var(--duration-normal) var(--easing-smooth);
}

.syllable-dot.filled {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.syllable-dot.correct {
  background: var(--color-correct);
  border-color: var(--color-correct);
  box-shadow: var(--shadow-glow-correct);
}

.syllable-dot.demo {
  background: var(--color-encourage);
  border-color: var(--color-encourage);
  box-shadow: var(--shadow-glow-star);
}

/* Tap count display - shows current tap count visually */
.tap-count-display {
  text-align: center;
  margin-top: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  min-height: 2.5rem;
}

/* Content area layout override for drum game */
.content-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
}

/* Answer area hidden for this activity */
.answer-area {
  display: none;
}

/* Drum celebration animation on correct answer */
.drum.drum-celebrate {
  animation: drumCelebrate 0.8s var(--easing-bounce);
}

@keyframes drumCelebrate {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-3deg); }
  50% { transform: scale(1.1) rotate(3deg); }
  75% { transform: scale(1.12) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Waiting state - subtle pulse to invite tapping */
.drum.waiting {
  animation: drumPulse 2s ease-in-out infinite;
}

@keyframes drumPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Round transition fade */
.content-area.fade-out {
  opacity: 0;
  transition: opacity var(--duration-normal) var(--easing-smooth);
}

.content-area.fade-in {
  opacity: 1;
  transition: opacity var(--duration-normal) var(--easing-smooth);
}
