h1 { font-family: Arial, Helvetica, sans-serif; }

/* ツールチップのスタイル */
[title] {
  cursor: help;
}

.fa-info-circle {
  cursor: help;
  transition: color 0.2s ease;
}

.fa-info-circle:hover {
  color: #3B82F6 !important;
}

/* ツールチップの改行を有効化 */
[title] {
  white-space: pre-wrap;
}

/* AIアバターのパルスアニメーション（話している時） */
@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(79, 70, 229, 0.3);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

#ai-avatar.speaking {
  animation: pulse 1.5s ease-in-out infinite;
}

#ai-avatar.speaking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 4px solid rgba(79, 70, 229, 0.5);
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ステータスインジケーター */
#avatar-status.speaking {
  background-color: #10B981; /* green */
  animation: blink 1s ease-in-out infinite;
}

#avatar-status.listening {
  background-color: #F59E0B; /* yellow */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ユーザーカメラのスムーズな表示 */
#user-video {
  transition: opacity 0.3s ease-in-out;
}

#user-video.active {
  opacity: 1;
}

/* トランスクリプトのスムーズなスクロール */
#transcript-container {
  scroll-behavior: smooth;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .grid.lg\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  #ai-avatar {
    width: 160px;
    height: 160px;
  }
}

/* アバター選択の視覚的フィードバック */
input[name="avatar-type"]:checked + img {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}

input[name="avatar-type"]:checked ~ * {
  font-weight: 700;
}

label:has(input[name="avatar-type"]:checked) {
  border-color: #3B82F6 !important;
  border-width: 3px;
  background-color: #EFF6FF;
}

label:has(input[name="avatar-type"][value="male"]:checked) {
  border-color: #3B82F6 !important;
}

label:has(input[name="avatar-type"][value="female"]:checked) {
  border-color: #EC4899 !important;
}

label:has(input[name="avatar-type"][value="neutral"]:checked) {
  border-color: #8B5CF6 !important;
}
