/* =========================================================
   MotorMakkers — reacties / comments
   GeneratePress comment markup
   ========================================================= */

/* ---------------------------------------------------------
   Reactiesectie
   --------------------------------------------------------- */

.comments-area {
  margin-top: 54px;
  color: #1f2937;
}

/* Titel boven de reacties */
.comments-area .comments-title {
  position: relative;
  margin: 0 0 30px;
  padding: 0 0 12px;

  color: #14233c;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 750;
  line-height: 1.3;
}

/* Zelfde H2-accent als de artikelcontent */
.comments-area .comments-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 50px;
  height: 3px;

  background: #ff4903;
}


/* ---------------------------------------------------------
   Commentlijsten resetten
   --------------------------------------------------------- */

.comments-area .comment-list,
.comments-area .comment-list .children {
  list-style: none;
  padding: 0;
}

.comments-area .comment-list {
  margin: 0;
}

.comments-area .comment-list > li {
  margin: 0 0 24px;
}


/* ---------------------------------------------------------
   Hoofdcomment als MM-card
   --------------------------------------------------------- */

.comments-area .comment-body {
  box-sizing: border-box;

  margin: 0;
  padding: 24px 26px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  box-shadow:
    0 3px 8px rgba(15, 23, 42, 0.035),
    0 10px 24px rgba(15, 23, 42, 0.07);
}


/* ---------------------------------------------------------
   Auteur / meta
   --------------------------------------------------------- */

.comments-area .comment-meta {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 0;
  padding: 0;
}

.comments-area .comment-meta .avatar {
  flex: 0 0 48px;

  width: 48px;
  height: 48px;
  margin: 0;

  border-radius: 50%;
  object-fit: cover;

  background: #f3f4f6;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.comments-area .comment-author-info {
  min-width: 0;
}

.comments-area .comment-author {
  margin: 0 0 2px;
  line-height: 1.3;
}

.comments-area .comment-author .fn {
  color: #14233c;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.comments-area .comment-author .fn a {
  color: inherit !important;
  text-decoration: none !important;
}

.comments-area .comment-author .fn a:hover {
  color: #ff4903 !important;
}


/* Datum / bewerken */
.comments-area .comment-metadata {
  margin: 0;

  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.45;
}

.comments-area .comment-metadata a {
  color: #6b7280 !important;
  text-decoration: none !important;
}

.comments-area .comment-metadata a:hover {
  color: #ff4903 !important;
  text-decoration: underline !important;
}

.comments-area .comment-metadata .edit-link {
  margin-left: 4px;
  opacity: 0.75;
}


/* ---------------------------------------------------------
   Reactietekst
   GeneratePress' huidige losse contentbox neutraliseren
   --------------------------------------------------------- */

.comments-area .comment-content {
  margin: 18px 0 0 !important;
  padding: 0 !important;

  color: #1f2937;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  font-size: 16px;
  line-height: 1.7;
}

.comments-area .comment-content p {
  margin-top: 0;
  margin-bottom: 16px;
}

.comments-area .comment-content p:last-of-type {
  margin-bottom: 16px;
}

.comments-area .comment-content a:not(.comment-reply-link) {
  color: #ff4903;
}


/* ---------------------------------------------------------
   Beantwoorden
   --------------------------------------------------------- */

.comments-area .reply {
  display: block;
  margin-top: 4px;
}

.comments-area .comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 11px;

  color: #e94100 !important;
  background: #fff4ef;

  border: 1px solid #ffd3c3;
  border-radius: 6px;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;

  text-decoration: none !important;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.comments-area .comment-reply-link:hover,
.comments-area .comment-reply-link:focus {
  color: #ffffff !important;
  background: #ff4903;

  border-color: #ff4903;

  text-decoration: none !important;
}

.comments-area .comment-reply-link:focus-visible {
  outline: 3px solid rgba(255, 73, 3, 0.22);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   Geneste antwoorden
   --------------------------------------------------------- */

.comments-area .comment-list .children {
  position: relative;

  margin: 18px 0 4px 38px;
  padding: 0 0 0 22px;

  border-left: 2px solid #ffd8c8;
}

.comments-area .comment-list .children > li {
  margin: 0 0 18px;
}

.comments-area .comment-list .children .comment-body {
  padding: 21px 23px;

  background: #fafafa;

  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.025),
    0 7px 18px rgba(15, 23, 42, 0.045);
}


/* ---------------------------------------------------------
   Reacties van MotorMakkers / auteur
   WordPress voegt hiervoor .bypostauthor toe
   --------------------------------------------------------- */

.comments-area .bypostauthor > .comment-body {
  background: #fffaf7;

  border-color: #eadfd8;
  border-left: 4px solid #ff4903;

  box-shadow:
    0 3px 8px rgba(15, 23, 42, 0.03),
    0 10px 24px rgba(15, 23, 42, 0.06);
}

.comments-area .bypostauthor > .comment-body .comment-author .fn,
.comments-area .bypostauthor > .comment-body .comment-author .fn a {
  color: #e94100 !important;
}

.comments-area .bypostauthor > .comment-body .avatar {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(255, 73, 3, 0.24);
}


/* ---------------------------------------------------------
   Reactieformulier
   --------------------------------------------------------- */

.comments-area .comment-respond {
  box-sizing: border-box;

  margin: 44px 0 0;
  padding: 28px 30px 30px;

  background: #f7f7f5;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.035),
    0 12px 28px rgba(15, 23, 42, 0.07);
}


/* Titel reactieformulier */
.comments-area .comment-reply-title {
  position: relative;

  margin: 0 0 20px;
  padding: 0 0 0 14px;

  color: #14233c;

  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
}

.comments-area .comment-reply-title::before {
  content: "";

  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;

  width: 3px;

  background: #ff4903;
  border-radius: 2px;
}


/* Annuleer antwoord */
.comments-area #cancel-comment-reply-link {
  margin-left: 10px;

  color: #ff4903 !important;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none !important;
}


/* Ingelogd / toelichting */
.comments-area .logged-in-as,
.comments-area .comment-notes,
.comments-area .required-field-message {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.comments-area .logged-in-as a,
.comments-area .comment-notes a {
  color: #ff4903;
}


/* ---------------------------------------------------------
   Formuliervelden
   Ook voorbereid op niet-ingelogde bezoekers
   --------------------------------------------------------- */

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  box-sizing: border-box;

  width: 100%;

  color: #1f2937;
  background: #ffffff;

  border: 1px solid #d1d5db;
  border-radius: 9px;

  box-shadow: none;

  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"] {
  min-height: 46px;
  padding: 10px 12px;
}

.comments-area .comment-form textarea {
  min-height: 165px;
  padding: 14px 15px;
  resize: vertical;
}

.comments-area .comment-form input[type="text"]:focus,
.comments-area .comment-form input[type="email"]:focus,
.comments-area .comment-form input[type="url"]:focus,
.comments-area .comment-form textarea:focus {
  background: #ffffff;

  border-color: #ff4903;
  outline: none;

  box-shadow: 0 0 0 3px rgba(255, 73, 3, 0.11);
}


/* ---------------------------------------------------------
   Reactie plaatsen — MM button
   --------------------------------------------------------- */

.comments-area .form-submit {
  margin: 18px 0 0;
}

.comments-area input[type="submit"].submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 17px;

  color: #ffffff;
  background: #ff4903;

  border: 1px solid #ff4903;
  border-radius: 6px;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;

  box-shadow: 0 5px 14px rgba(255, 73, 3, 0.18);

  cursor: pointer;

  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.comments-area input[type="submit"].submit:hover,
.comments-area input[type="submit"].submit:focus {
  color: #ffffff;
  background: #e94100;

  border-color: #e94100;

  transform: translateY(-1px);

  box-shadow: 0 6px 16px rgba(255, 73, 3, 0.24);
}

.comments-area input[type="submit"].submit:focus-visible {
  outline: 3px solid rgba(255, 73, 3, 0.22);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   Mobiel
   --------------------------------------------------------- */

@media (max-width: 700px) {

  .comments-area {
    margin-top: 42px;
  }

  .comments-area .comments-title {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .comments-area .comment-body {
    padding: 20px 18px;
  }

  .comments-area .comment-meta {
    align-items: flex-start;
    gap: 12px;
  }

  .comments-area .comment-meta .avatar {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .comments-area .comment-author .fn {
    font-size: 15px;
  }

  .comments-area .comment-metadata {
    font-size: 12px;
  }

  .comments-area .comment-content {
    margin-top: 16px !important;
    font-size: 15px;
  }

  .comments-area .comment-list .children {
    margin-left: 14px;
    padding-left: 12px;
  }

  .comments-area .comment-list .children .comment-body {
    padding: 18px 16px;
  }

  .comments-area .comment-respond {
    margin-top: 34px;
    padding: 22px 18px 24px;
  }

  .comments-area .comment-reply-title {
    font-size: 20px;
  }

  .comments-area input[type="submit"].submit {
    width: 100%;
  }
}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .comments-area .comment-reply-link,
  .comments-area input[type="submit"].submit,
  .comments-area .comment-form input,
  .comments-area .comment-form textarea {
    transition: none;
  }

  .comments-area input[type="submit"].submit:hover,
  .comments-area input[type="submit"].submit:focus {
    transform: none;
  }
}

