/* ═══════════════════════════════════════════════════════════
   Opsite Ghost Theme — Matching useopsite.com dark design
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #090909;
    --bg-secondary: #0f0f0f;
    --bg-surface: #141414;
    --bg-surface-hover: #1a1a1a;
    --bg-surface-light: #1f1f1f;
    --border-default: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.1);
    --border-strong: rgba(255,255,255,0.15);
    --text-primary: #ededed;
    --text-secondary: #a1a1a1;
    --text-tertiary: #6b6b6b;
    --text-muted: #4a4a4a;
    --brand: #00E87B;
    --brand-dim: #00C968;
    --brand-glow: rgba(0, 232, 123, 0.15);
    --brand-dark: rgba(0, 232, 123, 0.08);
    --brand-subtle: rgba(0, 232, 123, 0.05);
    --accent-blue: #4da2ff;
    --accent-purple: #9b8aff;
    --accent-orange: #f0883e;
    --accent-gold: #ffd93d;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 150ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(9, 9, 9, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--border-default);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #000;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 6px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link-active {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn-ghost {
    padding: 6px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-btn-ghost:hover {
    color: var(--text-primary);
}

.nav-btn-primary {
    padding: 6px 16px;
    background: var(--brand);
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.nav-btn-primary:hover {
    background: var(--brand-dim);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-brand {
    background: var(--brand);
    color: #000;
}

.btn-brand:hover {
    background: var(--brand-dim);
    box-shadow: 0 0 30px rgba(62, 207, 142, 0.2);
}

.btn-arrow {
    transition: transform var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Blog Hero ─── */
.blog-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-sm {
    padding: 140px 0 40px;
}

.blog-hero .hero-glow,
.post-header .hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    cursor: default;
    transition: border-color var(--transition);
}

.hero-badge:hover {
    border-color: var(--border-hover);
}

.hero-badge-icon {
    width: 24px;
    height: 24px;
    background: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.blog-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ─── Blog Feed / Post Cards ─── */
.blog-feed {
    padding: 60px 0 80px;
}

.blog-feed .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.post-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 232, 123, 0.1);
}

.post-card:hover .post-card-title {
    color: var(--brand);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.post-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-default);
}

.post-card-image-placeholder {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    background: var(--brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #000;
    opacity: 0.5;
}

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

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-card-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
    padding: 2px 8px;
    background: var(--brand-dark);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-card-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.post-card-author-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.post-card-read-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ─── Single Post ─── */
.post-header {
    padding: 140px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-header-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
}

.post-tag-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
    padding: 4px 12px;
    background: var(--brand-dark);
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--transition);
}

.post-tag-link:hover {
    background: var(--brand-glow);
}

.post-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.post-excerpt {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.post-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.post-author-info {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.post-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-author-bio {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
}

.post-meta-details {
    font-size: 14px;
    color: var(--text-tertiary);
}

.post-meta-sep {
    margin: 0 8px;
}

/* Feature image */
.post-feature-image {
    margin-bottom: 48px;
}

.post-feature-image img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
}

.post-feature-image figcaption {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ─── Post Content (Ghost content styles) ─── */
.post-content {
    padding: 0 0 60px;
}

.post-content-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content-body h1,
.post-content-body h2,
.post-content-body h3,
.post-content-body h4,
.post-content-body h5,
.post-content-body h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
}

.post-content-body h2 {
    font-size: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-default);
}

.post-content-body h3 {
    font-size: 22px;
}

.post-content-body h4 {
    font-size: 18px;
}

.post-content-body p {
    margin-bottom: 24px;
}

.post-content-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.post-content-body a:hover {
    color: var(--brand-dim);
}

.post-content-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-content-body em {
    font-style: italic;
}

.post-content-body ul,
.post-content-body ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.post-content-body li {
    margin-bottom: 8px;
}

.post-content-body li::marker {
    color: var(--brand);
}

.post-content-body blockquote {
    border-left: 3px solid var(--brand);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 18px;
    font-style: italic;
    color: var(--text-primary);
}

.post-content-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-content-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.post-content-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--brand);
}

.post-content-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    margin: 32px 0;
}

.post-content-body figure {
    margin: 32px 0;
}

.post-content-body figcaption {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.post-content-body hr {
    border: none;
    border-top: 1px solid var(--border-default);
    margin: 48px 0;
}

.post-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.post-content-body table th,
.post-content-body table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-default);
}

.post-content-body table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-content-body table td {
    color: var(--text-secondary);
}

/* Ghost-specific content cards */
.post-content-body .kg-card {
    margin: 32px 0;
}

.post-content-body .kg-image-card img,
.post-content-body .kg-gallery-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
}

.post-content-body .kg-width-wide {
    max-width: 1040px;
    margin-left: calc(50% - 520px);
    margin-right: calc(50% - 520px);
}

.post-content-body .kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.post-content-body .kg-bookmark-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}

.post-content-body .kg-bookmark-card:hover {
    border-color: var(--border-hover);
}

.post-content-body .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.post-content-body .kg-bookmark-content {
    padding: 20px;
    flex: 1;
}

.post-content-body .kg-bookmark-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.post-content-body .kg-bookmark-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-content-body .kg-bookmark-metadata {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.post-content-body .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.post-content-body .kg-bookmark-thumbnail {
    width: 200px;
    min-height: 160px;
    object-fit: cover;
}

.post-content-body .kg-callout-card {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.post-content-body .kg-callout-card-grey {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
}

.post-content-body .kg-callout-card-green {
    background: var(--brand-dark);
    border: 1px solid rgba(0, 232, 123, 0.15);
}

.post-content-body .kg-callout-text {
    font-size: 16px;
    line-height: 1.6;
}

.post-content-body .kg-callout-emoji {
    font-size: 20px;
}

.post-content-body .kg-toggle-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.post-content-body .kg-toggle-heading {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-primary);
}

.post-content-body .kg-toggle-content {
    padding: 0 20px 16px;
    color: var(--text-secondary);
}

/* ─── Post Tags ─── */
.post-tags {
    padding: 0 0 40px;
}

.post-tags-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 32px;
    border-top: 1px solid var(--border-default);
}

.post-tag-pill {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.post-tag-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-dark);
}

/* ─── Related Posts ─── */
.related-posts {
    padding: 60px 0;
    border-top: 1px solid var(--border-default);
}

.related-posts .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ─── Author Page ─── */
.author-header {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-default);
}

.author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

/* ─── Pagination ─── */
.pagination {
    padding: 0 0 60px;
}

.pagination .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.pagination-btn {
    padding: 8px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.pagination-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ─── CTA Section ─── */
.blog-cta {
    padding: 0 0 80px;
}

.cta-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    position: relative;
}

.cta-card p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

/* ─── Error Page ─── */
.error-page {
    padding: 200px 0 120px;
    text-align: center;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ─── Footer ─── */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-default);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition);
}

.footer-social a:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-default);
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-badge {
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* ─── Mobile Nav ─── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-default);
    z-index: 99;
    padding: 24px;
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    display: block;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.mobile-nav a:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.mobile-nav .mobile-cta {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--brand);
    color: #000;
    text-align: center;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .blog-feed .container,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-right { display: none; }
    .mobile-menu-btn { display: block; }

    .blog-hero { padding: 120px 0 40px; }
    .post-header { padding: 120px 0 32px; }

    .blog-feed .container,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-card-image {
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .author-header {
        flex-direction: column;
        text-align: center;
    }

    .post-content-body .kg-width-wide {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ─── Ghost-specific overrides ─── */
/* Hide Ghost default injected elements that conflict */
.gh-head,
.gh-foot,
.site-header,
.site-footer {
    display: none !important;
}

/* Ghost members / subscribe CTA cards */
.post-content-body .kg-button-card {
    text-align: center;
    margin: 32px 0;
}

.post-content-body .kg-button-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--brand);
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.post-content-body .kg-button-card a:hover {
    background: var(--brand-dim);
    color: #000;
}

/* Ghost video card */
.post-content-body .kg-video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-default);
}

/* Ghost audio card */
.post-content-body .kg-audio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 16px;
}

/* Ghost file card */
.post-content-body .kg-file-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
}

.post-content-body .kg-file-card a {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
}

/* Ghost header card */
.post-content-body .kg-header-card {
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 32px 0;
}

.post-content-body .kg-header-card h2 {
    border-bottom: none;
    padding-bottom: 0;
}
