/* ============================================
   COMMENTS STYLES
   Custom styling for WordPress comments system
   ============================================ */

/* Comment List Styles */
#comments {
  display: none;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0
}

.comment {
  margin-bottom: 1.5rem;
  padding: 0
}

.comment .comment {
  margin-left: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--color-primary);
  padding-left: 1.5rem;
  position: relative
}

.comment .comment::before {
  content: '';
  position: absolute;
  left: -3px;
  top: -1rem;
  width: 3px;
  height: 1rem;
  background-color: var(--color-primary);
  border-radius: 2px 2px 0 0
}

/* Third level and deeper comments */
.comment .comment .comment {
  margin-left: 1.5rem;
  border-left-color: var(--color-primary-alt)
}

.comment .comment .comment::before {
  background-color: var(--color-primary-alt)
}

/* Mobile responsiveness */
@media (max-width: 62rem) {
  .comment-body {
    padding: 1.25rem;
    margin-bottom: 1.5rem
  }

  .comment {
    margin-bottom: 1rem
  }

  .comment .comment {
    margin-left: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem
  }

  .comment-author {
    gap: 0.5rem;
    margin-bottom: 0.75rem
  }

  .comment-author .avatar {
    width: 32px;
    height: 32px
  }

  .comment-reply-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem
  }
}

.comment-body {
  background-color: var(--color-surface);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border-subtle);
  transition: all 0.2s ease
}

.comment-body:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px)
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem
}

.comment-author .avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-border-subtle)
}

.comment-author .fn {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none
}

.comment-author .says {
  display: none
}

.comment-meta {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-disabled)
}

.comment-meta a {
  color: var(--color-text-disabled);
  text-decoration: none
}

.comment-meta a:hover {
  color: var(--color-primary)
}

.comment-content {
  margin-bottom: 1.25rem;
  line-height: 1.6;
  color: var(--color-text)
}

.comment-content p {
  margin-bottom: 1rem;
  line-height: 1.6
}

.comment-content p:last-child {
  margin-bottom: 0
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-alt);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease
}

.comment-reply-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.comment-reply-link .material-icons {
  font-size: 1rem
}

.reply {
  margin-top: 1rem;
  text-align: left
}

/* Comment Form Styles */
.comment-respond {
  margin-top: 1.5rem;
  background-color: var(--color-surface);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border-subtle)
}

.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-weight: 700
}

.comment-form-comment {
  margin-bottom: 1.5rem
}

.comment-form-comment label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text)
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 18, 18, 0.1)
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 1rem
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text)
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 18, 18, 0.1)
}

.comment-form .form-submit {
  margin-top: 1.5rem;
  text-align: right
}

.comment-form .submit {
  display: inline-flex;
  text-align: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

.comment-form .submit:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 18, 18, 0.3)
}

.comment-form .submit .material-icons {
  font-size: 1.125rem
}

/* No comments message */
.nocomments {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-secondary);
  font-style: italic
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width:62rem) {
  .comment .comment {
      margin-left: 1rem;
      padding-left: 1rem
  }

  .comment-body {
      padding: 1.25rem
  }

  .comment-respond {
      padding: 1.5rem
  }

  .comment-reply-title {
      font-size: 1.25rem
  }
}

@media (max-width:36rem) {

  .comment-body {
      padding: 1rem;
      border-radius: 0.75rem
  }

  .comment-respond {
      padding: 1.25rem;
      border-radius: 0.75rem
  }

  .comment-form-comment textarea {
      min-height: 100px
  }

  .comment-form .submit {
      width: 100%;
      justify-content: center
  }
}
