/* Kelime Evi - Gamification Style */

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

/* İnşaat Alanı */
.construction-site {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 280px;
  background: linear-gradient(180deg, #87ceeb 0%, #e0f4ff 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
}

.ground::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(180deg, #7cb342 0%, #689f38 100%);
}

/* Ev Parçaları */
.house-container {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
}

.house-part {
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.house-part.visible {
  opacity: 1;
  transform: scale(1);
}

/* Baca */
.chimney {
  top: -10px;
  right: 40px;
  font-size: 1.5rem;
  z-index: 3;
}

/* Çatı */
.roof {
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  width: 0;
  height: 0;
  border-left: 110px solid transparent;
  border-right: 110px solid transparent;
  border-bottom: 80px solid #d84315;
  z-index: 2;
}

.roof.visible {
  transform: translateX(-50%) scale(1);
}

.roof::after {
  content: "";
  position: absolute;
  top: 30px;
  left: -80px;
  width: 160px;
  height: 50px;
  background: repeating-linear-gradient(
    90deg,
    #bf360c 0px,
    #bf360c 20px,
    #d84315 20px,
    #d84315 40px
  );
}

/* Duvarlar */
.walls {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  width: 180px;
  height: 120px;
  background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
  border: 4px solid #ffa000;
  z-index: 1;
}

.walls.visible {
  transform: translateX(-50%) scale(1);
}

/* Kapı */
.door {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  font-size: 3rem;
  z-index: 4;
}

.door.visible {
  transform: translateX(-50%) scale(1);
}

/* Pencereler */
.window1 {
  bottom: 60px;
  left: 25px;
  font-size: 2rem;
  z-index: 4;
}

.window2 {
  bottom: 60px;
  right: 25px;
  font-size: 2rem;
  z-index: 4;
}

/* Bahçe */
.garden {
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  font-size: 2rem;
  white-space: nowrap;
  z-index: 5;
}

.garden.visible {
  transform: translateX(-50%) scale(1);
}

/* Çit */
.fence {
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  width: 280px;
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    #8d6e63 0px,
    #8d6e63 8px,
    transparent 8px,
    transparent 12px
  );
  z-index: 4;
}

.fence.visible {
  transform: translateX(-50%) scale(1);
}

.fence::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 6px;
  background: #6d4c41;
}

/* Kelime Sorusu */
.word-question {
  background: white;
  padding: 20px 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

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

.word-slots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.word-slot {
  width: 60px;
  height: 50px;
  border: 3px dashed var(--gray-400);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.word-slot.filled {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-light);
  color: var(--success);
}

.word-slot.active {
  border-color: var(--primary);
  animation: pulse 1s ease infinite;
}

/* Hece Seçenekleri */
.syllable-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
}

.syllable-btn {
  min-width: 70px;
  height: 50px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.syllable-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.syllable-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.syllable-btn.used {
  opacity: 0.4;
  pointer-events: none;
}

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

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

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

/* Responsive */
@media (max-width: 600px) {
  .construction-site {
    height: 220px;
    max-width: 280px;
  }

  .house-container {
    width: 160px;
    height: 160px;
  }

  .roof {
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 65px solid #d84315;
  }

  .walls {
    width: 150px;
    height: 100px;
  }

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

  .word-slot {
    width: 50px;
    height: 40px;
    font-size: 1.1rem;
  }

  .syllable-btn {
    min-width: 60px;
    height: 45px;
    font-size: 1.1rem;
  }
}
