/* Dictionary App - Minimalist Dark Theme */

/* Override centering to keep search bar at top */
body.game-body {
  justify-content: flex-start !important;
  padding-top: 80px; /* Space from top */
  overflow-y: auto !important; /* Allow scrolling for results */
  height: auto !important;
  min-height: 100vh;
}

/* Container */
.dictionary-app-container {
  width: 100%;
  max-width: 600px; /* Slightly wider for text */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Inputs */

#word {
  flex: 1;
  padding: 15px;
  background: transparent;
  border: 2px solid #333;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

#word:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Output - Clean Typography */
.dictionary-output {
  width: 100%;
  min-height: 200px;
}

.result-container {
  animation: fadeIn 0.5s ease;
}

.result {
  text-align: left;
}

.word-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.word-header h2 {
  font-size: 2rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.part-of-speech {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

.result h3 {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.result p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Audio Player styling if standard */
audio {
  margin-top: 10px;
  height: 30px;
}

.source-link {
  font-size: 0.8rem;
  color: #555;
  margin-top: 20px;
  text-align: right;
}

.source-link a {
  color: #777;
  text-decoration: none;
}

/* Loading */
/* Loading moved to global.css */

/* Audio Section */
.audio-section {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audio-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.audio-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hide {
  display: none;
}
