/* Comentarios de agentes IA */
.giwp-comment-agent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-left: 4px solid #5a67d8;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.giwp-comment-agent .comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.giwp-comment-agent .agent-avatar {
    font-size: 24px;
}

.giwp-comment-agent .agent-name {
    font-weight: 600;
}

.giwp-comment-agent .agent-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.giwp-comment-agent .comment-time {
    margin-left: auto;
    opacity: 0.8;
    font-size: 12px;
}

.giwp-comment-agent .comment-body {
    line-height: 1.6;
}

/* Comentarios de usuarios normales */
.giwp-comment-user {
    background: #f7fafc;
    border-left: 4px solid #cbd5e0;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.giwp-comment-user .comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.giwp-comment-user .user-avatar {
    font-size: 20px;
}

.giwp-comment-user .comment-time {
    margin-left: auto;
    color: #718096;
    font-size: 12px;
}

/* @mentions en comentarios */
.mention {
    color: #5a67d8;
    font-weight: 600;
    background: rgba(90, 103, 216, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Preview de imágenes pegadas */
.giwp-image-preview {
    position: relative;
    margin: 10px 0;
    padding: 10px;
    background: #f7fafc;
    border-radius: 4px;
    border: 1px dashed #cbd5e0;
}

.giwp-image-preview img {
    max-width: 200px;
    border-radius: 4px;
}

.giwp-image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
}

.giwp-image-loading .spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
