/* Pipeline Visualization Styles */

/* Branch visualization effects */
.branch-line {
    position: relative;
    overflow: hidden;
}

.branch-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    animation: flow 3s linear infinite;
}

@keyframes flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Component animations */
.component {
    transition: all 0.3s ease;
}

.component:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.component.animated-flow {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.developing {
    background: #FFF3E0;
    color: #F57C00;
}

.status-badge.testing {
    background: #E3F2FD;
    color: #1565C0;
}

.status-badge.failed {
    background: #FFEBEE;
    color: #C62828;
}

.status-badge.fixing {
    background: #F3E5F5;
    color: #6A1B9A;
}

.status-badge.passing {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Merge visualization */
.merge-area {
    text-align: center;
    margin: 20px 0;
}

.merge-arrow {
    font-size: 32px;
    color: #4CAF50;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.merge-status {
    margin-top: 10px;
    font-weight: 500;
    color: #666;
}

/* CI/CD Pipeline visualization */
.deployment-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #F5F5F5;
    border-radius: 8px;
}

.pipeline-stage {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pipeline-stage h5 {
    margin: 0 0 10px 0;
    color: #666;
}

.ci-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #F5F5F5;
    border-radius: 4px;
}

.ci-status i {
    font-size: 24px;
}

/* Production status */
.production-status {
    font-size: 14px;
}

.active-features {
    padding: 8px;
    background: #E8F5E9;
    border-radius: 4px;
    margin-bottom: 8px;
    color: #2E7D32;
}

.inactive-features {
    padding: 8px;
    background: #FFF3E0;
    border-radius: 4px;
    color: #F57C00;
}

/* Rollout simulation */
.rollout-simulation {
    margin-top: 20px;
    padding: 20px;
    background: #F5F5F5;
    border-radius: 8px;
}

.rollout-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.rollout-stage {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rollout-stage span {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.rollout-stage button {
    padding: 6px 16px;
    border: none;
    background: #2196F3;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.rollout-stage button:disabled {
    background: #BDBDBD;
    cursor: not-allowed;
}

/* Approach cards */
.approach {
    position: relative;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.approach.stage-per-branch::before {
    background: #F44336;
}

.approach.feature-branch::before {
    background: #2196F3;
}

.approach.trunk-based::before {
    background: #4CAF50;
}

/* Challenge items */
.challenges {
    margin: 20px 0;
}

.challenge {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.challenge.good {
    background: #E8F5E9;
    color: #2E7D32;
}

.challenge.medium {
    background: #FFF3E0;
    color: #F57C00;
}

.challenge.bad {
    background: #FFEBEE;
    color: #C62828;
}

.challenge i {
    font-size: 24px;
}

/* Verdict styling */
.verdict {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.verdict.good {
    background: #E8F5E9;
    color: #2E7D32;
}

.verdict.medium {
    background: #FFF3E0;
    color: #F57C00;
}

.verdict.bad {
    background: #FFEBEE;
    color: #C62828;
}

/* Metrics display */
.metrics {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.metric {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.metric.good {
    background: #E8F5E9;
    color: #2E7D32;
}

.metric.bad {
    background: #FFEBEE;
    color: #C62828;
}

/* Steps visualization */
.steps ol {
    padding-left: 20px;
    margin: 10px 0;
}

.steps li {
    padding: 8px 0;
    position: relative;
}

.steps li.good {
    color: #2E7D32;
}

.steps li.complex {
    color: #C62828;
}

.steps li.good::before {
    content: '✓';
    position: absolute;
    left: -25px;
    color: #4CAF50;
    font-weight: bold;
}

.steps li.complex::before {
    content: '⚠';
    position: absolute;
    left: -25px;
    color: #F44336;
}

/* Syncing animation */
.syncing {
    animation: pulse 1s ease infinite;
}

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

/* Feature branch effects */
.feature-branch {
    transition: all 0.3s ease;
}

.feature-branch.merging {
    transform: translateY(10px);
    opacity: 0.7;
}