/**
 * Help page flow diagrams and step pipelines.
 * Referenced via @section Styles in Views/Help/Index.cshtml.
 */

/* ===== High-level lifecycle diagram ===== */
.help-lifecycle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin: 1.5rem 0;
}

.help-lifecycle-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.help-lifecycle-block strong {
    font-size: 0.9375rem;
    color: #1e293b;
    text-align: center;
}

.help-lifecycle-block span {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-align: center;
}

.help-lifecycle-arrow {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .help-lifecycle {
        flex-direction: column;
    }

    .help-lifecycle-arrow {
        transform: rotate(90deg);
    }
}

/* ===== Per-flow status pipelines ===== */
.help-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.help-flow-step {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Status color cues (align with app badge semantics) */
.help-flow-step.step-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.help-flow-step.step-ready {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.help-flow-step.step-review {
    background-color: #e0e7ff;
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.help-flow-step.step-approved,
.help-flow-step.step-complete {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.help-flow-step.step-generated,
.help-flow-step.step-active {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.help-flow-step.step-denied {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.help-flow-step.step-eligibility {
    background-color: #e0e7ff;
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.help-flow-step.step-completed {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.help-flow-arrow {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0 0.25rem;
    flex-shrink: 0;
}

.help-flow-note {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
    background-color: #f8fafc;
    border-radius: 0.375rem;
    border-left: 3px solid #0ea5e9;
}

@media (max-width: 768px) {
    .help-flow {
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
}
