/* How It Works Page Styles */
/* Note: Uses .page-hero and .page-cta from styles.css for shared patterns */

/* Flow Section */
.flow-section {
    padding: 3rem 0 5rem;
    overflow-x: auto;
}

.flow-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    min-width: max-content;
    padding: 2rem 1rem;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    min-width: 160px;
    transition: all 0.3s ease;
    position: relative;
}

.flow-step::before {
    content: attr(data-step);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-step:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px -10px var(--accent-glow);
}

.flow-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.flow-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.flow-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--accent-primary);
    opacity: 0.5;
    padding-top: 2rem;
}

/* Explainer Sections */
.explainer-section {
    padding: 2rem 0;
}

.explainer-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.explainer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.explainer-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.explainer-icon.icon-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.explainer-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.explainer-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Inherits code styling from styles.css */

/* Placeholder Demo */
.placeholder-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.demo-block {
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    position: relative;
}

.demo-block code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
}

.demo-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--bg-primary);
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-input {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--glass-border);
}

.demo-input .demo-label {
    color: var(--text-secondary);
}

.demo-output {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.demo-output .demo-label {
    color: #22c55e;
}

.demo-arrow {
    color: var(--accent-primary);
    opacity: 0.6;
}

.highlight-placeholder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    color: #a5b4fc;
    padding: 0.1em 0.3em;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.placeholder-types {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.placeholder-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
}

.placeholder-type code {
    font-weight: 600;
}

.placeholder-type span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Dry Run Demo */
.dryrun-demo {
    margin-bottom: 2rem;
}

.terminal-small {
    transform: none;
    max-width: 100%;
}

.terminal-small .terminal-body {
    font-size: 0.85rem;
}

.flag {
    color: #fbbf24;
    font-weight: 600;
}

.dryrun-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
    flex-wrap: wrap;
}

.dryrun-original {
    color: var(--text-secondary);
}

.dryrun-arrow {
    color: var(--accent-primary);
    font-weight: 700;
}

.dryrun-translated {
    color: #4ade80;
}

.dryrun-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.benefit svg {
    color: #22c55e;
}

/* CTA section uses .page-cta from styles.css */

/* Responsive */
@media (max-width: 768px) {
    .flow-container {
        flex-direction: column;
        align-items: center;
        min-width: auto;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .flow-step {
        min-width: 200px;
    }

    .explainer-card {
        padding: 1.5rem;
    }

    .explainer-header {
        flex-direction: column;
        text-align: center;
    }

    .explainer-header h2 {
        font-size: 1.5rem;
    }

    .dryrun-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .placeholder-types {
        flex-direction: column;
    }
}
