/* Hece Boyama - Montessori Style */

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

/* Boyama Canvas */
.coloring-canvas {
  background: white;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.image-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.coloring-image {
  font-size: 8rem;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.coloring-image.colored-1 {
  filter: grayscale(66%);
  opacity: 0.6;
}

.coloring-image.colored-2 {
  filter: grayscale(33%);
  opacity: 0.8;
}

.coloring-image.colored-3,
.coloring-image.fully-colored {
  filter: grayscale(0%);
  opacity: 1;
  animation: colorPop 0.5s ease;
}

@keyframes colorPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.color-layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.color-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
}

.color-layer.active {
  opacity: 0.3;
  transform: scale(1);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.word-display {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: 0.3em;
  margin-top: 15px;
}

.word-display .filled {
  color: var(--success);
}

/* Hece Palette */
.syllable-palette {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: var(--radius-xl);
  max-width: 500px;
}

.color-syllable {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.color-syllable::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 15%;
  width: 70%;
  height: 30%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.color-syllable:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.color-syllable:active {
  transform: scale(0.95);
}

.color-syllable.used {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
}

.color-syllable.wrong {
  animation: wrongShake 0.5s ease;
}

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

/* Progress Info */
.progress-info {
  font-size: 1.1rem;
  color: var(--gray-800);
  font-weight: 600;
}

/* Renk Sınıfları */
.color-red {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}
.color-orange {
  background: linear-gradient(135deg, #ffa94d, #ff9933);
}
.color-yellow {
  background: linear-gradient(135deg, #ffe066, #ffd633);
}
.color-green {
  background: linear-gradient(135deg, #69db7c, #51cf66);
}
.color-blue {
  background: linear-gradient(135deg, #74c0fc, #4dabf7);
}
.color-purple {
  background: linear-gradient(135deg, #b197fc, #9775fa);
}
.color-pink {
  background: linear-gradient(135deg, #f783ac, #f06595);
}
.color-magenta {
  background: linear-gradient(135deg, #e64980, #d6336c);
}

/* Responsive */
@media (max-width: 600px) {
  .coloring-image {
    font-size: 6rem;
  }

  .image-container {
    width: 150px;
    height: 150px;
  }

  .color-syllable {
    width: 65px;
    height: 65px;
    font-size: 1.2rem;
  }

  .word-display {
    font-size: 1.5rem;
  }
}
