/* ===== Workflow Templates ===== */

/* Workflow Card */
.workflow-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.workflow-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.workflow-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.workflow-card-header .workflow-tag {
    padding: 0.2rem 0.6rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 3px;
}

.workflow-card-body {
    padding: 1.2rem;
}

.workflow-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--accent-color);
}

/* Workflow Steps */
.workflow-steps {
    counter-reset: step-counter;
}

.workflow-step {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e0e0e0;
}

.workflow-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 1rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.step-command {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-command code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.step-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
}

/* Copy All Button */
.copy-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.copy-all-btn:hover {
    background: #1a252f;
}

.copy-all-btn.copied {
    background: var(--danger-safe);
}

.copy-all-btn .copy-icon {
    width: 16px;
    height: 16px;
}

/* Workflow Categories */
.workflow-category {
    margin-bottom: 2rem;
}

.workflow-category h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Step Command Copy Button (inline) */
.step-copy-btn {
    background: transparent;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.step-copy-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.step-copy-btn.copied {
    color: var(--danger-safe);
}
