/* static/css/comments.css */

/* Main container with better spacing */
.comments-section {
    max-width: 95%; /* Prevent 100% width on large screens */
    margin: 2rem auto; /* Center and add vertical spacing */
}

/* Comment form styling */
.comment-form-container {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(249, 115, 22, 0.2); /* Light orange border */
}

/* Comment container spacing */
#commentsContainer {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(249, 115, 22, 0.2); /* Light orange border */
}

/* Individual comment items */
.comment-item {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f8f9fa;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Comment content styling */
.comment-content {
    color: #495057;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Replies container for better nesting appearance */
.replies-container {
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(249, 115, 22, 0.2);
}

/* Section header styling */
.comments-section h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #212529;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .comments-section {
        max-width: 90%;
    }
}

@media (min-width: 992px) {
    .comments-section {
        max-width: 85%;
    }
}

/* Consistent orange theme for buttons and links */
.comments-section .text-warning {
    color: #f97316 !important;
}

.comments-section .btn-warning {
    background-color: #f97316;
    border-color: #f97316;
    color: white !important; /* Ensure text is always visible */
}

.comments-section .btn-warning:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    color: white !important;
}
