/* 德文單字卡：自訂樣式（版面主要使用 Tailwind 的 class） */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 3D 翻轉效果 */
.perspective-1000 { perspective: 1000px; }
.transform-style-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }
.flip-card-inner {
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flipped .flip-card-inner { transform: rotateY(180deg); }
.no-anim .flip-card-inner { transition: none !important; }

/* 點讀單字按鈕特效 */
.word-btn {
  transition: all 0.2s ease;
  position: relative;
  user-select: none;            /* 雙擊時不要反白選取文字 */
  -webkit-user-select: none;
  touch-action: manipulation;   /* 手機連點兩下不要放大畫面 */
}
.word-btn:hover {
  background-color: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* 懸停中文提示 (Tooltip) */
.word-btn .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 200px;
  background-color: #1e293b;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: normal;
  position: absolute;
  z-index: 50;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.word-btn .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}
.word-btn:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 填空題的空格 */
.cloze-blank {
  display: inline-block;
  min-width: 4.5em;
  border-bottom: 3px solid #6366f1;
  color: #6366f1;
  text-align: center;
  margin: 0 0.15em;
  font-weight: 800;
}

.fade-enter { opacity: 0; transform: translateY(10px); }
.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms, transform 300ms;
}
  
