/* Comments Section Container */
.comments-section {
    width: 100%;
}

/* Header */
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.comments-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.comments-action-btn {
    /*background-color: var(--color-secondary);*/
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.comments-action-btn svg {
    width: 1rem;
    height: 1rem;
}

[dir="rtl"] .comments-action-btn svg {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Separator */
.separator {
    height: 1px;
    background-color: #E5E7EB;
    margin: 1.5rem 0;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Comment Card */
.comment-card {
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.comment-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.comment-content {
    display: flex;
    gap: 1rem;
}

/* Avatar */
.comment-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: rgba(78, 168, 222, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/*.comment-avatar-text {
    color: #4EA8DE;
    font-weight: 500;
}*/

.reply-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reply-avatar-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #6B7280;
}

/* Rating Stars */
.comment-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}


.star-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.star-filled {
    fill: #FCD34D;
    color: #FCD34D;
}

.star-empty {
    color: #D1D5DB;
}

.comment-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6B7280;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: #6B7280;
}

.comment-action-button:hover {
    background-color: #F9FAFB;
}

.comment-action-button.like:hover {
    background-color: #F0FDF4;
    color: #15803D;
}

.comment-action-button.dislike:hover {
    background-color: #FEF2F2;
    color: #991B1B;
}

.comment-action-button.reply:hover {
    background-color: #EFF6FF;
    color: #1E40AF;
}

.comment-action-button svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* Reply Form */
.reply-form {
    margin-left: 4rem;
    margin-top: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

[dir="rtl"] .reply-form {
    margin-left: 0;
    margin-right: 4rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form-card {
    background-color: rgba(243, 244, 246, 0.3);
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1rem;
}

.reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.reply-textarea:focus {
    outline: none;
    border-color: #4EA8DE;
    box-shadow: 0 0 0 3px rgba(78, 168, 222, 0.1);
}

[dir="rtl"] .reply-textarea {
    direction: rtl;
}

.reply-actions {
    display: flex;
    gap: 0.5rem;
}

/* Nested Replies */
.nested-replies {
    margin-left: 4rem;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[dir="rtl"] .nested-replies {
    margin-left: 0;
    margin-right: 4rem;
}

.reply-card {
    background-color: rgba(243, 244, 246, 0.2);
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1rem;
}

.reply-content {
    display: flex;
    gap: 0.75rem;
}

.reply-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reply-user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.reply-date {
    font-size: 0.75rem;
    color: #6B7280;
}

.reply-text {
    font-size: 0.875rem;
    color: #6B7280;
}

/*.add-comment-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}*/

/*.form-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

[dir="rtl"] .form-title {
    text-align: right;
}*/

/*.form-card {
    background-color: rgba(243, 244, 246, 0.3);
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1.25rem;
}*/

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/*.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(231, 42, 84, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-text {
    color: #e72a54;
    font-weight: 500;
}*/

.user-details {
    flex: 1;
}

[dir="rtl"] .user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}


/* Rating Selector */
/*.rating-section {
    display: flex;
    flex-direction: column;
}*/

.rating-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

[dir="rtl"] .rating-label {
    text-align: right;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

[dir="rtl"] .rating-stars {
    flex-direction: row-reverse;
}

.rating-star {
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.1);
}

.rating-star.selected {
    fill: #FCD34D;
    color: #FCD34D;
}

.rating-star.unselected {
    color: #D1D5DB;
}

.rating-star.unselected:hover {
    color: #FDE68A;
}

.rating-value {
    font-size: 0.875rem;
    color: #6B7280;
    align-self: center;
}

[dir="rtl"] .rating-value {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Comment Textarea */
/*.comment-textarea-section {
    display: flex;
    flex-direction: column;
}*/

.textarea-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

[dir="rtl"] .textarea-label {
    text-align: right;
}

/*.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    resize: none;
}*/

/*.comment-textarea:focus {
    outline: none;
    border-color: #4EA8DE;
    box-shadow: 0 0 0 3px rgba(78, 168, 222, 0.1);
}*/

.character-count {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

[dir="rtl"] .character-count {
    text-align: right;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
}

/*.btn-primary {
    background-color: #4EA8DE;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: rgba(78, 168, 222, 0.9);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}*/

/*.btn-outline {
    background-color: white;
    border: 1px solid #E5E7EB;
    color: #374151;
}

.btn-outline:hover {
    background-color: #F9FAFB;
}*/

/*.btn svg {
    width: 1rem;
    height: 1rem;
}*/

/*[dir="rtl"] .btn svg {
    margin-right: 0;
    margin-left: 0.5rem;
}*/

/* Sign-In Prompt */
/*.signin-prompt {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}*/

/*.signin-card {
    background-color: rgba(243, 244, 246, 0.3);
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}*/

/*.signin-icon {
    width: 3rem;
    height: 3rem;
    color: #9CA3AF;
    margin: 0 auto 0.75rem;
}

.signin-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}*/

/*.signin-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}*/

/*.signin-btn {
    background-color: #4EA8DE;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}*/

/*.signin-btn:hover {
    background-color: rgba(78, 168, 222, 0.9);
}*/

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    color: #D1D5DB;
    margin: 0 auto 1rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-description {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Responsive */
@media (max-width: 640px) {
    .reply-form,
    .nested-replies {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .comment-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .comments-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /*.comment-card,
    .reply-card,
    .reply-form-card,
    .form-card, {
        background-color: #1F2937;
        border-color: #374151;
    }*/
    
    .comment-text,
    .reply-text,
    .comment-date,
    .reply-date,
    .character-count, {
        color: #D1D5DB;
    }
    
    .comment-user-name,
    .reply-user-name,
    .user-name,
    .form-title, {
        color: #F9FAFB;
    }
    
    .reply-textarea {
        background-color: #374151;
        border-color: #4B5563;
        color: #F9FAFB;
    }
    
    /*.btn-outline {
        background-color: #374151;
        border-color: #4B5563;
        color: #F9FAFB;
    }
    
    .btn:hover {
        background-color: #4B5563;
    }*/
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Focus States */
.btn:focus-visible,
.comment-action-button:focus-visible,
.rating-star:focus-visible {
    outline: 2px solid #4EA8DE;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .comment-actions,
    .reply-form,
    .comments-action-btn {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
