/**
 * Auto Pipeline Demo Styles
 * 全自动内容流水线 - 演示样式
 */

.auto-pipeline-demo {
    background: var(--yali-card-bg, #ffffff);
    border-radius: var(--yali-radius-lg, 12px);
    box-shadow: var(--yali-shadow-lg, 0 8px 30px rgba(0,0,0,0.08));
    overflow: hidden;
    padding: 1.25rem;
}

/* Cron Trigger */
.cron-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.cron-icon {
    font-size: 1.25rem;
}

.cron-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

/* Pipeline Flow */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 80px;
}

.step-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yali-primary, #3b82f6);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.step-content {
    text-align: center;
}

.step-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.step-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.step-status.running {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.step-status.pending {
    background: #f1f5f9;
    color: #94a3b8;
}

.pulse {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Flow Line */
.flow-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 1px;
}

/* Queue Stats */
.queue-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
}

/* Auto Recovery */
.auto-recovery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.06);
    border-radius: 6px;
    border: 1px dashed rgba(245, 158, 11, 0.3);
}

.recovery-icon {
    font-size: 0.9rem;
}

.recovery-text {
    font-size: 0.75rem;
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 480px) {
    .auto-pipeline-demo {
        padding: 1rem;
    }
    
    .pipeline-flow {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .flow-line {
        width: 2px;
        height: 20px;
        background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    }
    
    .pipeline-step {
        flex-direction: row;
        width: 100%;
        gap: 0.75rem;
    }
    
    .step-content {
        text-align: left;
        flex: 1;
    }
    
    .queue-stats {
        gap: 1rem;
    }
}
