/* QR Igniter Documentation Portal - Styles (QR Igniter Brand Book) */

:root {
    /* Flame palette */
    --primary: #F05A28;        /* flame-orange — the single energetic accent */
    --primary-dark: #D8481A;   /* orange-deep */
    --primary-light: #F7834A;
    --secondary: #F7931E;      /* amber */
    --accent: #FFC93C;         /* butter */
    --warning: #F7931E;
    --danger: #E74C3C;
    /* Ink + neutrals */
    --text: #0E1018;           /* ink */
    --text-light: #3C4150;
    --text-muted: #8A8FA0;
    /* Surfaces: paper background, white cards, hairline borders */
    --bg: #FAF9F5;             /* paper */
    --bg-alt: #FFFFFF;         /* cloud — card surfaces */
    --bg-dark: #F1EEE6;
    --border: #E7E4DB;         /* hairline */
    --sidebar-width: 280px;
    --header-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

/* Headings in Space Grotesk — squared letterforms echo the QR module grid. */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.header-logo svg {
    width: 36px;
    height: 36px;
}

.header-logo span {
    font-weight: 600;
    font-size: 1.25rem;
}

.header-logo .docs-badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 0.25rem;
}

.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg-alt);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.1);
}

.search-wrapper {
    position: relative;
}

.search-wrapper svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.header-actions a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.header-actions a:hover {
    color: var(--primary);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 0.75rem;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 1.5rem 0;
    z-index: 900;
    transition: transform 0.3s ease;
}

/* Sidebar Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 899;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

.sidebar-section {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

/* Collapsible Section Title */
.sidebar-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    user-select: none;
}

.sidebar-section-title:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.sidebar-section-title::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.sidebar-section.collapsed .sidebar-section-title::after {
    transform: rotate(-90deg);
}

.sidebar-section.collapsed .sidebar-nav {
    display: none;
}

.sidebar-nav {
    list-style: none;
    margin-top: 0.25rem;
}

.sidebar-nav li {
    margin: 2px 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: var(--bg-alt);
    color: var(--text);
    text-decoration: none;
}

.sidebar-nav a.active {
    background: rgba(240, 90, 40, 0.1);
    color: var(--primary);
    font-weight: 500;
    border-left: 3px solid var(--primary);
    padding-left: calc(0.75rem - 3px);
}

.sidebar-nav .has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav .has-children > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
}

.sidebar-nav .has-children.open > a::after {
    transform: rotate(180deg);
}

.sidebar-subnav {
    list-style: none;
    padding-left: 1rem;
    display: none;
    margin-top: 0.25rem;
}

.sidebar-nav .has-children.open .sidebar-subnav {
    display: block;
}

.sidebar-subnav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.sidebar-subnav a.active {
    border-left: 2px solid var(--primary);
    padding-left: calc(0.75rem - 2px);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.content-wrapper {
    max-width: 1536px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

/* Typography */
h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Document Header */
.doc-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.doc-header h1 {
    margin-bottom: 0.5rem;
}

.doc-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.doc-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Actions Bar */
.doc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-dark);
    text-decoration: none;
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border);
}

th {
    background: var(--bg-alt);
    font-weight: 600;
}

tr:hover {
    background: var(--bg-alt);
}

/* Code */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'IBM Plex Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1rem 0;
}

code {
    font-family: 'IBM Plex Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

:not(pre) > code {
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--primary-dark);
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin: 0.5rem 0;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-style: italic;
}

/* Alerts/Callouts */
.callout {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: #eff6ff;
    border-color: var(--primary);
}

.callout-warning {
    background: #fffbeb;
    border-color: var(--warning);
}

.callout-danger {
    background: #fef2f2;
    border-color: var(--danger);
}

.callout-success {
    background: #f0fdf4;
    border-color: var(--secondary);
}

.callout-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table of Contents */
.toc {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.toc-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

.toc-list li {
    margin: 0.35rem 0;
}

.toc-list a {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.toc-list ul {
    padding-left: 1rem;
    list-style: none;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-alt);
}

.search-result-title {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-result-excerpt mark {
    background: rgba(240, 90, 40, 0.2);
    color: var(--primary-dark);
}

.search-result-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.search-result-item.focused,
.search-result-item:focus {
    background: var(--bg-alt);
    outline: none;
}

.search-result-item.no-results {
    cursor: default;
}

.search-result-item.no-results:hover {
    background: transparent;
}

/* Print Styles */
@media print {
    .header, .sidebar, .doc-actions {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .content-wrapper {
        max-width: 100%;
        padding: 0;
    }

    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    a {
        color: var(--text);
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    table, pre, .callout {
        page-break-inside: avoid;
    }
}

/* Responsive - Tablet and Mobile */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .header-search {
        max-width: 300px;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-actions a {
        font-size: 0.85rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .doc-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .doc-actions {
        flex-wrap: wrap;
    }
}

/* Document Content Specific Styles */
.doc-content h2 {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.doc-content h3 {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Version Badge */
.version-badge {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.feature-card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   ADDITIONAL STYLES FOR NEW SECTIONS
   ========================================== */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

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

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Section Cards (Homepage) */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.section-card {
    display: block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.section-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.section-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    margin-bottom: 1rem;
}

.section-card-icon svg {
    color: white;
}

.section-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.section-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Feature Card with Icon */
.feature-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(240, 90, 40, 0.1);
    color: var(--primary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Competitor Cards */
.competitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.competitor-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.competitor-card.highlight {
    border-color: var(--primary);
    background: rgba(240, 90, 40, 0.05);
}

.competitor-logo {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.competitor-type {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.competitor-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.competitor-link {
    font-size: 0.875rem;
}

.competitor-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Analysis Cards */
.analysis-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.analysis-rating {
    font-weight: 600;
    color: var(--primary);
}

.analysis-threat {
    font-size: 0.875rem;
    color: var(--warning);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pros-cons h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pros h5 { color: #22c55e; }
.cons h5 { color: #ef4444; }

.pros-cons ul {
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.pros-cons li {
    margin: 0.25rem 0;
}

/* SWOT Analysis Grid */
.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.swot-card {
    padding: 1.25rem;
    border-radius: 8px;
}

.swot-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.swot-card ul {
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.swot-card.strengths {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.swot-card.strengths h4 { color: #16a34a; }

.swot-card.weaknesses {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.swot-card.weaknesses h4 { color: #dc2626; }

.swot-card.opportunities {
    background: rgba(240, 90, 40, 0.1);
    border: 1px solid rgba(240, 90, 40, 0.3);
}
.swot-card.opportunities h4 { color: #F05A28; }

.swot-card.threats {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.swot-card.threats h4 { color: #d97706; }

/* Comparison Table */
.comparison-table .yes {
    color: #22c55e;
    font-weight: 500;
}

.comparison-table .no {
    color: #ef4444;
}

.comparison-table .partial {
    color: #f59e0b;
}

.highlight-row {
    background: rgba(240, 90, 40, 0.05);
}

/* Content Pillars */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pillar-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
}

.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    margin-bottom: 1rem;
}

.pillar-icon svg {
    color: white;
}

.pillar-card h4 {
    margin-bottom: 0.75rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pillar-card ul {
    font-size: 0.875rem;
    padding-left: 1.25rem;
}

/* Calendar Tables */
.calendar-month {
    margin: 1.5rem 0;
}

.calendar-table {
    font-size: 0.85rem;
}

.calendar-table td {
    vertical-align: top;
}

/* Template Cards */
.template-card {
    background: #1e293b;
    border-radius: 8px;
    margin: 1rem 0;
}

.template-card pre {
    margin: 0;
    background: transparent;
}

/* Status Badges */
.status-complete {
    color: #22c55e;
    font-weight: 500;
}

.status-progress {
    color: #F05A28;
    font-weight: 500;
}

.status-pending {
    color: #6b7280;
    font-weight: 500;
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    flex: 1;
    min-width: 180px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.process-arrow {
    width: 24px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
    }
    .process-arrow {
        width: 2px;
        height: 24px;
    }
    .pros-cons {
        grid-template-columns: 1fr;
    }
    .swot-grid {
        grid-template-columns: 1fr;
    }
}

/* Positioning Box */
.positioning-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.positioning-box p {
    margin: 0.5rem 0;
}

.positioning-box p strong {
    color: var(--primary);
}

/* Message Grid */
.message-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.message-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.message-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.message-card ul {
    font-size: 0.875rem;
    padding-left: 1.25rem;
}

/* Ask Box */
.ask-box {
    background: linear-gradient(135deg, rgba(240, 90, 40, 0.05), rgba(240, 90, 40, 0.1));
    border: 1px solid rgba(240, 90, 40, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.ask-box h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.ask-item {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.ask-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.ask-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.ask-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Slide Outline */
.slide-outline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.slide {
    display: flex;
    gap: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.slide-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    flex-shrink: 0;
}

.slide-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.slide-content ul {
    font-size: 0.85rem;
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.slide-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.slide-notes {
    font-style: italic;
    color: var(--text-muted);
}

/* Tech Card */
.tech-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tech-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.tech-version {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Pipeline Diagram */
.pipeline-diagram {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.pipeline-stage {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    min-width: 140px;
    flex: 1;
}

.stage-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stage-jobs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job {
    font-size: 0.75rem;
    background: var(--bg-alt);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-light);
}

.pipeline-arrow {
    width: 24px;
    height: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

/* Branch Diagram */
.branch-diagram {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.branch-diagram pre {
    margin: 0;
    background: transparent;
    color: #e2e8f0;
}
