/* =========================================================
   P2P KOLs — Blog CSS (extends landing.css)
   ========================================================= */

/* ── Blog page body (mirrors landing-page tokens) ── */
.blog-page {
    --bg:          #06060a;
    --surface-1:   #0d0d14;
    --surface-2:   #13131e;
    --surface-3:   #1a1a28;
    --border:      rgba(255,255,255,0.07);
    --border-md:   rgba(255,255,255,0.12);
    --text-1:      #ffffff;
    --text-2:      rgba(255,255,255,0.60);
    --text-3:      rgba(255,255,255,0.35);
    --accent:      #00ff88;
    --accent-dim:  rgba(0,255,136,0.15);
    --accent-glow: rgba(0,255,136,0.08);

    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Blog nav (same visual as landing nav) ── */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: rgba(6,6,10,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}
.blog-nav .nav-logo a { display: flex; align-items: center; }
.blog-nav .nav-center {
    display: flex;
    gap: 28px;
    align-items: center;
}
.blog-nav .nav-center a,
.blog-nav .nav-center span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2, rgba(255,255,255,0.6));
    text-decoration: none;
    transition: color .2s;
}
.blog-nav .nav-center a.active,
.blog-nav .nav-center a:hover { color: var(--text-1, #fff); }
.blog-nav .nav-cta { display: flex; gap: 10px; align-items: center; }

/* btn-sm for blog nav */
.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 7px;
}

/* ── Blog main ── */
.blog-main {
    flex: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    width: 100%;
}
.blog-main--post { max-width: 760px; }

/* ── Blog header ── */
.blog-header {
    margin-bottom: 40px;
}
.blog-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.blog-header p { font-size: 16px; color: var(--text-2); line-height: 1.6; }

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 13px;
    color: var(--text-3, rgba(255,255,255,0.35));
    margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-1); }

/* ── Category pills ── */
.blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.cat-pill {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--surface-1, #0d0d14);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.cat-pill:hover { border-color: var(--border-md); color: var(--text-1); }
.cat-pill.active {
    background: var(--accent-dim, rgba(0,255,136,0.15));
    border-color: rgba(0,255,136,0.25);
    color: var(--accent, #00ff88);
}

/* ── Post grid ── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Post card ── */
.post-card {
    background: var(--surface-1, #0d0d14);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { border-color: var(--border-md); background: var(--surface-2); }

.post-card__img-wrap { display: block; overflow: hidden; }
.post-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.post-card:hover .post-card__img { transform: scale(1.03); }

.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.post-card__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 10px;
}
.post-card__cat:hover { opacity: .75; }

.post-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}
.post-card__title a { color: var(--text-1); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }

.post-card__desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-3);
}
.post-card__kw {
    padding: 2px 8px;
    background: var(--surface-3, #1a1a28);
    border-radius: 4px;
    font-size: 11px;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}
.page-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--surface-1);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s;
}
.page-btn:hover { border-color: var(--border-md); color: var(--text-1); }
.page-info { font-size: 14px; color: var(--text-3); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 80px 0; color: var(--text-3); }

/* ── Blog footer ── */
.blog-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
}
.blog-footer p { font-size: 13px; color: var(--text-3); }
.blog-footer a { color: var(--text-2); text-decoration: none; }
.blog-footer a:hover { color: var(--text-1); }

/* ── Post article ── */
.post-article { max-width: 720px; }

.post-article__header { margin-bottom: 32px; }
.post-article__header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text-1);
    margin-bottom: 16px;
}
.post-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-3);
    flex-wrap: wrap;
}
.post-article__kw {
    padding: 2px 8px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.post-article__words { color: var(--text-3); }

.post-article__cover-wrap { margin-bottom: 36px; border-radius: 12px; overflow: hidden; }
.post-article__cover { width: 100%; display: block; max-height: 420px; object-fit: cover; }

/* ── Post content typography ── */
.post-article__content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-2, rgba(255,255,255,0.7));
    margin-bottom: 48px;
}
.post-article__content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-1);
    margin: 2em 0 .5em;
    line-height: 1.3;
}
.post-article__content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--text-1);
    margin: 1.6em 0 .4em;
}
.post-article__content p { margin-bottom: 1em; }
.post-article__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-article__content ul, .post-article__content ol { padding-left: 1.4em; margin-bottom: 1em; }
.post-article__content li { margin-bottom: .4em; }
.post-article__content strong { color: var(--text-1); font-weight: 600; }
.post-article__content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--surface-2);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-2);
}
.post-article__content code {
    background: var(--surface-3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .88em;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}
.post-article__content pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 1em;
}
.post-article__content pre code { background: none; padding: 0; color: var(--text-2); }
.post-article__content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* ── Post FAQ ── */
.post-article__faq { margin-bottom: 48px; }
.post-article__faq h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 20px;
}
.post-article__faq .faq-item { margin-bottom: 8px; }

/* Blog page faq-item (reuse landing styles, extend here just in case) */
.blog-page .faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-1);
    overflow: hidden;
    transition: border-color .2s;
}
.blog-page .faq-item[open] { border-color: var(--border-md); }
.blog-page .faq-item summary {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blog-page .faq-item summary::-webkit-details-marker { display: none; }
.blog-page .faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: var(--text-3);
    transition: transform .2s;
}
.blog-page .faq-item[open] summary::after { transform: rotate(45deg); }
.blog-page .faq-item p, .blog-page .faq-item .faq-item__a {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── Post CTA ── */
.post-article__cta {
    background: var(--surface-2);
    border: 1px solid var(--border-md);
    border-radius: 14px;
    padding: 36px;
    text-align: center;
    margin-bottom: 48px;
}
.post-article__cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}
.post-article__cta p { font-size: 14px; color: var(--text-2); margin-bottom: 24px; line-height: 1.6; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Related posts ── */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-posts h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
}
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.related-card:hover { border-color: var(--border-md); background: var(--surface-2); }
.related-card__title { font-size: 14px; font-weight: 500; color: var(--text-1); margin-bottom: 6px; line-height: 1.4; }
.related-card__meta { font-size: 12px; color: var(--text-3); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .blog-nav { padding: 0 20px; }
    .blog-nav .nav-center { display: none; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-main--post { max-width: 100%; }
}
@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .post-article__cta { padding: 24px 20px; }
    .cta-btns { flex-direction: column; align-items: center; }
}
