/* ========================================
   Blog Post Page Styles
   ======================================== */

.post-page { padding: 120px 0 80px; }
.post-container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.post-header { margin-bottom: 40px; }
.post-header .post-tags { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-company-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.8;
}
.post-header .post-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.post-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}
.post-header-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Prose */
.post-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.post-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.post-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
}
.post-body p { margin-bottom: 20px; }
.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-body a:hover { color: #00ff88; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body ul, .post-body ol {
    margin: 0 0 20px 24px;
    list-style: disc;
}
.post-body ol { list-style: decimal; }
.post-body li {
    margin-bottom: 8px;
    padding-left: 4px;
}
.post-body img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 24px 0;
}
.post-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
    font-style: italic;
}

/* Code */
.post-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}
.post-body pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    position: relative;
}
.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.code-header + pre {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
}
.copy-btn {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
    font-family: var(--font-mono);
    background: none;
    border: none;
}
.copy-btn:hover { color: var(--accent); }

/* Info boxes */
.info-box {
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 14px;
}
.info-box.warning {
    background: var(--yellow-dim);
    border: 1px solid rgba(255, 215, 64, 0.2);
    color: var(--yellow);
}
.info-box.danger {
    background: var(--red-dim);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: var(--red);
}
.info-box.tip {
    background: var(--accent-dim);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--accent);
}

/* Table of Contents */
.toc {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}
.toc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(0,230,118,0.15) 100%);
}
.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.toc-header svg {
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
}
.toc h4 {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
}
.toc h4 .toc-accent {
    color: var(--accent);
    margin-right: 6px;
}
.toc ol {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    counter-reset: toc-counter;
}
.toc li {
    counter-increment: toc-counter;
    padding: 0;
    font-size: 14px;
    position: relative;
}
.toc li a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 24px;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
    margin-left: -1px;
}
.toc li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 20px;
    transition: color var(--transition);
}
.toc li a:hover {
    color: var(--text);
    background: rgba(0, 230, 118, 0.04);
    border-left-color: var(--accent);
}
.toc li a:hover::before {
    color: var(--accent);
}

/* Figures & Screenshots */
.post-body figure {
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.post-body figure img {
    width: 100%;
    display: block;
    margin: 0;
    border: none;
    border-radius: 0;
}
.post-body figure figcaption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-style: italic;
    line-height: 1.5;
}
.post-body figure figcaption strong {
    color: var(--text-secondary);
    font-style: normal;
}
.post-body figure video {
    width: 100%;
    display: block;
    margin: 0;
    border: none;
    border-radius: 0;
}

/* Plain-English explainer boxes */
.info-box.explain {
    background: rgba(64, 196, 255, 0.08);
    border: 1px solid rgba(64, 196, 255, 0.2);
    color: var(--accent-secondary);
}
.info-box.explain strong {
    color: var(--accent-secondary);
}

/* Post Footer */
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.post-author-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.post-author-card .avatar-placeholder {
    width: 56px;
    height: 56px;
    font-size: 18px;
}
.post-author-info h4 { font-size: 15px; font-weight: 700; }
.post-author-info p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

@media (max-width: 640px) {
    .post-header .post-title { font-size: 26px; }
}
