/* FLAG2026 投票ページ専用スタイル (style.css の続きとして読み込む) */

/* 日本語の案内文の直下に表示する、控えめな英訳(このページ=audience-voteのみで使用) */
.vote-en {
  display: block;
  font-size: 0.78em;
  font-weight: 400;
  opacity: 0.62;
  margin-top: 0.2em;
}

.vote-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.vote-step {
  animation: vote-fade-in 0.15s ease;
}
@keyframes vote-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vote-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.vote-h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.4rem 0 0.8rem;
}
.vote-intro {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.vote-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.vote-input {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.vote-input:focus {
  outline: 2px solid var(--bg-navy);
  outline-offset: 1px;
}

.vote-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin: 0.3rem 0 0.8rem;
}

.vote-button {
  display: block;
  width: 100%;
  background: var(--bg-navy);
  color: var(--text-light);
  border: none;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1.2rem;
}
.vote-button:disabled {
  background: #b7b7c2;
  cursor: not-allowed;
}
.vote-button.is-loading {
  opacity: 0.75;
}

.vote-back {
  display: inline-block;
  background: none;
  border: none;
  color: var(--bg-navy);
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
  margin-bottom: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.vote-back:hover {text-decoration: underline;}

/* 1名以上選ぶための案内(0名のときだけ表示) */
.vote-hint {
  font-size: 0.85rem;
  color: #666;
  margin: -0.2rem 0 0.8rem;
}

/* 選択カウンター */
.vote-counter {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-white);
  padding: 0.5rem 0;
  font-weight: 600;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #e0e0e0;
}
#counterText {color: var(--bg-navy);}

/* 作家一覧(ARTISTS一覧のUIを流用しつつ、選択トグルの見た目を追加) */
.vote-artists {
  padding: 1.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.vote-card {
  all: unset;
  display: block;
  box-sizing: border-box;
  cursor: pointer;
  color: #ffffff;
}
.vote-card .artist-thumb {
  position: relative;
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s ease, background 0.15s ease;
}
.vote-card.selected .artist-thumb {
  outline-color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}
.vote-card.selected .artist-card-name {
  font-weight: 600;
  text-decoration-color: #ffffff;
}
.vote-card.is-full-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.check-badge {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-navy);
  border: 2px solid #ffffff;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.vote-card.selected .check-badge {display: flex;}

.vote-loading {
  color: var(--text-light);
  grid-column: 1 / -1;
}

/* 感想入力 */
.comment-section {margin-top: 1rem;}
.comment-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.8rem 0;
}
.comment-item:last-child {border-bottom: none;}
.comment-item-name {font-weight: 600; margin-bottom: 0.4rem;}
.comment-textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  min-height: 3rem;
}
.comment-textarea:focus {
  outline: 2px solid var(--bg-navy);
  outline-offset: 1px;
}

/* 確認画面 */
.confirm-block {margin-bottom: 1rem;}
.confirm-label {font-size: 0.85rem; color: #777; margin-bottom: 0.2rem;}
.confirm-value {font-weight: 600;}
.confirm-artist {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.8rem 0;
}
.confirm-artist:last-child {border-bottom: none;}
.confirm-artist-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-artist-thumb img {max-width: 100%; max-height: 100%; object-fit: contain; display: block;}
.confirm-artist-name {font-weight: 600; margin-bottom: 0.2rem;}
.confirm-artist-comment {font-size: 0.9rem; color: var(--text-dark); line-height: 1.6;}
.confirm-artist-comment.is-empty {color: #999;}

@media (max-width: 480px) {
  .vote-wrapper {padding: 1.25rem 1rem 3rem;}
  .vote-artists {padding: 1.25rem 0.75rem;}
}

/* メインページへ戻るリンク(常時表示・どの画面の操作も邪魔しない一番下に配置) */
.vote-return {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}
.vote-return-link {
  display: inline-block;
  color: var(--bg-navy);
  font-size: 0.85rem;
  text-decoration: none;
}
.vote-return-link:hover {text-decoration: underline;}
.vote-return-note {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #999;
}
