/* Comments Section Styles */

.comments-section {
    margin-top: 2rem;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

/* Write Comment Button */
.btn-write-comment {
    padding: 0.4rem 0.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-bottom: 0.75rem;
}

.btn-write-comment:hover {
    background-color: #45a049;
}

/* Comment Form */
.comment-form {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.comment-form-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

.comment-visibility-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    border-radius: 0;
    transition: none;
}

.comment-visibility-option:hover {
    background-color: transparent;
}

.comment-visibility-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.comment-visibility-option span {
    font-weight: 400;
}

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

.comment-form button {
    padding: 0.4rem 0.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.comment-form button:hover {
    background-color: #45a049;
}

.btn-cancel-comment {
    background-color: #6c757d !important;
}

.btn-cancel-comment:hover {
    background-color: #5a6268 !important;
}

.comment-login-prompt {
    padding: 0.5rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 3px;
    text-align: center;
    color: #856404;
    font-size: 0.9rem;
}

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

.no-comments {
    text-align: left;
    color: #999;
    font-style: italic;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* Individual Comment */
.comment {
    background-color: transparent;
    padding: 0.5rem 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #eee;
    transition: none;
}

.comment:hover {
    box-shadow: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

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

.comment-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.comment-pending {
    background-color: #fff3cd;
    color: #856404;
}

.comment-approved {
    background-color: #d4edda;
    color: #155724;
}

.comment-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.comment-private {
    background-color: #d1ecf1;
    color: #0c5460;
}

.comment-body {
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-comment-edit,
.btn-comment-delete,
.btn-comment-save,
.btn-comment-cancel {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.btn-comment-edit {
    background-color: #007bff;
    color: white;
}

.btn-comment-edit:hover {
    background-color: #0056b3;
}

.btn-comment-delete {
    background-color: #dc3545;
    color: white;
}

.btn-comment-delete:hover {
    background-color: #c82333;
}

.btn-comment-save {
    background-color: #28a745;
    color: white;
}

.btn-comment-save:hover {
    background-color: #218838;
}

.btn-comment-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-comment-cancel:hover {
    background-color: #5a6268;
}

/* Comment Edit Mode */
.comment-edit-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.comment-edit-textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.comment-edit-actions {
    display: flex;
    gap: 0.4rem;
}

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

    .comment-form {
        padding: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .comments-section {
        display: none;
    }
}

