
/* ── Feed hero ───────────────────────────────────────────────────────────────── */
.feed-hero { padding: 120px 0 60px; border-bottom: 1px solid var(--border-color); }
.feed-hero .badge { display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent-lime); border: 1px solid var(--accent-lime);
    padding: 4px 12px; border-radius: 100px; margin-bottom: 20px; }
.feed-hero h1 { font-family: var(--font-sans); font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700; line-height: 1.1; }
.feed-hero h1 .serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.feed-hero-meta { margin-top: 18px; font-size: 0.8rem; font-family: var(--font-mono);
    color: var(--text-muted); letter-spacing: 0.08em; }
.feed-hero-meta span { color: var(--accent-lime); font-weight: 600; }

/* ── Card grid ───────────────────────────────────────────────────────────────── */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px; padding: 40px 0 80px; }

/* ── Card entrance animation ─────────────────────────────────────────────────── */
.feed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    text-decoration: none; color: var(--text-primary);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
                transform 0.55s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s ease,
                box-shadow 0.4s ease;
}
.feed-card.card-visible { opacity: 1; transform: translateY(0); }
.feed-card:hover {
    border-color: rgba(221, 248, 69, 0.35);
    box-shadow: 0 0 0 1px rgba(221,248,69,0.15), 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Card image wrapper ──────────────────────────────────────────────────────── */
.feed-card-img {
    aspect-ratio: 16/9; overflow: hidden;
    background: var(--bg-surface-hover);
    position: relative;
}
.feed-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(0.88) saturate(0.8);
    transition: transform 0.7s cubic-bezier(0.16,1,0.3,1),
                filter 0.4s ease;
}
.feed-card:hover .feed-card-img img {
    transform: scale(1.07);
    filter: brightness(1) saturate(1.1);
}

/* ── Hover overlay ───────────────────────────────────────────────────────────── */
.feed-card-img::after {
    content: 'READ';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,8,10,0.85) 0%, transparent 60%);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 16px 18px;
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.18em; color: var(--accent-lime);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.feed-card:hover .feed-card-img::after { opacity: 1; transform: translateY(0); }

/* ── No image placeholder ────────────────────────────────────────────────────── */
.feed-card-img .no-img {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
    letter-spacing: 0.1em;
    background: repeating-linear-gradient(45deg,
        var(--bg-surface) 0px, var(--bg-surface) 10px,
        var(--bg-surface-hover) 10px, var(--bg-surface-hover) 20px);
}

/* ── Card body ───────────────────────────────────────────────────────────────── */
.feed-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.feed-card-meta { display: flex; align-items: center; gap: 10px; }
.feed-card-date { font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-mono);
    letter-spacing: 0.08em; text-transform: uppercase; }
.post-type-tag {
    font-size: 0.6rem; font-family: var(--font-mono); font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 3px;
}
.post-type-tag.thought {
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
    background: rgba(173,0,255,0.06);
}
.post-type-tag.story {
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    background: rgba(0,240,255,0.06);
}
.feed-card-title { font-size: 1.05rem; font-weight: 600; line-height: 1.35;
    transition: color 0.2s; }
.feed-card:hover .feed-card-title { color: var(--accent-lime); }
.feed-card-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.feed-card-cta {
    font-size: 0.68rem; font-family: var(--font-mono); color: var(--accent-lime);
    letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.25s ease;
}
.feed-card:hover .feed-card-cta { gap: 12px; }

/* ── Reading progress bar (article pages) ────────────────────────────────────── */
#read-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: var(--accent-lime);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(221,248,69,0.6);
}

/* ── Article hero stagger delays ────────────────────────────────────────────── */
.article-hero .back-link.reveal    { transition-delay: 0.05s; }
.article-hero .article-meta.reveal { transition-delay: 0.15s; }
.article-hero h1.reveal            { transition-delay: 0.25s; }
.article-cover-wrap.reveal         { transition-delay: 0.1s; }

/* ── Article cover parallax wrapper ─────────────────────────────────────────── */
.article-cover-wrap {
    width: 100%; overflow: hidden;
    margin: 40px 0;
    border: 1px solid var(--border-color);
}
.article-cover {
    width: 100%; max-height: 520px; object-fit: cover; display: block;
    will-change: transform;
    transition: filter 0.4s ease;
}
.article-cover:hover { filter: brightness(1); }

/* ── Article body reveals ────────────────────────────────────────────────────── */
.article-body .reveal { transition-duration: 0.7s; }

/* ── Article page ────────────────────────────────────────────────────────────── */
.article-hero { padding: 120px 0 48px; border-bottom: 1px solid var(--border-color); }
.article-hero .back-link { display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted); text-decoration: none;
    margin-bottom: 32px; transition: color 0.2s, gap 0.2s; }
.article-hero .back-link:hover { color: var(--accent-lime); gap: 12px; }
.article-hero .article-meta { display: flex; align-items: center; gap: 16px;
    font-size: 0.72rem; font-family: var(--font-mono); color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.15;
    max-width: 820px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 0 96px; }
.article-body h1, .article-body h2 { font-size: 1.35rem; font-weight: 600; margin: 36px 0 14px; }
.article-body h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 10px; }
.article-body p { font-size: 1.0625rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.article-body p strong { color: var(--text-primary); }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 20px; }
.article-body li { font-size: 1.0625rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 8px; }
.article-body a { color: var(--accent-lime); }
.article-divider { border: none; border-top: 1px solid var(--border-color); margin: 48px 0; }

/* ── Filter bar ──────────────────────────────────────────────────────────────── */
.feed-filters {
    display: flex; align-items: center; gap: 10px;
    padding: 32px 0 8px;
    flex-wrap: wrap;
}
.feed-filter-btn {
    background: none; border: 1px solid var(--border-color);
    color: var(--text-secondary); font-family: var(--font-mono);
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 7px 18px; border-radius: 3px; cursor: pointer;
    transition: all 0.25s ease;
}
.feed-filter-btn:hover { border-color: var(--border-color-active); color: var(--text-primary); }
.feed-filter-btn.active { background: var(--accent-lime); border-color: var(--accent-lime);
    color: #07080a; font-weight: 700; }
.feed-filter-btn.thought.active { background: var(--accent-purple); border-color: var(--accent-purple); color: #fff; }
.feed-filter-btn.story.active { background: var(--accent-blue); border-color: var(--accent-blue); color: #07080a; }
.feed-count { font-size: 0.65rem; font-family: var(--font-mono); color: var(--text-muted);
    letter-spacing: 0.08em; margin-left: auto; }

.feed-grid { position: relative; }

/* ── AdSense unit ────────────────────────────────────────────────────────────── */
.ad-unit {
    max-width: 760px;
    margin: 48px auto 64px;
    text-align: center;
}
.ad-label {
    font-size: 0.55rem; font-family: var(--font-mono); letter-spacing: 0.16em;
    color: var(--text-muted); text-transform: uppercase;
    margin-bottom: 10px;
}
.ad-unit ins { background: transparent !important; }

@media (max-width: 760px) {
    .ad-unit ins {
        width: 320px !important;
        height: 50px !important;
    }
}

/* ── Active nav link ─────────────────────────────────────────────────────────── */
.nav-link.active { color: var(--accent-lime) !important; }

@media (max-width: 640px) { .feed-grid { grid-template-columns: 1fr; } }
