/* ===============================================
   thread.css - スレッド詳細ページ メインスタイル
   =============================================== */

/* 基本レイアウト */
body { 
  font-family: 'Noto Sans JP', sans-serif; 
  background: #f4f4f4; 
  margin: 0; 
  padding: 0; 
  font-size: 16px; 
}

.container { 
  max-width: 960px; 
  margin: 0 auto; 
  padding: 15px; 
  background: #fff; 
}

.meta { 
  color: #666; 
  font-size: 0.9em; 
  margin-bottom: 1em; 
}

.content { 
  margin-bottom: 2em; 
}

.post { 
  border-top: 1px solid #ddd; 
  padding: 15px 0; 
}

/* 投稿アクションボタン */
.post-actions {
  margin-top: 12px;
  padding-top: 8px;
}

.post-actions form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1em;
  color: #888;
  justify-content: flex-start;
}

/* 広告 */
.advertisement { 
  margin: 30px 0; 
  padding: 15px 20px; 
  background: #f9f9f9; 
  border: 1px solid #ddd; 
  border-left: 5px solid #007bff; 
  font-size: 0.95em; 
}

/* 削除依頼ボタン */
.delete-request-button { 
  padding: 6px 12px; 
  background-color: #007bff; 
  color: #fff; 
  border: none; 
  border-radius: 4px; 
  cursor: pointer; 
  font-size: 1em; 
}

.content-actions { 
  margin-top: 15px; 
  display: flex; 
  align-items: center; 
  justify-content: flex-end; 
}

/* フローティングコメントボタン */
.floating-comment-button { 
  position: fixed; 
  bottom: 25px; 
  right: 25px; 
  background-color: #007bff; 
  color: white; 
  border: none; 
  border-radius: 50%; 
  width: 60px; 
  height: 60px; 
  font-size: 24px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
  cursor: pointer; 
  z-index: 1000; 
  transition: background 0.3s ease; 
}

.floating-comment-button:hover { 
  background-color: #0056b3; 
}

/* フォーム */
.form-section { 
  margin-top: 40px; 
  padding: 20px; 
  background: #fdfdfd; 
  border: 1px solid #ccc; 
  border-radius: 6px; 
}

.form-section input[type="text"], 
.form-section textarea { 
  width: 100%; 
  padding: 10px; 
  margin-bottom: 15px; 
  font-size: 1em; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  box-sizing: border-box; 
}

/* PRバッジ */
.pr-badge { 
  float: right; 
  background-color: #333; 
  color: white; 
  padding: 4px 8px; 
  font-weight: normal; 
  font-size: 0.85em; 
  border-radius: 4px; 
  opacity: 0.7; 
  margin-top: 10px; 
}

/* カテゴリバッジ */
.category-badge {
  display: inline-block;
  background-color: #f3f3f3;
  color: #555;
  font-size: 0.75em;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ccc;
  margin-bottom: 6px;
}

/* メンションリンク */
.mention-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.mention-link:hover {
  text-decoration: underline;
}

/* 削除されたコメント */
.deleted-post {
  opacity: 0.7;
  background-color: #f8f9fa !important;
}

.deleted-post .content {
  color: #999 !important;
  font-style: italic;
}

.deleted-post .user-badge {
  background-color: #6c757d !important;
}

/* アニメーション */
@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1.2); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 85, 85, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(226, 85, 85, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 85, 85, 0); }
}