

/* ─── SECTION WRAPPER ─── */
.comments-section {
  max-width: 760px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

/* ─── HEADER ─── */
.comments-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.comments-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.comments-subtitle {
  font-size: 14px;
  color: #94a3b8;
}

/* ─── FORM CARD ─── */
.comment-form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 36px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ─── FORM GROUPS ─── */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ─── INPUT & TEXTAREA ─── */
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 13px 16px;
  color: #e2eaf8;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4b6280;
  font-size: 13px;
}

/* Focus glow */
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* ─── CHARACTER COUNTER ─── */
.char-counter {
  text-align: right;
  font-size: 11px;
  color: #4b6280;
  margin-top: 5px;
  transition: color 0.3s ease;
}

.char-counter.near-limit {
  color: #f97316;
}

/* ─── SUBMIT BUTTON ─── */
.comment-submit-btn {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
  font-size: 15px;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
}

/* ─── ERROR MESSAGE ─── */
.comment-error {
  font-size: 13px;
  color: #f87171;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
  transition: opacity 0.3s ease;
}

/* ─── NO COMMENTS MESSAGE ─── */
.no-comments-msg {
  text-align: center;
  color: #4b6280;
  font-size: 14px;
  padding: 24px 0;
}

/* ─── INDIVIDUAL COMMENT CARD ─── */
.comment-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  /* Entry animation */
  animation: commentSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #38bdf8, #f97316);
  border-radius: 3px 0 0 3px;
}

.comment-card:hover {
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* ─── COMMENT HEADER (avatar + name + time) ─── */
.comment-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3c72, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.comment-name {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
}

.comment-time {
  font-size: 11px;
  color: #4b6280;
  margin-left: auto;
}

/* ─── COMMENT BODY ─── */
.comment-body {
  font-size: 14px;
  color: #c4d0e3;
  line-height: 1.7;
  padding-left: 50px;
}

/* ─── DELETE BUTTON ─── */
.comment-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #334155;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
  line-height: 1;
}

.comment-delete:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

/* ─── ENTRY ANIMATION ─── */
@keyframes commentSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .comments-section       { padding: 0 14px; }
  .comment-form-card      { padding: 22px 16px; }
  .comment-body           { padding-left: 0; margin-top: 8px; }
  .comment-card-header    { flex-wrap: wrap; }
  .comment-time           { margin-left: 0; width: 100%; }
}
