/* Blog Specific Styles */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-meta {
    display: block;
    color: var(--accent-color);
    font-family: var(--tech-font);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d1d5db; /* lighter gray for readability */
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: left;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Components */

/* 1. Executive Summary */
.executive-summary {
    background: rgba(59, 130, 246, 0.1); /* transparent blue */
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 0 8px 8px 0;
}

.summary-title {
    font-family: var(--tech-font);
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 2. Log Box / Terminal Output */
.log-box {
    background: #0d1117; /* GitHub Dark Dimmed */
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #c9d1d9;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

.log-box::before {
    content: "AGENT_LOG_STREAM";
    position: absolute;
    top: 0;
    right: 0;
    background: #21262d;
    color: #8b949e;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 0 8px 0 4px;
}

/* 3. Mock Interface Container */
.mock-interface-container {
    background: var(--card-bg); /* Use theme var */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 2.5rem 0;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
}

.mock-invoice-header {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mock-invoice-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-color);
}

.mock-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.mock-invoice-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
}

.mock-invoice-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-invoice-table tr:last-child td {
    border-bottom: none;
}

/* 4. Mock Card (Teams/Slack style) */
.mock-card {
    background: #ffffff;
    color: #333; /* Always light for this mock */
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mock-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.mock-card-status {
    background: #e6fcf5;
    color: #0ca678;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.mock-card-summary {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 0.8rem;
    border-left: 3px solid #6264A7; /* Teams Purple */
}

.mock-btn {
    background: #6264A7;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: default;
}

.mock-btn-outline {
    background: white;
    color: #6264A7;
    border: 1px solid #c8c8c8;
    padding: 5px 11px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: default;
}

/* 5. ROI Table */
.roi-table {
    width: 100%;
    margin: 3rem 0;
    border-collapse: collapse;
    font-size: 1rem;
}

.roi-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.roi-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.roi-table tfoot td {
    border-top: 2px solid var(--border-color);
    font-weight: bold;
    background: rgba(255,255,255,0.02);
}

/* 6. Architecture Diagram (CSS Grid) */
.architecture-diagram {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    overflow-x: auto; /* Allow scroll on mobile */
}

.diag-node {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    min-width: 100px;
    position: relative;
}

.diag-node small {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.8;
}

/* Node Types */
.diag-node.system {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

.diag-node.ai {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.diag-node.human {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid #059669;
}

.diag-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Responsive Diagram */
@media (max-width: 768px) {
    .architecture-diagram {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 0.5rem;
    }
    .diag-arrow {
        transform: rotate(90deg); /* Point down */
        margin: -5px 0;
    }
}

/* Search & Filters */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

mark {
    background: rgba(255, 255, 0, 0.2);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}
