/* Mood Tracker 固有スタイル。共通トーンは ../../css/common.css に従う。 */

.feature-header {
  margin: 1.5rem 0;
}
.feature-header h1 {
  margin-bottom: 0.4rem;
}
/* 説明の英語＋日本語併記（トップページの lead-en/lead-ja と同じトーン） */
.feature-header .lead-en {
  margin: 0;
}
.feature-header .lead-ja {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #666;
}

/* 今日の気分ラベル */
.today-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* 選択ボタン */
.mood-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 420px;
}
.mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 0.4rem;
  font-size: 1.6rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease;
}
.mood-btn span {
  font-size: 0.75rem;
  color: #555;
}
.mood-btn:hover {
  transform: translateY(-2px);
}
.mood-btn.selected {
  border-color: #4a90d9;
  background: #eaf3fb;
}
/* キーボード操作時のフォーカス表示（アクセシビリティ） */
.mood-btn:focus-visible,
.reset-btn:focus-visible {
  outline: 3px solid #4a90d9;
  outline-offset: 2px;
}

/* 取り消しの操作ヒント */
.picker-hint {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: #888;
  max-width: 420px;
}

/* 履歴グリッド（14日分） */
.mood-history {
  margin-top: 2rem;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  max-width: 420px;
}
.history-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 8px;
  background: #f2f2f2;
}
.history-cell.mood-none {
  background: #f2f2f2;
}
.history-cell.mood-great { background: #d8f0d8; }
.history-cell.mood-good  { background: #e4f0d8; }
.history-cell.mood-meh   { background: #f0ecd8; }
.history-cell.mood-down  { background: #f0dcd8; }

.empty {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* 集計 */
.mood-summary {
  margin-top: 2rem;
  max-width: 420px;
}
.summary-range {
  font-size: 0.8rem;
  font-weight: normal;
  color: #888;
}
.summary-count {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.9rem;
  color: #555;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.summary-list li {
  display: grid;
  grid-template-columns: 1.6rem auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.summary-emoji {
  font-size: 1.2rem;
}
.summary-label {
  color: #555;
}
.summary-bar {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.summary-bar-fill {
  display: block;
  height: 100%;
  background: #4a90d9;
  border-radius: 999px;
}
.summary-num {
  color: #666;
  white-space: nowrap;
}

/* リセット */
.mood-reset {
  margin-top: 1.5rem;
}
.reset-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: #b3402e;
  background: #fff;
  border: 1px solid #e0b4ac;
  border-radius: 8px;
  cursor: pointer;
}
.reset-btn:hover {
  background: #fdf2f0;
}

/* solo の注意書き */
.solo-note {
  margin-top: 2rem;
  padding: 0.8rem 1rem;
  background: #fff8e6;
  border: 1px solid #f0e0a8;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #6b5b1a;
}
.solo-note .solo-note-ja {
  display: inline-block;
  margin-top: 0.4rem;
  color: #7a6a2a;
}
