/* AI评论插件前端样式 */

.ai-comment-quick-actions {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ai-comment-quick-actions h4 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-comment-action {
    padding: 8px 16px;
    border: 1px solid #0073aa;
    background: #0073aa;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.ai-comment-action:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
}

.ai-comment-action:active {
    transform: translateY(0);
}

.ai-comment-action:disabled {
    background: #a0a5aa;
    border-color: #a0a5aa;
    cursor: not-allowed;
    transform: none;
}

.action-results {
    margin-top: 10px;
    padding: 10px;
    border-radius: 3px;
    background: white;
    border: 1px solid #e1e1e1;
}

.action-result-item {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.action-result-item:last-child {
    border-bottom: none;
}

.action-result-item.success {
    color: #46b450;
}

.action-result-item.error {
    color: #dc3232;
}

.ai-comment-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 6px;
    background: #0073aa;
    color: white;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-stats-meta {
    margin: 10px 0;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
}

.ai-stats-meta strong {
    color: #23282d;
}

/* 加载动画 */
.ai-comment-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-comment-quick-actions {
        margin: 15px 0;
        padding: 12px;
    }
    
    .actions-buttons {
        flex-direction: column;
    }
    
    .ai-comment-action {
        width: 100%;
        text-align: center;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .ai-comment-quick-actions {
        background: #2c3338;
        border-color: #3c434a;
        color: #f0f0f1;
    }
    
    .ai-comment-quick-actions h4 {
        color: #f0f0f1;
    }
    
    .action-results {
        background: #1d2327;
        border-color: #3c434a;
        color: #f0f0f1;
    }
    
    .ai-stats-meta {
        background: #2c3338;
        color: #a7aaad;
    }
    
    .ai-stats-meta strong {
        color: #f0f0f1;
    }
}