/* ===== Web拍手 (webclap.css) ===== */

.rwc-wrapper {
  position: relative;
  display: inline-block;
}

/* 拍手済み状態（.webclap-btn に追加） */
.webclap-btn.rwc-clap-btn {
  cursor: pointer;
  background: none;
  font-family: inherit;
  user-select: none;
}

.webclap-btn.rwc-clap-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.webclap-btn.is-clapped {
  border-color: #f0a020;
  color: #f0a020;
}

/* メッセージボックス（吹き出し） */
.rwc-message-box {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 280px;
  background-color: #2e2923;
  border: 1px solid #4a4540;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.6);
  z-index: 99999;
}

/* 吹き出し矢印（上向き） */
.rwc-message-box::before,
.rwc-message-box::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  border: solid transparent;
  pointer-events: none;
}

.rwc-message-box::before {
  border-width: 11px;
  border-bottom-color: #4a4540;
}

.rwc-message-box::after {
  border-width: 10px;
  left: 21px;
  border-bottom-color: #2e2923;
}

.rwc-message-box-inner {
  padding: 14px;
  position: relative;
}

/* 閉じるボタン */
.rwc-close {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 22px;
  height: 22px;
  background: #4a4540;
  border: 1px solid #666;
  border-radius: 50%;
  color: #ccc;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rwc-close:hover { background: #5a5550; color: #fff; }

/* お礼メッセージ */
.rwc-thanks-msg {
  color: #e0e0e0;
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ☆評価 */
.rwc-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.rwc-star {
  font-size: 22px;
  color: #666;
  transition: color 0.08s;
  line-height: 1;
}

.rwc-star.is-active,
.rwc-star:hover {
  color: #f0a020;
}

/* フォーム入力 */
.rwc-input {
  display: block;
  width: 100%;
  padding: 5px 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.4;
  color: #e0e0e0;
  background-color: #1c1a17;
  border: 1px solid #4a4540;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.rwc-input:focus {
  outline: none;
  border-color: #888;
  background-color: #201e1b;
}

.rwc-textarea {
  height: auto;
  min-height: 6em;
  resize: vertical;
}

/* 送信ボタン */
.rwc-submit-btn {
  display: block;
  width: 100%;
  padding: 5px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #4a7ab0;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.rwc-submit-btn:hover { background: #3a6090; }

/* 結果メッセージ */
.rwc-msg {
  font-size: 13px;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 4px;
}

.rwc-msg--success {
  color: #c8e5c0;
  background-color: #1e3020;
  border: 1px solid #3a5040;
}

.rwc-msg--error {
  color: #f0c0c0;
  background-color: #3a1820;
  border: 1px solid #5a2830;
}

/* ===== 配置コンテキスト別調整 ===== */

/* 個別記事: コンテンツ下 */
.single-webclap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-card-divider, rgba(255,255,255,0.08));
}

/* ===== ブックマーク一覧ページ ===== */
.bookmarks-page {
  padding: 40px;
  max-width: 800px;
}

.bookmarks-page h1 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.bookmarks-empty {
  color: var(--color-text-muted);
  font-size: 14px;
}

.bookmark-list {
  list-style: none;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-card-divider);
}

.bookmark-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 3px;
}

.bookmark-title {
  flex: 1;
  font-size: 14px;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bookmark-title:hover { color: #ccc; }

.bookmark-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  padding: 4px;
}

.bookmark-remove:hover { color: #f0c0c0; }
