/* =======================================================================
 * AV Review Voting - Frontend styles
 * 対象: .reader-vote.av-vote-ui (vr-review-* 記事)
 * ======================================================================= */

.reader-vote.av-vote-ui {
  box-sizing: border-box;
  margin: 28px 0 24px;
  padding: 22px 20px 20px;
  background: linear-gradient(135deg, #fff5f7 0%, #ffecef 100%);
  border: 2px solid #e94560;
  border-radius: 14px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.1);
}

.reader-vote.av-vote-ui *,
.reader-vote.av-vote-ui *::before,
.reader-vote.av-vote-ui *::after {
  box-sizing: border-box;
}

.reader-vote.av-vote-ui .av-vote-question {
  margin: 0 0 16px;
  color: #1a2744;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.reader-vote.av-vote-ui .av-vote-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
}

.reader-vote.av-vote-ui .av-vote-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 52px;
  padding: 10px 16px;
  background: #ffffff;
  color: #1a2744;
  border: 2px solid #e94560;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .08s ease-out, box-shadow .18s, background .18s, color .18s;
  -webkit-tap-highlight-color: rgba(233, 69, 96, 0.15);
}

.reader-vote.av-vote-ui .av-vote-btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.25);
  transform: translateY(-1px);
}

.reader-vote.av-vote-ui .av-vote-btn:active:not(:disabled) {
  transform: translateY(0);
}

.reader-vote.av-vote-ui .av-vote-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.reader-vote.av-vote-ui .av-vote-emoji {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 3px;
}

.reader-vote.av-vote-ui .av-vote-label {
  display: block;
  font-size: 13px;
}

/* 投票選択肢ごとのアクセントカラー */
.reader-vote.av-vote-ui .av-vote-yes {
  border-color: #2e8b57;
  color: #1d6c3f;
}
.reader-vote.av-vote-ui .av-vote-yes:hover:not(:disabled) {
  background: #2e8b57;
  color: #ffffff;
}

.reader-vote.av-vote-ui .av-vote-no {
  border-color: #8a8f98;
  color: #5a5f68;
}
.reader-vote.av-vote-ui .av-vote-no:hover:not(:disabled) {
  background: #5a5f68;
  color: #ffffff;
}

.reader-vote.av-vote-ui .av-vote-maybe {
  border-color: #e0a82e;
  color: #9a7200;
}
.reader-vote.av-vote-ui .av-vote-maybe:hover:not(:disabled) {
  background: #e0a82e;
  color: #ffffff;
}

/* 投票済み状態 */
.reader-vote.av-vote-ui .av-vote-btn.is-selected {
  background: #e94560;
  color: #ffffff;
  border-color: #e94560;
}

.reader-vote.av-vote-ui .av-vote-btn.is-selected.av-vote-yes   { background: #2e8b57; border-color: #2e8b57; }
.reader-vote.av-vote-ui .av-vote-btn.is-selected.av-vote-no    { background: #5a5f68; border-color: #5a5f68; }
.reader-vote.av-vote-ui .av-vote-btn.is-selected.av-vote-maybe { background: #e0a82e; border-color: #e0a82e; }

.reader-vote.av-vote-ui .av-vote-btn:disabled {
  cursor: default;
  opacity: .78;
}

.reader-vote.av-vote-ui .av-vote-summary {
  margin: 0;
  color: #4a5264;
  font-size: 13.5px;
  line-height: 1.5;
}

.reader-vote.av-vote-ui .av-vote-rate strong {
  color: #e94560;
  font-size: 16px;
  margin: 0 2px;
}

.reader-vote.av-vote-ui .av-vote-count {
  color: #7a7f88;
  font-size: 12.5px;
}

.reader-vote.av-vote-ui .av-vote-empty {
  color: #7a7f88;
  font-size: 13px;
}

.reader-vote.av-vote-ui .av-vote-thanks {
  margin: 10px 0 0;
  color: #2e8b57;
  font-size: 13px;
  font-weight: 700;
}

.reader-vote.av-vote-ui[data-state="error"] .av-vote-thanks {
  color: #b02b2b;
}

/* モバイル: タップ領域 48px 以上を確保 */
@media (max-width: 480px) {
  .reader-vote.av-vote-ui {
    padding: 18px 14px 16px;
  }
  .reader-vote.av-vote-ui .av-vote-question {
    font-size: 16px;
  }
  .reader-vote.av-vote-ui .av-vote-buttons {
    gap: 8px;
  }
  .reader-vote.av-vote-ui .av-vote-btn {
    min-width: 88px;
    min-height: 56px;
    padding: 8px 10px;
    flex: 1 1 28%;
  }
  .reader-vote.av-vote-ui .av-vote-emoji {
    font-size: 20px;
  }
  .reader-vote.av-vote-ui .av-vote-label {
    font-size: 12.5px;
  }
}
