/* ==========================================
   COMMENTS HERO
========================================== */

.comments-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
  background: #111;
}

.comments-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.comments-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.9));
}

.comments-hero h1 {
  color: #f5e6b3;
}

.comments-hero .hero-description {
  color: #e8e2d4;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.4rem;
  margin-top: 10px;
}

/* ==========================================
   COMMENTS SECTION
========================================== */

.comments-section {
  background: #faf7f0;
  padding: 90px 0 100px;
}

.comments-inner {
  max-width: 760px;
  margin: 0 auto;
}

.comments-heading {
  text-align: center;
  margin-bottom: 50px;
}

.comments-heading .featured-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9b805b;
  margin-bottom: 14px;
}

.comments-heading h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1a1a1a;
  margin-bottom: 16px;
}

.comments-heading .gold-divider {
  width: 90px;
  height: 2px;
  background: #cfa34a;
  margin: 0 auto 20px;
}

.comments-heading p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: #5a5245;
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================
   COMMENT FORM
========================================== */

.comment-form {
  background: #ffffff;
  border: 1px solid rgba(207, 163, 74, 0.25);
  border-radius: 14px;
  padding: 36px 34px;
  box-shadow: 0 12px 34px rgba(90, 75, 55, 0.08);
  margin-bottom: 60px;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.comment-form label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6f665b;
  margin-bottom: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(111, 102, 91, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #222;
  background: #fdfcf9;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #cfa34a;
  box-shadow: 0 0 0 3px rgba(207, 163, 74, 0.15);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 22px;
}

.comment-form .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.comment-form .char-count {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  color: #9a9182;
}

.comment-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #cfa34a;
  color: #fffdf8;
  border: 1px solid #cfa34a;
  border-radius: 30px;
  padding: 12px 30px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-submit-btn:hover {
  background: #9b805b;
  border-color: #9b805b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 95, 75, 0.25);
}

.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  margin-top: 14px;
  min-height: 22px;
}

.form-status.success {
  color: #4b7d4b;
}

.form-status.error {
  color: #a63d3d;
}

/* Honeypot field - hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================
   COMMENT LIST
========================================== */

.comments-list-heading {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-list-heading .count-pill {
  background: #cfa34a;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 12px;
}

.comment-card {
  background: #ffffff;
  border: 1px solid rgba(111, 102, 91, 0.15);
  border-left: 3px solid #cfa34a;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  animation: fadeInComment 0.5s ease forwards;
}

@keyframes fadeInComment {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-card .comment-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-card .comment-name {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: #1a1a1a;
  letter-spacing: 0.4px;
}

.comment-card .comment-date {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #a39a8a;
}

.comment-card .comment-message {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #3a3630;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-empty,
.comments-loading {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #9a9182;
  padding: 30px 0;
}

.comments-error {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #a63d3d;
  padding: 20px;
  border: 1px solid rgba(166, 61, 61, 0.25);
  border-radius: 10px;
  background: rgba(166, 61, 61, 0.05);
}

.comments-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f2f2f2;
}

.pagination-btn.active {
  background: #cfa34a;
  color: #fff;
  border-color: #cfa34a;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-prev,
.pagination-next {
  padding: 0 16px;
}

.comments-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#commentsContainer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.comment-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.comment-message {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comments-pagination {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 8px;
  margin: 30px 0 40px;

  flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 576px) {
  .comment-form {
    padding: 26px 20px;
  }

  .comment-form .form-row {
    grid-template-columns: 1fr;
  }

  .comment-form .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
























