/**
 * Comment Module - Styles
 */

.comments-section {
    margin: 2rem 0;
}

.comment-item {
    animation: fadeIn 0.3s ease-in;
}

.comment-item:first-child {
    border-top: none !important
}

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

.reply-item {
    border-left: 2px solid var(--bs-border-color);
    padding-left: 1rem;
}

.comment-input-wrapper {
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 0 0.1em rgba(122, 122, 122, 0.25);
    transition: box-shadow 0.15s ease-in-out;
}

.comment-input-wrapper:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.comment-textarea,
.comment-edit-textarea {
    resize: vertical;
    min-height: 80px;
    border: none;
    border-radius: 0.375rem 0.375rem 0 0;
}

.comment-textarea:focus,
.comment-edit-textarea:focus {
    box-shadow: none;
}

.comment-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0 0 0.375rem 0.375rem;
}

.toolbar-left {
    display: flex;
    gap: 0.25rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 0.25rem;
    cursor: pointer;
}

.toolbar-btn:hover {
    background: #e9ecef;
}

.character-counter {
    font-size: 0.875rem;
    line-height: 1;
}

.comment-image img {
    cursor: pointer;
}

.image-preview {
    margin-top: 0.5rem;
}

.comment-item .dropdown-menu {
    min-width: 150px;
}

.comment-actions {
    margin-top: 0.5rem;
}

.reply-comment-btn {
    text-decoration: none;
    font-weight: 600;
}

.reply-comment-btn:hover {
    text-decoration: underline;
}

.no-comments i {
    opacity: 0.3;
}

/* Admin styles */
.admin-comment-row {
    transition: background-color 0.2s;
}

.admin-comment-row:hover {
    background-color: rgba(0, 123, 255, 0.05);
}
