/* Font Tanımlaması */
:root {
  --game-font: 'Fredoka One', cursive;
}

/* Genel Sayfa */
body {
  font-family: var(--game-font);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Ana Oyun Alanı (Buzdolabı gibi) */
.fridge-container {
  max-width: 800px;
  width: 100%;
  background: #eef2f7;
  padding: 30px;
  border-radius: 20px;
  border: 10px solid #d6dbe2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

h1 {
  font-size: 3em;
  color: #3b82f6;
  margin-bottom: 25px;
  text-shadow: 2px 2px 0 #fff;
}

/* Cümle ve Kelime Havuzu Alanları */
.sentence-area, .magnet-pool {
  margin: 20px auto;
  padding: 20px;
  border-radius: 15px;
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sentence-area {
  background: rgba(0,0,0,0.05);
  border: 2px dashed #b0c4de;
}
.placeholder-text {
  color: #a0aec0;
  font-size: 1.2em;
}

.magnet-pool {
  background: #d6dbe2;
  border: 2px solid #b0c4de;
}

/* Kelime Magnetleri */
.word, .answer-word {
  display: inline-block;
  margin: 5px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.4em;
  cursor: pointer;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
  user-select: none;
}
.word:hover, .answer-word:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Farklı renklerde magnetler */
.word:nth-child(5n + 1) { background: #ef4444; transform: rotate(-2deg); }
.word:nth-child(5n + 2) { background: #3b82f6; transform: rotate(1deg); }
.word:nth-child(5n + 3) { background: #f97316; transform: rotate(3deg); }
.word:nth-child(5n + 4) { background: #8b5cf6; transform: rotate(-1deg); }
.word:nth-child(5n + 5) { background: #10b981; transform: rotate(2.5deg); }

/* Cevap alanındaki kelimeler de aynı stile sahip olacak */
.answer-word:nth-child(5n + 1) { background: #ef4444; }
.answer-word:nth-child(5n + 2) { background: #3b82f6; }
.answer-word:nth-child(5n + 3) { background: #f97316; }
.answer-word:nth-child(5n + 4) { background: #8b5cf6; }
.answer-word:nth-child(5n + 5) { background: #10b981; }

/* Doğru cevap verildiğinde animasyon (Opsiyonel JS geliştirmesi için) */
.sentence-area.correct-answer {
  animation: pulse-green 1s;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


/* Skor alanı */
.score-display {
  margin-top: 25px;
  font-size: 1.5em;
  font-weight: bold;
  color: #4a5568;
}
#score { color: #3b82f6; }

/* Form stilleri */
#form {
  border-top: 2px solid #d6dbe2;
  margin-top: 30px;
  padding-top: 20px;
}
#form h2 { font-size: 2.2em; color: #4a5568; }
#form input {
  padding: 12px;
  font-size: 1.1em;
  font-family: var(--game-font);
  border: 2px solid #d6dbe2;
  border-radius: 8px;
  margin: 5px;
  width: 70%;
}
.submit-btn {
  font-family: var(--game-font);
  padding: 12px 25px;
  font-size: 1.2em;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}