/* Yeux News + Blog — Aave-style vertical list & wide article layout */

#page-news.page-content:not(.active) {
    display: none !important;
}

#page-news.page-content.active {
    width: 100%;
    max-width: none;
    padding: 0 !important;
    background: #0a0a0b;
}
body.theme-light #page-news.page-content.active {
    background: #f4f6f8;
}

/* ── Wide shell ── */
.blog-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 72px;
    box-sizing: border-box;
}
.blog-shell--wide {
    max-width: min(1200px, 100%);
}

/* AI news block when enabled */
.blog-shell .news-page--modern {
    max-width: none;
    margin: 0 0 40px;
    padding: 0;
}

/* ── Masthead ── */
.blog-masthead {
    padding: 48px 0 32px;
}
.blog-masthead-title {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #f5f5f5;
}
body.theme-light .blog-masthead-title { color: #0f1419; }
.blog-masthead-sub {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: #8b98a5;
    max-width: 640px;
}
body.theme-light .blog-masthead-sub { color: #64748b; }

/* ── Horizontal rule ── */
.blog-rule {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}
body.theme-light .blog-rule { border-top-color: #e2e8f0; }

/* ── Featured post ── */
.blog-featured {
    padding: 40px 0;
    cursor: pointer;
    outline: none;
    transition: opacity 0.15s ease;
}
.blog-featured:hover,
.blog-featured:focus-visible {
    opacity: 0.88;
}
.blog-featured-title {
    margin: 0 0 16px;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #f0f0f0;
    max-width: 900px;
}
body.theme-light .blog-featured-title { color: #0f1419; }
.blog-featured-excerpt {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 780px;
}
body.theme-light .blog-featured-excerpt { color: #64748b; }

/* ── Recent posts header + filters ── */
.blog-recent-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 36px 0 20px;
}
.blog-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f0f0;
}
body.theme-light .blog-section-title { color: #0f1419; }

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-filter-chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.blog-filter-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}
.blog-filter-chip.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f5f5f5;
}
body.theme-light .blog-filter-chip {
    border-color: #e2e8f0;
    color: #64748b;
}
body.theme-light .blog-filter-chip:hover {
    background: #f1f5f9;
    color: #334155;
}
body.theme-light .blog-filter-chip.active {
    background: #0f1419;
    border-color: #0f1419;
    color: #fff;
}

/* ── Vertical post list (Aave rows) ── */
.blog-list-view { padding: 0; }
.blog-list--vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    outline: none;
    transition: background 0.12s ease;
}
.blog-row:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.blog-row:hover,
.blog-row:focus-visible {
    background: rgba(255, 255, 255, 0.03);
}
body.theme-light .blog-row {
    border-bottom-color: #e8edf1;
}
body.theme-light .blog-row:first-child { border-top-color: #e8edf1; }
body.theme-light .blog-row:hover,
body.theme-light .blog-row:focus-visible {
    background: rgba(15, 20, 25, 0.03);
}

.blog-row-main { flex: 1; min-width: 0; }
.blog-row-title {
    margin: 0;
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: #f0f0f0;
}
body.theme-light .blog-row-title { color: #0f1419; }

.blog-row-aside { flex-shrink: 0; }

/* Category pills */
.blog-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.blog-pill-brand {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
body.theme-light .blog-pill-brand {
    background: #f1f5f9;
    color: #334155;
}
.blog-pill-news         { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.blog-pill-announcement { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.blog-pill-guide        { background: rgba(34, 197, 94, 0.15);  color: #4ade80; }
.blog-pill-feature      { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.blog-pill-update       { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.blog-pill-market       { background: rgba(244, 63, 94, 0.15);  color: #fb7185; }
.blog-pill-product      { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.blog-pill-research     { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.blog-empty,
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 72px 24px;
    color: #8b98a5;
    font-size: 15px;
    text-align: center;
}
.blog-empty i,
.blog-loading i { font-size: 36px; opacity: 0.45; color: #3b82f6; }

.blog-list-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.blog-loadmore-btn {
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.blog-loadmore-btn:hover { background: rgba(255, 255, 255, 0.06); }
.blog-loadmore-btn:disabled { opacity: 0.5; cursor: default; }
body.theme-light .blog-loadmore-btn {
    border-color: #e2e8f0;
    color: #334155;
}
body.theme-light .blog-loadmore-btn:hover { background: #f1f5f9; }

/* ── Article detail (Aave case-study style) ── */
.blog-detail-view {
    width: 100%;
    padding: 0 0 64px;
}
.blog-article-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 24px 0 32px;
    transition: color 0.15s ease;
}
.blog-back-btn:hover { color: #e2e8f0; }
body.theme-light .blog-back-btn { color: #64748b; }
body.theme-light .blog-back-btn:hover { color: #0f1419; }

.blog-article-header { margin-bottom: 32px; }
.blog-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 20px;
}
.blog-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8b98a5;
}
body.theme-light .blog-article-meta-item { color: #64748b; }

.blog-article-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #f5f5f5;
}
body.theme-light .blog-article-title { color: #0f1419; }

.blog-article-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
}
.blog-article-cover img {
    width: 100%;
    display: block;
}

.blog-article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #d1d5db;
}
body.theme-light .blog-article-body { color: #334155; }
.blog-article-body p { margin: 0 0 22px; }
.blog-article-body h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 40px 0 14px;
    letter-spacing: -0.02em;
    color: #f8fafc;
}
.blog-article-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #f1f5f9;
}
body.theme-light .blog-article-body h2 { color: #0f172a; }
body.theme-light .blog-article-body h3 { color: #1e293b; }
.blog-article-body ul,
.blog-article-body ol { margin: 0 0 22px; padding-left: 28px; }
.blog-article-body li { margin-bottom: 10px; }
.blog-article-body a { color: #60a5fa; text-decoration: underline; }
.blog-article-body blockquote {
    margin: 28px 0;
    padding: 16px 24px;
    border-left: 3px solid #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 0 8px 8px 0;
    color: #94a3b8;
    font-style: italic;
}
.blog-article-body img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
.blog-article-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 36px 0;
}
body.theme-light .blog-article-body hr { border-top-color: #e2e8f0; }

/* ── Reactions ── */
.blog-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 0;
    padding: 28px 0;
}
.blog-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.blog-react-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
.blog-react-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.blog-react-btn.active {
    background: rgba(59, 130, 246, 0.18);
    border-color: #3b82f6;
}
.blog-react-emoji { font-size: 20px; }
.blog-react-count { font-size: 13px; font-weight: 700; color: #94a3b8; }
.blog-react-btn.active .blog-react-count { color: #93c5fd; }

/* ── Comments ── */
.blog-comments {
    margin-top: 8px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
body.theme-light .blog-comments { border-top-color: #e2e8f0; }

.blog-comments-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f0f0;
}
body.theme-light .blog-comments-title { color: #0f1419; }
.blog-comments-sub {
    margin: 0 0 24px;
    font-size: 14px;
    color: #8b98a5;
}
body.theme-light .blog-comments-sub { color: #64748b; }

.blog-comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.blog-comment-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
    max-height: 220px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f0f0f0;
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}
body.theme-light .blog-comment-form textarea {
    background: #fff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.blog-comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.blog-comment-submit {
    align-self: flex-start;
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    background: #f5f5f5;
    color: #0a0a0b;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.blog-comment-submit:hover { opacity: 0.9; }
.blog-comment-submit:disabled { opacity: 0.5; cursor: default; }
body.theme-light .blog-comment-submit {
    background: #0f1419;
    color: #fff;
}

.blog-comment-list { display: flex; flex-direction: column; gap: 20px; }
.blog-comment-empty { color: #8b98a5; font-size: 14px; padding: 8px 0; }

.blog-comment {
    display: flex;
    gap: 14px;
    padding: 0;
}
.blog-comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    overflow: hidden;
}
.blog-comment-avatar--img {
    padding: 0;
    background: #1e293b;
}
.blog-comment-avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-comment-main { flex: 1; min-width: 0; }
.blog-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.blog-comment-user { font-weight: 700; font-size: 14px; color: #f0f0f0; display: inline-flex; align-items: center; gap: 4px; }
body.theme-light .blog-comment-user { color: #0f172a; }

.yeux-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88em;
    line-height: 1;
}
.yeux-verified--admin { color: #f97316; }
.yeux-verified--premium { color: #7dd3fc; }
.blog-comment-time { font-size: 12px; color: #8b98a5; }
.blog-comment-del {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #8b98a5;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
}
.blog-comment-del:hover { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.blog-comment-body {
    font-size: 15px;
    line-height: 1.6;
    color: #d1d5db;
    white-space: pre-wrap;
    word-break: break-word;
}
body.theme-light .blog-comment-body { color: #334155; }

@media (max-width: 768px) {
    .blog-shell { padding: 0 20px 56px; }
    .blog-masthead { padding: 32px 0 24px; }
    .blog-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 0;
    }
    .blog-recent-head { flex-direction: column; align-items: flex-start; }
    .blog-article-wrap { max-width: none; }
    .blog-comment-submit { width: 100%; text-align: center; }
}
