/* Custom Commenting Section Styles */

/* Comments Area Container */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Comments Title */
.comments-title,
.comment-reply-title {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: 'yekan', sans-serif;
}

.comment-reply-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Comment List */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.comment-list .comment:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(247, 145, 0, 0.2);
}

.comment-list .children {
  list-style: none;
  margin: 1.5rem 0 0 2rem;
  padding: 0;
  border-right: 2px solid var(--primary-color);
  padding-right: 1.5rem;
}

/* Comment Body */
.comment-body {
  display: flex;
  gap: 1rem;
  position: relative;
}

.comment-author {
  flex-shrink: 0;
}

.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  transition: border-color 0.3s ease;
}

.comment:hover .comment-author .avatar {
  border-color: var(--primary-color);
}

.comment-author .fn {
  display: block;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-decoration: none;
  font-family: 'yekan', sans-serif;
}

.comment-author .fn:hover {
  color: var(--primary-color);
}

.comment-author .says {
  display: none;
}

/* Comment Metadata */
.comment-metadata {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.comment-metadata a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.comment-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Comment Content */
.comment-content {
  flex: 1;
  color: #374151;
  line-height: 1.8;
  font-size: 0.95rem;
  font-family: 'yekan', sans-serif;
}

.comment-content p {
  margin-bottom: 0.75rem;
}

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

.comment-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.comment-content a:hover {
  text-decoration: underline;
}

/* Comment Reply Link */
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(247, 145, 0, 0.1);
  color: var(--primary-color);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  font-family: 'yekan', sans-serif;
}

.comment-reply-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 145, 0, 0.3);
}

/* Comment Form */
.comment-form {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid #e5e7eb;
}

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

.comment-form label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: 'yekan', sans-serif;
  font-size: 0.95rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'yekan', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

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

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(247, 145, 0, 0.1);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
}

/* Submit Button */
.comment-form input[type="submit"],
#submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-family: 'yekan', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.comment-form input[type="submit"]:hover,
#submit:hover {
  background: #e67c00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 145, 0, 0.3);
}

/* Comment Navigation */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.comment-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-family: 'yekan', sans-serif;
  font-size: 0.875rem;
}

.comment-navigation a:hover {
  background: rgba(247, 145, 0, 0.1);
  color: var(--primary-color);
}

/* No Comments Message */
.no-comments {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 0.75rem;
  margin-top: 2rem;
  font-family: 'yekan', sans-serif;
}

/* Logged in as */
.logged-in-as {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(247, 145, 0, 0.05);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-family: 'yekan', sans-serif;
}

.logged-in-as a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.logged-in-as a:hover {
  text-decoration: underline;
}

/* Required Fields Note */
.required-field-message {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-family: 'yekan', sans-serif;
}

/* Comment Awaiting Moderation */
.comment-awaiting-moderation {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(247, 145, 0, 0.1);
  color: var(--primary-color);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  font-family: 'yekan', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .comments-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .comments-title,
  .comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .comment-list .comment {
    padding: 1rem;
  }

  .comment-list .children {
    margin-right: 1rem;
    padding-right: 1rem;
  }

  .comment-body {
    flex-direction: column;
  }

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

  .comment-form {
    padding: 1.5rem;
  }

  .comment-navigation {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .comment-navigation a {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .comments-title,
  .comment-reply-title {
    font-size: 1.125rem;
  }

  .comment-list .comment {
    padding: 0.75rem;
  }

  .comment-form {
    padding: 1rem;
  }

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

  .comment-content {
    font-size: 0.875rem;
  }
}



