/* Styles personnalisés pour les commentaires Commentions */

/* TipTap Editor Styles */
.tip-tap-container .ProseMirror {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem;
    min-height: 100px;
    outline: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tip-tap-container .ProseMirror:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.tip-tap-container .ProseMirror p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: #6c757d;
    pointer-events: none;
    height: 0;
}

.mention {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-weight: 500;
    text-decoration: none;
}

.mention:hover {
    background-color: #bbdefb;
}

/* Styles personnalisés pour les commentaires Commentions avec Bootstrap */

/* Éditeur simple personnalisé */
.simple-editor-container {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: white;
    min-height: 100px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.simple-editor-container:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.simple-editor-container textarea {
    border: none !important;
    border-radius: 0.375rem;
    padding: 0.75rem;
    min-height: 100px;
    resize: vertical;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    box-shadow: none !important;
}

.simple-editor-container textarea:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

/* Suggestions de mentions */
.mention-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mention-item {
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.15s ease-in-out;
}

.mention-item:hover {
    background-color: #f8f9fa;
}

.mention-item:last-child {
    border-bottom: none;
}

/* Mentions dans le texte */
.mention {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-weight: 500;
    text-decoration: none;
}

.mention:hover {
    background-color: #bbdefb;
}

/* Styles Bootstrap pour les commentaires */
.commentions-comments {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.commentions-comment {
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
    background-color: white;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
}

.commentions-comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.commentions-comment-author {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.commentions-comment-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.commentions-comment-body {
    margin-top: 0.5rem;
    line-height: 1.5;
    color: #212529;
}

.commentions-reactions {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f8f9fa;
}

.commentions-reaction {
    margin-right: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.commentions-reaction:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
}

.commentions-reaction.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.commentions-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
}

.commentions-form textarea {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
}

.commentions-form textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.commentions-form .btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.commentions-subscription-sidebar {
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 1rem;
}

.commentions-subscriber {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.commentions-subscriber-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.commentions-load-more {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.commentions-load-more .btn {
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .commentions-comments {
        padding: 0.5rem;
    }
    
    .commentions-comment {
        padding: 0.75rem;
    }
    
    .commentions-subscription-sidebar {
        margin-top: 1rem;
        border-left: none;
        border-top: 1px solid #dee2e6;
    }
}
