/* MIGRATED TO TAILWIND - Flashcard component styles
   3D flip properties moved to tailwind-input.css
   Layout and styling now uses Tailwind utilities in index.html

.card-container {
  width: 100%;
  min-width: 300px;
  max-width: 500px;
  min-height: 300px;
  perspective: 1000px;
  align-self: center;
  position: relative;
}

.flashcard {
  width: 100%;
  min-width: 300px;
  height: 300px;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.3s;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  transform-style: preserve-3d;
}

.flashcard:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard.flipped:hover {
  transform: rotateY(180deg);
}

/* LEGACY - Migrated to Tailwind flex layout in index.html
   Icons are now in a header row, not absolutely positioned.

.card-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.flashcard.flipped .card-icons {
  right: auto;
  left: 10px;
  transform: rotateY(180deg);
}
*/

/* Icon button base styles - minimal overrides, Tailwind handles the rest */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* LEGACY - No longer used, Tailwind handles sizing and hover
.icon-btn:hover {
  opacity: 1;
}

.icon-btn svg {
  width: 28px;
  height: 28px;
}

.mute-btn {
  color: #51CF66;
}

.help-btn {
  color: #4A90E2;
  font-weight: 600;
}
*/

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
  box-sizing: border-box;
  /* Background now controlled by Tailwind: bg-white dark:bg-card-dark */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.card-back {
  transform: rotateY(180deg);
}

/* Grade flash rules moved to tailwind-input.css @layer utilities
   to ensure they win over Tailwind's dark:bg-card-dark in dark mode */

.word-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #666;
}

.new-card .word-label {
  color: #DAA520;
}

.flashcard.new-card .card-front {
  background-color: #FFF8DC;
}

.card-word {
  font-size: 32px;
  font-weight: 600;
  color: #333333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

.card-hint {
  font-size: 16px;
  color: #888;
  font-style: italic;
  margin-top: 8px;
}

/* MIGRATED TO TAILWIND - positioning now in index.html with px-[6px] padding
.audio-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
}
*/

.audio-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  color: white;
  min-width: 100px;
}

.audio-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.audio-btn:active {
  transform: translateY(0);
}

.audio-btn-uk {
  background-color: #4A90E2;
}

.audio-btn-us {
  background-color: #FF6B6B;
}

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

.card-definition {
  font-size: 20px;
  color: #333333;
  margin-bottom: 15px;
  line-height: 1.4;
  width: 100%;
  overflow: hidden;
}

.card-example {
  font-size: 16px;
  color: #666666;
  font-style: italic;
  line-height: 1.4;
  margin-top: 10px;
  padding-top: 10px;
  /* border-top removed - was visible as white line in dark mode */
  width: 100%;
  overflow: hidden;
}

/* MIGRATED TO TAILWIND - positioning now in index.html with px-[6px] padding
.example-audio-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
}
*/