/* ═══════════════════════════════════
   vin100.fr — Comments Section
═══════════════════════════════════ */
.comments-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.comments-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f5f9;
}
.comments-count {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── COMMENT CARD ── */
.comment {
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

.comment-card {
  background: #0d1220;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s;
}
.comment-card:hover { border-color: rgba(255,255,255,0.1); }

.comment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comment-avatar-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.3);
  flex-shrink: 0;
  object-fit: cover;
}
.comment-author-name {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.92rem;
}
.comment-date {
  font-size: 0.73rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.comment-content {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.comment-content p { margin: 0 0 0.6em; }
.comment-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.comment-like-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.07);
  color: #475569;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.comment-like-btn:hover, .comment-like-btn.liked {
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
  background: rgba(239,68,68,0.06);
}
.comment-reply-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
}
.comment-reply-btn:hover { color: #818cf8; }

/* ── REPLIES ── */
.comment-replies {
  margin-top: 12px;
  margin-left: 32px;
  padding-left: 16px;
  border-left: 2px solid rgba(99,102,241,0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-replies .comment-card {
  background: rgba(13,18,32,0.6);
  border-radius: 10px;
}
.comment-replies .comment-avatar-img {
  width: 34px; height: 34px;
}

/* ── REPLY FORM ── */
.reply-form-wrap {
  margin-top: 12px;
  margin-left: 32px;
  display: none;
}
.reply-form-wrap.open { display: block; }

/* ── ADD COMMENT FORM ── */
.comment-form-section {
  background: #0d1220;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
  margin-top: 40px;
}
.comment-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media(max-width:600px) { .comment-form-grid { grid-template-columns: 1fr; } }

.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label { font-size: 0.73rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.06em; }
.cf-field input, .cf-field textarea {
  background: #070b14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px 13px;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  resize: vertical;
}
.cf-field input:focus, .cf-field textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.cf-field textarea { min-height: 110px; }
.cf-notice {
  font-size: 0.73rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

/* ── PENDING MSG ── */
.comment-pending-msg {
  text-align: center;
  padding: 40px 20px;
  background: rgba(99,102,241,0.05);
  border: 1px dashed rgba(99,102,241,0.2);
  border-radius: 12px;
  color: #818cf8;
  font-size: 0.88rem;
}

/* ── COMMENTS DISABLED ── */
.comments-disabled {
  text-align: center;
  padding: 32px;
  color: #334155;
  font-size: 0.88rem;
}

/* ── TOAST ── */
.comment-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #0d1220;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.comment-toast.show { transform: none; opacity: 1; }
