/*
Theme Name: meLink
Theme URI: https://melink.ai
Description: Standalone block theme for meLink. Token-driven design system for marketing and blog - no page builder required.
Author: meLink
Version: 2.2.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: melink
Tags: block-patterns, full-site-editing, blog, one-column, custom-colors
*/


/* ================================
   MeLink comment form styling
   ================================ */

#respond.comment-respond,
.wp-block-post-comments-form {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid rgba(0, 200, 190, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(0, 200, 190, 0.04), rgba(255, 255, 255, 0.95));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
}

/* Reply heading */
#reply-title.comment-reply-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.2;
  color: #062832;
}

/* Cancel reply link */
#reply-title small {
  font-size: 14px;
  font-weight: 600;
}

#cancel-comment-reply-link {
  color: #007f89;
  text-decoration: none;
}

#cancel-comment-reply-link:hover {
  color: #00a99d;
  text-decoration: underline;
}

/* Notes under title */
.comment-notes {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #52666f;
}

.required {
  color: #00a99d;
  font-weight: 700;
}

/* Form layout */
#commentform.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Reset paragraph spacing inside form */
#commentform.comment-form p {
  margin: 0;
}

/* Comment textarea full width */
.comment-form-comment,
.comment-form-url,
.comment-form-cookies-consent,
.form-submit,
.akismet-fields-container {
  grid-column: 1 / -1;
}

/* Labels */
#commentform label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  color: #173842;
}

/* Inputs and textarea */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(6, 40, 50, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: #062832;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
  min-height: 48px;
  padding: 12px 14px;
}

#commentform textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px;
}

/* Input focus */
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
  border-color: rgba(0, 169, 157, 0.75);
  box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.12);
  background-color: #ffffff;
}

/* Cookie checkbox row */
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px !important;
  font-size: 14px;
  color: #52666f;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #00a99d;
  flex: 0 0 auto;
}

.comment-form-cookies-consent label {
  margin: 0 !important;
  font-weight: 500 !important;
  color: #52666f !important;
}

/* Submit area */
.form-submit {
  margin-top: 4px !important;
}

/* Submit button */
#submit.wp-block-button__link,
#commentform input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 14px;
  background: #007f89;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 127, 137, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#submit.wp-block-button__link:hover,
#commentform input[type="submit"]:hover {
  transform: translateY(-1px);
  background: #00a99d;
  box-shadow: 0 14px 30px rgba(0, 169, 157, 0.26);
}

#submit.wp-block-button__link:active,
#commentform input[type="submit"]:active {
  transform: translateY(0);
}

/* Hide Akismet honeypot cleanly */
.akismet-fields-container {
  display: none !important;
}

/* Mobile */
@media (max-width: 700px) {
  #respond.comment-respond,
  .wp-block-post-comments-form {
    margin-top: 36px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  #reply-title.comment-reply-title {
    display: block;
    font-size: 21px;
  }

  #reply-title small {
    display: block;
    margin-top: 8px;
  }

  #commentform.comment-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #commentform textarea {
    min-height: 130px;
  }

  #submit.wp-block-button__link,
  #commentform input[type="submit"] {
    width: 100%;
  }
}