/**
 * Recipe Comments CSS
 * Plugin: Dugu.nl - Recipe Comments
 */

/* Comment section container */
.dugu-comments-section .card {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: none;
}

/* Comment form */
.dugu-comments-section .comment-form {
  margin-bottom: 2rem;
}

.dugu-comments-section .comment-form label {
  margin-bottom: 0.5rem;
  display: block;
}

.dugu-comments-section .comment-form textarea {
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: border-color 0.15s ease-in-out;
}

.dugu-comments-section .comment-form textarea:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dugu-comments-section .comment-form .btn-primary {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
}

/* Individual comments */
.dugu-comments-section .comments-list h4 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.dugu-comments-section .comments-list h4:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #801028;
  position: absolute;
  bottom: 0;
  left: 0;
}

.comments-list ul li {
  list-style-type: none;
}

.dugu-comments-section .comment-body {
  padding: 1.25rem;
  background-color: #fff;
  border-radius: 8px;
  position: relative;
}

.dugu-comments-section .logged-in-as {
  display: none;
}

.dugu-comments-section .comment-meta {
  margin-bottom: 1rem;
}

.dugu-comments-section .comment-meta img {
  border-radius: 50%;
}

.dugu-comments-section .comment-meta small {
  display: block;
  margin-top: 3px;
}

.dugu-comments-section .comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.dugu-comments-section .comment-reply a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.dugu-comments-section .comment-reply a:hover {
  color: #343a40;
}

/* Comment pagination */
.dugu-comments-section .comment-navigation a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.dugu-comments-section .comment-navigation a:hover {
  color: #343a40;
}

/* Comment nesting for replies */
.dugu-comments-section .comment .children {
  margin-left: 3rem;
  margin-top: 1.5rem;
}

/* Comment author highlighting */
.dugu-comments-section .bypostauthor > .comment-body {
  border-left: 3px solid #ffc107; /* Or your theme's accent color */
}

/* Alert styles */
.dugu-comments-section .alert {
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.dugu-comments-section .alert p {
  margin-bottom: 0;
}

.dugu-comments-section .alert a {
  font-weight: 600;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .dugu-comments-section .comment .children {
	margin-left: 1.5rem;
  }
}







/* Comment form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

#comment::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

#comment:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading state for submit button */
#submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Character counter styling */
.comment-char-counter {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: right;
    margin-top: 0.25rem;
}

.comment-char-counter.text-danger {
    color: #dc3545 !important;
}

.comment-char-counter.text-success {
    color: #28a745 !important;
}