/* 台語課互動學習平台專用樣式 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Noto+Serif+TC:wght@600;900&display=swap');

:root {
  --tw-sign-green: #0d5f3a;
  --tw-sign-green-dark: #074026;
  --tw-sign-border: #ffffff;
  --tw-gold: #f59e0b;
  --primary-accent: #0284c7;
}

body {
  font-family: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

/* 高雄傳統台灣公路路牌樣式 */
.road-sign-card {
  background: linear-gradient(145deg, #0d6e42, #084c2d);
  border: 4px solid #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(7, 64, 38, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.25);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.road-sign-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(7, 64, 38, 0.45);
}

.road-sign-inner-border {
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 12px;
}

/* 聲調五度制音高畫布樣式 */
.pitch-canvas-wrapper {
  background: #0f172a;
  border-radius: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* 雙軌拼音切換微章 */
.badge-tl {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-poj {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* 動畫效果 */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.active-pulse {
  animation: pulse-ring 2s infinite ease-in-out;
}

/* 變調圓環動態連線 */
.sandhi-node {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sandhi-node.active {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.8);
  border-color: #f59e0b;
}

/* 拼音積木磁吸效果 */
.block-slot {
  transition: all 0.2s ease;
}
.block-slot:hover {
  border-color: #38bdf8;
  background-color: #f0f9ff;
}

/* 滾動條美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
