/* Cookbook Recipe Styles */

/* Hero Section */
.recipe-hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

.recipe-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 127, 31, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.recipe-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(243, 21, 63, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Breadcrumb */
.recipe-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.recipe-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recipe-breadcrumb a:hover {
    color: var(--primary-orange);
}

.recipe-breadcrumb svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.recipe-breadcrumb span {
    color: var(--text-secondary);
}

/* Category Badge */
.recipe-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 127, 31, 0.1);
    border: 1px solid rgba(255, 127, 31, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.recipe-category-badge svg {
    width: 16px;
    height: 16px;
}

/* Header */
.recipe-header-section {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.recipe-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.recipe-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.recipe-icon-large.blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1)); border: 1px solid rgba(59, 130, 246, 0.2); }
.recipe-icon-large.green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1)); border: 1px solid rgba(34, 197, 94, 0.2); }
.recipe-icon-large.purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1)); border: 1px solid rgba(168, 85, 247, 0.2); }
.recipe-icon-large.yellow { background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1)); border: 1px solid rgba(234, 179, 8, 0.2); }
.recipe-icon-large.red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1)); border: 1px solid rgba(239, 68, 68, 0.2); }
.recipe-icon-large.orange { background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1)); border: 1px solid rgba(249, 115, 22, 0.2); }

.recipe-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.recipe-info-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.recipe-time-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--dark-surface);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
}

.difficulty-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.difficulty-badge.easy {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.difficulty-badge.medium {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.difficulty-badge.hard {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.recipe-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 700px;
}

.recipe-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
}

.recipe-tags-large .tag {
    font-size: 0.875rem;
    padding: 8px 16px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.recipe-tags-large .tag:hover {
    border-color: var(--dark-border-light);
    color: var(--text-primary);
}

/* Content Section */
.recipe-content-section {
    padding: 60px 0 80px;
}

/* Two Column Layout - CSS Grid */
.recipe-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.recipe-layout > aside {
    position: sticky;
    top: 100px;
}

.recipe-layout > article {
    min-width: 0;
}

/* When no TOC - single column */
.recipe-layout:not(:has(aside)) {
    grid-template-columns: 1fr;
}

.recipe-layout:not(:has(aside)) > article {
    max-width: 800px;
}

/* Table of Contents - Sidebar */
.toc {
    display: block;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 20px;
}

.toc h2 {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc h2 svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 0 0 2px 0;
    padding: 0;
}

.toc li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: all 0.2s;
    white-space: normal;
}

.toc li a::before {
    content: '•';
    color: var(--dark-border-light);
    margin-right: 8px;
}

.toc li a:hover {
    color: var(--primary-orange);
    background: rgba(255, 127, 31, 0.05);
}

.toc li a:hover::before {
    color: var(--primary-orange);
}

/* Back to cookbook link */
.toc-back {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--dark-border);
}

.toc-back a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
    padding: 6px 0;
}

.toc-back a::before {
    display: none;
}

.toc-back a:hover {
    color: var(--primary-orange);
}

.toc-back svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Article Content */
.recipe-content {
    max-width: 100%;
    min-width: 0;
}

.recipe-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 24px;
    scroll-margin-top: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recipe-content h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-red));
    border-radius: 2px;
}

.recipe-content h2:first-child {
    margin-top: 0;
}

.recipe-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.recipe-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.recipe-content ul,
.recipe-content ol {
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 24px;
}

.recipe-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.recipe-content hr {
    border: none;
    border-top: 1px solid var(--dark-border);
    margin: 48px 0;
}

.recipe-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.recipe-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
}

.recipe-content :not(pre) > code {
    background: var(--dark-surface);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--primary-orange);
    border: 1px solid var(--dark-border);
}

.recipe-content a {
    color: var(--primary-orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.recipe-content a:hover {
    border-bottom-color: var(--primary-orange);
}

/* Buttons inside recipe-content should keep their own colors */
.recipe-content a.btn {
    border-bottom: none;
}

.recipe-content a.btn-primary {
    color: white;
}

.recipe-content a.btn-secondary {
    color: var(--text-primary);
}

/* Recipe Placeholder */
.recipe-placeholder {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: var(--dark-surface);
    border: 1px dashed var(--dark-border);
    border-radius: 12px;
}

/* Legacy Diagram (ASCII) */
.diagram {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    color: var(--text-secondary);
}

/* Architecture Diagram */
.architecture-diagram {
    background: linear-gradient(135deg, rgba(255, 127, 31, 0.03), rgba(243, 21, 63, 0.03));
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 40px 32px;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.arch-row-end {
    justify-content: center;
}

.arch-node {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
    position: relative;
}

.arch-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.arch-node.event {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05));
}

.arch-node.server {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.arch-node.pushler {
    border-color: rgba(255, 127, 31, 0.4);
    background: linear-gradient(135deg, rgba(255, 127, 31, 0.15), rgba(243, 21, 63, 0.1));
    box-shadow: 0 0 20px rgba(255, 127, 31, 0.1);
}

.arch-node.browser {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.arch-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.arch-node.pushler .arch-icon {
    background: linear-gradient(135deg, #ff7f1f, #f3153f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.arch-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.arch-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--primary-orange);
    font-weight: 300;
    opacity: 0.8;
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

.arch-connector {
    height: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 8px 0;
}

.arch-connector svg {
    width: 24px;
    height: 40px;
    color: var(--primary-orange);
    opacity: 0.8;
}

/* Grid-версия архитектуры для точного позиционирования */
.architecture-diagram.arch-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px 16px;
    align-items: center;
    justify-items: center;
}

.arch-grid .arch-node.event { grid-column: 1; grid-row: 1; }
.arch-grid .arch-node.server { grid-column: 3; grid-row: 1; }
.arch-grid .arch-node.pushler { grid-column: 5; grid-row: 1; }

.arch-grid .arch-arrow:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.arch-grid .arch-arrow:nth-of-type(2) { grid-column: 4; grid-row: 1; }

.arch-grid .arch-connector {
    grid-column: 5;
    grid-row: 2;
    width: auto;
    margin: 0;
}

.arch-grid .arch-node-bottom {
    grid-column: 5;
    grid-row: 3;
}

/* Fallback для старых стилей */
.arch-connector.arch-connector-right,
.arch-row.arch-row-right {
    margin-left: auto;
    margin-right: 0;
    width: 160px;
    justify-content: center;
}

@media (max-width: 768px) {
    .architecture-diagram {
        padding: 24px 16px;
    }
    
    .arch-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .arch-arrow {
        transform: rotate(90deg);
    }
    
    .arch-node {
        min-width: 120px;
        padding: 16px 20px;
    }
    
}

/* Code Blocks */
.code-block {
    position: relative;
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--dark-surface);
    border-bottom: 1px solid var(--dark-border);
}

.code-block-header span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-block pre {
    margin: 0;
    padding: 24px;
    background: #0d1117;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
}

.copy-btn {
    padding: 6px 14px;
    background: var(--dark-surface-2);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.copy-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Related Recipes */
.related-recipes {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--dark-border);
}

.related-recipes h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-recipes h2::before {
    display: none;
}

.related-recipes h2 svg {
    width: 20px;
    height: 20px;
    color: var(--primary-orange);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.related-card:hover {
    border-color: var(--dark-border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.related-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-card .icon.blue { background: rgba(59, 130, 246, 0.15); }
.related-card .icon.green { background: rgba(34, 197, 94, 0.15); }
.related-card .icon.purple { background: rgba(168, 85, 247, 0.15); }
.related-card .icon.yellow { background: rgba(234, 179, 8, 0.15); }
.related-card .icon.red { background: rgba(239, 68, 68, 0.15); }
.related-card .icon.orange { background: rgba(249, 115, 22, 0.15); }

.related-card .info {
    flex: 1;
    min-width: 0;
}

.related-card .title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.2s;
}

.related-card:hover .title {
    color: var(--primary-orange);
}

.related-card .time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-card .arrow {
    color: var(--text-muted);
    transition: all 0.2s;
}

.related-card:hover .arrow {
    transform: translateX(4px);
    color: var(--primary-orange);
}

/* CTA */
.recipe-cta {
    margin-top: 64px;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(255, 127, 31, 0.08), rgba(243, 21, 63, 0.08));
    border: 1px solid rgba(255, 127, 31, 0.15);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recipe-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 127, 31, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.recipe-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    position: relative;
}

.recipe-cta h2::before {
    display: none;
}

.recipe-cta p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.1rem;
    position: relative;
}

.recipe-cta .buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    .recipe-layout {
        grid-template-columns: 1fr;
    }
    
    .recipe-layout > aside {
        position: static;
        margin-bottom: 24px;
    }
    
    .toc {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .recipe-hero {
        padding: 100px 0 48px;
    }
    
    .recipe-content-section {
        padding: 40px 0 60px;
    }
    
    .recipe-hero h1 {
        font-size: 1.75rem;
    }
    
    .recipe-icon-large {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
    
    .recipe-cta {
        padding: 40px 24px;
    }
    
    .recipe-content h2 {
        font-size: 1.5rem;
    }
}

/* Demo Boxes */
.demo-box {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

/* Chat Demo */
.chat-demo {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.chat-demo-header {
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-demo-header .status-online {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 400;
}

.chat-demo-messages {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-demo .msg {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 70%;
    font-size: 0.9rem;
}

.chat-demo .msg.incoming {
    background: #1e293b;
    color: #f1f5f9;
    align-self: flex-start;
}

.chat-demo .msg.outgoing {
    background: #3b82f6;
    color: white;
    align-self: flex-end;
}

.typing-indicator-demo {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

.typing-indicator-demo .dots {
    display: flex;
    gap: 3px;
}

.typing-indicator-demo .dots span {
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator-demo .dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator-demo .dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Online Users Demo */
.online-demo {
    background: #1e293b;
    border-radius: 12px;
    padding: 16px;
    max-width: 300px;
    margin: 0 auto;
}

.online-demo-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.online-demo-header .count-badge {
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.online-demo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.online-demo .online-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.online-demo .online-user:hover {
    background: #334155;
}

.online-demo .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.online-demo .dot.online { background: #22c55e; }
.online-demo .dot.away { background: #eab308; }
.online-demo .dot.busy { background: #ef4444; }

.online-demo .status-text {
    color: #64748b;
    font-size: 0.8rem;
}

/* Flow Diagram */
.flow-diagram {
    background: linear-gradient(135deg, rgba(255, 127, 31, 0.03), rgba(243, 21, 63, 0.03));
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

.flow-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.flow-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--primary-orange);
    opacity: 0.6;
    padding: 8px 0;
}

/* Info Boxes */
.info-box {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.info-box.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-box.warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.info-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.info-box.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-box.info strong { color: #60a5fa; }
.info-box.warning strong { color: #fbbf24; }
.info-box.error strong { color: #f87171; }
.info-box.success strong { color: #4ade80; }

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.info-box li:last-child {
    margin-bottom: 0;
}

/* Responsive for new elements */
@media (max-width: 768px) {
    .demo-box {
        padding: 16px;
    }
    
    .flow-diagram {
        padding: 20px 16px;
    }
    
    .flow-step {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .flow-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .flow-text {
        font-size: 0.85rem;
    }
}
