/* ========================================
   Comments Section
======================================== */
.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.comments-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.comments-count {
  background: linear-gradient(135deg, #8865e1, #a855f7);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.user-avatar-form i {
  font-size: 40px;
  color: #8865e1;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(136, 101, 225, 0.2);
}

.form-title {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
}

.comment-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.rating-section {
  margin-bottom: 15px;
}

.rating-section label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 24px;
  color: #ddd;
  transition: color 0.3s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #ffc107;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 15px;
}

.submit-comment-btn {
  background: #8865e1;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.submit-comment-btn:hover {
  background: #7451d4;
}

.login-prompt {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.login-prompt a {
  color: #8865e1;
  text-decoration: none;
  font-weight: 600;
}

.comments-list {
  margin-top: 20px;
}

.comment-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar i {
  font-size: 32px;
  color: #8865e1;
}

.username {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  display: block;
}

.comment-rating {
  display: flex;
  gap: 2px;
}

.comment-rating i.filled {
  color: #ffc107;
}

.comment-rating i {
  color: #ddd;
  font-size: 14px;
}

.comment-date {
  color: #666;
  font-size: 13px;
}

.comment-content p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.like-btn,
.delete-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  transition: color 0.3s;
}

.like-btn:hover {
  color: #8865e1;
}

.delete-btn:hover {
  color: #dc3545;
}

.modern-like-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modern-like-btn:hover {
  background: #f8fafc;
  color: #8865e1;
}

.modern-like-btn i {
  font-size: 18px;
}

.no-comments {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.modern-submit-btn {
  background: linear-gradient(135deg, #8865e1, #a855f7);
  color: white;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(136, 101, 225, 0.3);
}

.modern-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 101, 225, 0.4);
}

.modern-submit-btn:disabled {
  background: linear-gradient(135deg, #9ca3af, #d1d5db);
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
}

.modern-submit-btn:disabled:hover {
  transform: none;
  box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
}

.no-comments-modern {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.no-comments-modern i {
  font-size: 64px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.no-comments-modern h4 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #475569;
}

.no-comments-modern p {
  margin: 0;
  font-size: 16px;
  color: #64748b;
}

/* Responsive Design for Feedback Section */
@media (max-width: 768px) {
  .comment-form {
    padding: 15px;
  }

  .star-rating label {
    font-size: 20px;
  }

  .comment-item {
    padding: 15px;
  }

  .user-info {
    gap: 8px;
  }

  .user-avatar i {
    font-size: 28px;
  }

  .comment-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

	html[lang="ar"] .modern-submit-btn {
    flex-direction: row-reverse;
		}
	html[dir="rtl"] .bx-send {
		transform: rotate(180deg);
		}







    .load-more-container {
        text-align: center;
        margin: 30px 0;
        padding: 20px 0;
    }

    #loadMoreComments {
        background: linear-gradient(135deg, #8865e1, #a855f7);
        color: white;
        border: none;
        padding: 15px 30px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(136, 101, 225, 0.3);
        min-width: 160px;
        justify-content: center;
    }

    #loadMoreComments:hover {
        background: linear-gradient(135deg, #6b46c1, #553c9a);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(136, 101, 225, 0.4);
    }

    #loadMoreComments:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(136, 101, 225, 0.3);
    }

    #loadMoreComments:disabled {
        background: #cbd5e1;
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #loadMoreComments i {
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    #loadMoreComments:hover i {
        transform: translateY(-1px);
    }

    /* Loading state */
    #loadMoreComments.loading {
        background: #94a3b8;
        cursor: wait;
        pointer-events: none;
    }

    #loadMoreComments.loading i {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    /* RTL Support */
    html[dir="rtl"] #loadMoreComments {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] #loadMoreComments i {
        transform: rotate(180deg);
    }

    html[dir="rtl"] #loadMoreComments:hover i {
        transform: rotate(180deg) translateY(-1px);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        #loadMoreComments {
            padding: 12px 25px;
            font-size: 15px;
            min-width: 140px;
        }
    }

    @media (max-width: 480px) {
        #loadMoreComments {
            padding: 10px 20px;
            font-size: 14px;
            min-width: 120px;
        }
    }

