/* Hece Müziği - Orff Schulwerk Style */

.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 20px;
}

/* Melodi Display */
.melody-display {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius-xl);
  padding: 30px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
}

.word-emoji {
  font-size: 4rem;
  margin-bottom: 15px;
}

.melody-notes {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.note-display {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.note-display.playing {
  transform: scale(1.3);
  box-shadow: 0 0 30px currentColor;
}

.note-display.completed {
  background: var(--success);
  border-color: var(--success);
}

.listen-btn {
  font-size: 1.1rem;
  padding: 12px 30px;
}

.listen-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Piyano Tuşları */
.piano-container {
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  padding: 20px 30px 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.piano-keys {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.piano-key {
  width: 70px;
  height: 120px;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

.piano-key::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  border-radius: 0 0 5px 5px;
}

.piano-key:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.piano-key:active,
.piano-key.pressed {
  transform: translateY(5px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);
}

.piano-key.correct {
  animation: correctFlash 0.5s ease;
}

.piano-key.wrong {
  animation: wrongShake 0.5s ease;
}

@keyframes correctFlash {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.5);
  }
}

@keyframes wrongShake {
  0%,
  100% {
    transform: translateX(0) translateY(5px);
  }
  25% {
    transform: translateX(-8px) translateY(5px);
  }
  75% {
    transform: translateX(8px) translateY(5px);
  }
}

/* Piyano Tuş Renkleri */
.key-red {
  background: linear-gradient(180deg, #ff6b6b 0%, #e55a5a 100%);
  color: white;
}
.key-orange {
  background: linear-gradient(180deg, #ffa94d 0%, #ff9933 100%);
  color: white;
}
.key-yellow {
  background: linear-gradient(180deg, #ffe066 0%, #ffd633 100%);
  color: #333;
}
.key-green {
  background: linear-gradient(180deg, #69db7c 0%, #51cf66 100%);
  color: white;
}
.key-blue {
  background: linear-gradient(180deg, #74c0fc 0%, #4dabf7 100%);
  color: white;
}
.key-purple {
  background: linear-gradient(180deg, #b197fc 0%, #9775fa 100%);
  color: white;
}
.key-pink {
  background: linear-gradient(180deg, #f783ac 0%, #f06595 100%);
  color: white;
}
.key-magenta {
  background: linear-gradient(180deg, #e64980 0%, #d6336c 100%);
  color: white;
}

/* Çalınan Notalar */
.played-notes {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 50px;
  padding: 15px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
}

.played-note {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .piano-key {
    width: 55px;
    height: 90px;
    font-size: 1rem;
  }

  .melody-display {
    padding: 20px;
  }

  .word-emoji {
    font-size: 3rem;
  }

  .note-display {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
