/* english-card.css */
/* Extensions to card.css for English tool */

/* Choice buttons for 4-choice quiz */
.q-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}
.q-choice-btn {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2b2d42;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.q-choice-btn:hover {
  background: #e9ecef;
  border-color: #ff8a00;
  transform: translateY(-2px);
}
.q-choice-btn:active {
  transform: translateY(2px);
}
.q-choice-btn.correct {
  background: #06d6a0;
  border-color: #06d6a0;
  color: #fff;
}
.q-choice-btn.wrong {
  background: #ef476f;
  border-color: #ef476f;
  color: #fff;
  animation: shake 0.4s ease;
}

/* Flashcard mode */
.q-flashcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.q-flash-en {
  font-size: 4rem;
  font-weight: 900;
  color: #ff8a00;
  margin-bottom: 0.5rem;
}
.q-flash-ja {
  font-size: 2rem;
  font-weight: 700;
  color: #6c757d;
}
.q-flash-next {
  margin-top: 2rem;
  padding: 1rem 3rem;
  font-size: 1.5rem;
  border-radius: 999px;
  background: #118ab2;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(17, 138, 178, 0.3);
  transition: transform 0.2s;
}
.q-flash-next:hover { transform: scale(1.05); }

/* Alphabet Keyboard */
.vkb-alpha-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  align-items: center;
}
.vkb-alpha-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}
.vkb-alpha-key {
  width: 2.5rem;
  height: 3rem;
  border-radius: 8px;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  background: #f8f9fa;
  color: #2b2d42;
  box-shadow: 0 3px 0 #dee2e6;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.1s;
  user-select: none;
}
.vkb-alpha-key:active {
  transform: translateY(3px);
  box-shadow: none;
}
.vkb-alpha-ok { background: #06d6a0; color: #fff; box-shadow: 0 3px 0 #05b38a; width: 4rem; }
.vkb-alpha-del { background: #ef476f; color: #fff; box-shadow: 0 3px 0 #c73659; width: 4rem; }

/* Alphabet Large Text */
.alpha-q-text {
  font-size: clamp(6rem, 20vw, 10rem) !important;
  line-height: 1;
}

[data-theme="terminal"] .vkb-alpha-key {
  background: #0d0d0d; color: #00ff41; border: 1px solid #00ff41; box-shadow: 0 2px 0 #00aa2b;
}

@media (max-width: 480px) {
  .vkb-alpha-key { width: 2.1rem; height: 2.8rem; font-size: 1rem; }
  .vkb-alpha-row { gap: 0.2rem; }
  .q-choice-btn { font-size: 1rem; padding: 0.8rem; }
  .q-flash-en { font-size: 3rem; }
  .q-flash-ja { font-size: 1.5rem; }
}

/* English Card Header Logo adjustments */
.setup-box h1.english-title {
  color: #118ab2;
}
