/* ==========================================================================
   BLOG & ARTICLE DESIGN SYSTEM — V7 EXECUTIVE EDITION
   Design Language: OLED Dark Tech + Warm Gold & Cyan Ambient Atmosphere
   Typography: Syne (Headings), JetBrains Mono (Specs/Pills/Dates), DM Sans (Editorial Body)
   ========================================================================== */

:root {
    --blog-bg: #060913;
    --blog-surface: #0a0e18;
    --blog-surface-2: #101624;
    --blog-surface-3: #151e30;
    --blog-surface-hover: #182338;
    --blog-border: rgba(240, 238, 232, 0.08);
    --blog-border-glow: rgba(216, 167, 69, 0.28);
    --blog-border-cyan: rgba(125, 185, 198, 0.25);
    --blog-text-main: #f0eee8;
    --blog-text-body: #d4dae2;
    --blog-text-muted: #9ba6b4;
    --blog-text-sub: #606d80;
    --blog-gold: #d8a745;
    --blog-gold-bright: #f5c065;
    --blog-gold-bg: rgba(216, 167, 69, 0.08);
    --blog-gold-glow: rgba(216, 167, 69, 0.22);
    --blog-cyan: #7db9c6;
    --blog-cyan-bg: rgba(125, 185, 198, 0.08);
    --blog-lime: #c8ff00;
    --blog-lime-bg: rgba(200, 255, 0, 0.08);
    --blog-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --blog-radius-lg: 24px;
    --blog-radius-md: 16px;
    --blog-radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Base Body Styles */
body.blog-page-body,
body.article-page-body {
    margin: 0;
    padding: 0;
    background-color: var(--blog-bg);
    color: var(--blog-text-main);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 70% 35% at 85% 5%, rgba(216, 167, 69, 0.07), transparent 60%),
        radial-gradient(ellipse 60% 35% at 15% 40%, rgba(125, 185, 198, 0.05), transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 85%, rgba(216, 167, 69, 0.04), transparent 50%);
    background-attachment: fixed;
}

/* ==========================================================================
   READING PROGRESS BAR (Top Sticky)
   ========================================================================== */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blog-gold), var(--blog-cyan), var(--blog-lime));
    box-shadow: 0 0 12px var(--blog-gold-glow);
    transition: width 0.08s ease-out;
}

/* ==========================================================================
   BLOG LISTING SECTION & HERO
   ========================================================================== */
.blog-listing-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 2.4rem) 24px 60px;
}

.blog-hero-header {
    max-width: 820px;
    margin-bottom: 1.4rem;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blog-gold-bright);
    background: var(--blog-gold-bg);
    border: 1px solid rgba(216, 167, 69, 0.25);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.blog-dot {
    width: 5px;
    height: 5px;
    background: var(--blog-lime);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--blog-lime);
    animation: blogPulse 2s infinite ease-in-out;
}

@keyframes blogPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.blog-hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--blog-text-main);
}

.blog-hero-title span {
    background: linear-gradient(135deg, var(--blog-text-main) 30%, var(--blog-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero-desc {
    font-size: 0.9rem;
    color: var(--blog-text-muted);
    line-height: 1.55;
    max-width: 680px;
    margin: 0;
}

/* ==========================================================================
   CONTROLS: SEARCH & CATEGORY PILLS
   ========================================================================== */
.blog-controls-wrapper {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    padding: 6px 18px;
    transition: border-color 0.25s var(--blog-ease), box-shadow 0.25s var(--blog-ease), background 0.25s;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.4);
}

.search-box-container:focus-within {
    border-color: var(--blog-gold);
    box-shadow: 0 0 0 1px var(--blog-gold-glow), 0 12px 30px -10px rgba(0, 0, 0, 0.6);
    background: var(--blog-surface-2);
}

.search-icon {
    font-size: 1.05rem;
    margin-right: 12px;
    opacity: 0.7;
    color: var(--blog-gold);
}

.search-box-container input[type="search"] {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
    color: var(--blog-text-main);
    padding: 10px 0;
}

.search-box-container input[type="search"]::placeholder {
    color: var(--blog-text-sub);
}

.search-spinner {
    font-size: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Category Filter Pills */
.category-pills-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(216, 167, 69, 0.25) transparent;
}

.category-pills-bar::-webkit-scrollbar {
    height: 4px;
}

.category-pills-bar::-webkit-scrollbar-thumb {
    background: rgba(216, 167, 69, 0.25);
    border-radius: 4px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blog-text-muted);
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s var(--blog-ease);
}

.cat-pill .cat-count {
    color: var(--blog-text-sub);
    font-size: 0.72rem;
    transition: color 0.25s;
}

.cat-pill:hover {
    color: var(--blog-text-main);
    border-color: rgba(240, 238, 232, 0.25);
    background: var(--blog-surface-2);
    transform: translateY(-1px);
}

.cat-pill.active {
    color: #060913;
    background: var(--blog-gold);
    border-color: var(--blog-gold);
    font-weight: 700;
    box-shadow: 0 4px 16px var(--blog-gold-glow);
}

.cat-pill.active .cat-count {
    color: rgba(6, 9, 19, 0.75);
}

/* ==========================================================================
   BLOG GRID & ARTICLE CARDS
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
    margin-bottom: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s var(--blog-ease), border-color 0.35s var(--blog-ease), box-shadow 0.35s var(--blog-ease);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 167, 69, 0.35);
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.7), 0 0 20px -8px rgba(216, 167, 69, 0.15);
}

.blog-card-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d121c;
    position: relative;
}

.blog-card-img-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(6, 9, 19, 0.7) 100%);
    pointer-events: none;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s var(--blog-ease);
}

.blog-card:hover .blog-img {
    transform: scale(1.06);
}

.blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--blog-surface);
}

.blog-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.blog-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blog-cyan);
    background: var(--blog-cyan-bg);
    border: 1px solid var(--blog-border-cyan);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s var(--blog-ease);
}

.blog-category .cat-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blog-cyan);
}

.blog-category:hover {
    color: #fff;
    background: rgba(125, 185, 198, 0.2);
    border-color: var(--blog-cyan);
}

.blog-reading-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--blog-text-muted);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: var(--blog-text-main);
    text-decoration: none;
    transition: color 0.2s var(--blog-ease);
}

.blog-card:hover .blog-title a {
    color: var(--blog-gold-bright);
}

.blog-excerpt {
    font-size: 0.92rem;
    color: var(--blog-text-muted);
    line-height: 1.65;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--blog-border);
}

.blog-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    color: var(--blog-text-sub);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blog-gold-bright);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s var(--blog-ease), color 0.2s;
}

.read-more span {
    transition: transform 0.25s var(--blog-ease);
}

.blog-card:hover .read-more {
    color: #fff;
}

.blog-card:hover .read-more span {
    transform: translateX(4px);
}

/* ==========================================================================
   LIVE SEARCH RESULTS OVERLAY
   ========================================================================== */
.live-search-results {
    margin-bottom: 4rem;
}

.live-search-results h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--blog-gold-bright);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    margin: 40px auto;
    max-width: 600px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--blog-text-muted);
    margin-bottom: 24px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--blog-gold);
    color: #060913;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s var(--blog-ease);
}

.action-btn:hover {
    background: var(--blog-gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--blog-gold-glow);
}

/* ==========================================================================
   PAGINATION CONTROLS
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 100px;
    padding: 6px 10px;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.4);
}

.page-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: all 0.2s var(--blog-ease);
}

.page-btn:hover:not(.disabled) {
    color: var(--blog-text-main);
    background: var(--blog-surface-2);
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: all 0.2s var(--blog-ease);
}

.page-number:hover {
    color: var(--blog-text-main);
    background: var(--blog-surface-2);
}

.page-number.active {
    color: #060913;
    background: var(--blog-gold);
    font-weight: 800;
    box-shadow: 0 0 12px var(--blog-gold-glow);
}

/* ==========================================================================
   SINGLE ARTICLE VIEW — HIGH-END EDITORIAL MASTERY
   ========================================================================== */
.article-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(2rem, 4.5vw, 4rem) 24px 100px;
}

/* Top Action Bar with Floating Back Button & Breadcrumbs */
.article-top-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 2.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--blog-border);
}

.article-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blog-text-muted);
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    padding: 7px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s var(--blog-ease);
}

.article-back-pill .back-arrow {
    transition: transform 0.2s var(--blog-ease);
}

.article-back-pill:hover {
    color: var(--blog-gold-bright);
    border-color: var(--blog-gold);
    background: var(--blog-surface-2);
    transform: translateX(-2px);
}

.article-back-pill:hover .back-arrow {
    transform: translateX(-3px);
}

.breadcrumb-bar {
    margin: 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.breadcrumb-list li a {
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list li a:hover {
    color: var(--blog-gold-bright);
}

.breadcrumb-list li .sep {
    color: var(--blog-text-sub);
}

/* Article Hero Header */
.article-header {
    margin-bottom: 3rem;
}

.article-category-badge-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.reading-time-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: var(--blog-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--blog-border);
    padding: 4px 11px;
    border-radius: 6px;
}

.article-level-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--blog-lime);
    background: var(--blog-lime-bg);
    border: 1px solid rgba(200, 255, 0, 0.2);
    padding: 4px 11px;
    border-radius: 6px;
}

.article-main-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.3rem, 5.5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--blog-text-main);
    margin: 0 0 20px;
}

.article-lead-deck {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    color: var(--blog-text-muted);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 840px;
}

/* Executive Author Byline Deck */
.article-author-deck {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 22px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
}

.author-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.author-avatar-small {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--blog-gold);
    box-shadow: 0 0 12px var(--blog-gold-glow);
}

.author-badge-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #0a84ff;
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blog-surface);
    font-weight: 900;
}

.author-meta-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-name-link {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blog-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.author-name-link:hover {
    color: var(--blog-gold-bright);
}

.author-role-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--blog-cyan);
    background: var(--blog-cyan-bg);
    border: 1px solid var(--blog-border-cyan);
    padding: 2px 8px;
    border-radius: 4px;
}

.article-pub-dates {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--blog-text-sub);
}

.header-share-quick {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-share-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--blog-border);
    color: var(--blog-text-muted);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--blog-ease);
}

.quick-share-btn:hover {
    background: var(--blog-surface-hover);
    color: var(--blog-gold-bright);
    border-color: var(--blog-gold);
    transform: translateY(-2px);
}

/* Featured Hero Media with Luxury Bezel */
.article-featured-media {
    margin: 0 0 3.5rem;
    padding: 0;
}

.article-featured-bezel {
    position: relative;
    border-radius: var(--blog-radius-lg);
    overflow: hidden;
    border: 1px solid var(--blog-border);
    background: #080c16;
    box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.7);
}

.article-hero-img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

.media-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(6, 9, 19, 0.6) 100%);
    pointer-events: none;
}

.media-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    color: var(--blog-text-sub);
    text-align: center;
    margin-top: 10px;
}

/* Table of Contents */
.article-toc-box {
    margin: 0 0 3.5rem;
    background: rgba(16, 22, 36, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(216, 167, 69, 0.22);
    border-radius: var(--blog-radius-md);
    overflow: hidden;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}

.toc-summary {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: rgba(216, 167, 69, 0.04);
    transition: background 0.2s;
}

.toc-summary:hover {
    background: rgba(216, 167, 69, 0.08);
}

.toc-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blog-gold-bright);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    background: var(--blog-gold-bg);
    border: 1px solid rgba(216, 167, 69, 0.3);
    color: var(--blog-gold);
    padding: 2px 7px;
    border-radius: 4px;
}

.toc-toggle-icon {
    font-size: 0.9rem;
    color: var(--blog-text-muted);
    transition: transform 0.25s var(--blog-ease);
}

details[open] .toc-toggle-icon {
    transform: rotate(180deg);
}

.toc-nav {
    padding: 0 24px 22px;
    border-top: 1px solid rgba(240, 238, 232, 0.06);
}

.toc-list {
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-item.toc-h3 {
    padding-left: 20px;
}

.toc-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: all 0.2s var(--blog-ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toc-link:hover {
    color: var(--blog-gold-bright);
    transform: translateX(5px);
}

/* ==========================================================================
   ARTICLE EDITORIAL BODY CONTENT
   ========================================================================== */
.article-content-body {
    font-size: 1.15rem;
    line-height: 1.92;
    color: var(--blog-text-body);
    margin-bottom: 4.5rem;
}

.article-content-body > p:first-of-type {
    font-size: 1.22rem;
    line-height: 1.82;
    color: #f0eee8;
    font-weight: 400;
}

.article-content-body p {
    margin: 0 0 1.85rem;
}

.article-content-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 800;
    color: var(--blog-text-main);
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 3.5rem 0 1.4rem;
    padding-left: 14px;
    border-left: 3px solid var(--blog-gold);
    scroll-margin-top: 90px;
}

.article-content-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--blog-text-main);
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 2.5rem 0 1.1rem;
    scroll-margin-top: 90px;
}

.article-content-body a {
    color: var(--blog-gold-bright);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.article-content-body a:hover {
    color: #fff;
}

.article-content-body strong,
.article-content-body b {
    color: var(--blog-text-main);
    font-weight: 600;
}

.article-content-body ul,
.article-content-body ol {
    margin: 0 0 2rem;
    padding-left: 28px;
}

.article-content-body li {
    margin-bottom: 0.75rem;
}

.article-content-body blockquote {
    margin: 2.5rem 0;
    padding: 24px 32px;
    background: rgba(216, 167, 69, 0.05);
    border-left: 4px solid var(--blog-gold);
    border-radius: 0 var(--blog-radius-md) var(--blog-radius-md) 0;
    color: var(--blog-text-main);
    font-size: 1.18rem;
    font-style: italic;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

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

/* Inline Code */
.article-content-body code:not(pre code) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    color: var(--blog-cyan);
    background: rgba(125, 185, 198, 0.1);
    border: 1px solid rgba(125, 185, 198, 0.25);
    padding: 2px 7px;
    border-radius: 5px;
    word-break: break-word;
}

/* macOS Terminal Code Blocks */
.code-block-wrapper {
    margin: 2.5rem 0;
    background: #080c16;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    background: #0d1322;
    border-bottom: 1px solid var(--blog-border);
}

.mac-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.code-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--blog-gold-bright);
}

.copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--blog-border);
    border-radius: 6px;
    color: var(--blog-text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--blog-ease);
}

.copy-code-btn:hover {
    background: var(--blog-gold);
    border-color: var(--blog-gold);
    color: #060913;
}

.copy-code-btn.copied {
    background: var(--blog-lime);
    border-color: var(--blog-lime);
    color: #060913;
}

.code-block-wrapper pre {
    margin: 0;
    padding: 22px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #e2e8f0;
}

.code-block-wrapper code {
    font-family: inherit;
}

/* Responsive Tables */
.article-content-body table {
    width: 100%;
    margin: 2.5rem 0;
    border-collapse: collapse;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    overflow: hidden;
}

.article-content-body th,
.article-content-body td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--blog-border);
}

.article-content-body th {
    background: var(--blog-surface-2);
    font-family: 'Syne', sans-serif;
    font-size: 0.92rem;
    color: var(--blog-gold-bright);
    font-weight: 700;
}

.article-content-body tr:last-child td {
    border-bottom: none;
}

/* Images inside article */
.article-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius-md);
    margin: 2rem 0;
    border: 1px solid var(--blog-border);
}

/* ==========================================================================
   INTERACTIVE ENGAGEMENT & SHARE BAR
   ========================================================================== */
.article-engagement-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    margin-bottom: 2.5rem;
    box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.5);
}

.reaction-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    background: rgba(216, 167, 69, 0.1);
    border: 1px solid rgba(216, 167, 69, 0.3);
    color: var(--blog-gold-bright);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--blog-ease);
}

.reaction-btn:hover {
    background: var(--blog-gold);
    color: #060913;
    transform: scale(1.04);
    box-shadow: 0 4px 18px var(--blog-gold-glow);
}

.reaction-btn.clapped {
    animation: clapPop 0.4s ease;
}

@keyframes clapPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.reaction-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 100px;
}

.reaction-hint {
    font-size: 0.85rem;
    color: var(--blog-text-sub);
}

.share-buttons-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.share-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--blog-text-sub);
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--blog-border);
    color: var(--blog-text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--blog-ease);
}

.share-btn:hover {
    color: #fff;
    border-color: rgba(240, 238, 232, 0.25);
    background: var(--blog-surface-hover);
    transform: translateY(-2px);
}

.share-linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.share-twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.share-facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-whatsapp:hover { border-color: #25d366; color: #25d366; }
.share-copy:hover { border-color: var(--blog-gold); color: var(--blog-gold); }

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4rem;
}

.article-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 6px;
    color: var(--blog-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tags a:hover {
    border-color: var(--blog-cyan);
    background: rgba(125, 185, 198, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   AUTHOR BIO CARD — DOUBLE-BEZEL HARDWARE MASTERWORK
   ========================================================================== */
.author-bio-card {
    margin-bottom: 4rem;
}

.res-bezel-outer {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    padding: 8px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s var(--blog-ease);
}

.res-bezel-outer:hover {
    border-color: rgba(216, 167, 69, 0.25);
}

.res-bezel-inner {
    background: var(--blog-surface);
    border-radius: calc(var(--blog-radius-lg) - 8px);
    padding: clamp(28px, 4.5vw, 44px);
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.author-bio-split {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.author-bio-avatar-column {
    flex-shrink: 0;
}

.author-avatar-frame {
    position: relative;
    width: 104px;
    height: 104px;
}

.author-bio-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blog-gold);
    box-shadow: 0 0 20px var(--blog-gold-glow);
}

.avatar-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blog-lime);
    border: 2px solid var(--blog-surface);
    box-shadow: 0 0 8px var(--blog-lime);
}

.author-bio-content {
    flex: 1;
}

.author-bio-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blog-gold);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.author-bio-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--blog-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-verified-check {
    background: #0a84ff;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.author-bio-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--blog-cyan);
    margin: 0 0 14px;
    font-weight: 500;
}

.author-bio-text {
    font-size: 0.98rem;
    color: var(--blog-text-muted);
    line-height: 1.72;
    margin: 0 0 18px;
}

.author-bio-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--blog-border);
    color: var(--blog-text-main);
    padding: 4px 10px;
    border-radius: 6px;
}

.author-bio-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.author-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--blog-gold);
    color: #060913;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s var(--blog-ease);
}

.author-link-btn:hover {
    background: var(--blog-gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--blog-gold-glow);
}

.author-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--blog-border);
    color: var(--blog-text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.author-resume-btn:hover {
    border-color: var(--blog-gold);
    color: var(--blog-gold-bright);
    transform: translateY(-2px);
}

.author-social-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--blog-text-muted);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--blog-border);
    border-radius: 100px;
    transition: all 0.2s;
}

.author-social-link:hover {
    color: var(--blog-text-main);
    border-color: rgba(240, 238, 232, 0.25);
    background: var(--blog-surface-hover);
}

/* ==========================================================================
   ARTICLE NEIGHBORS (Prev/Next Split Deck)
   ========================================================================== */
.article-neighbors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 4.5rem;
}

.neighbor-card {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    text-decoration: none;
    transition: all 0.3s var(--blog-ease);
}

.neighbor-prev:hover {
    transform: translateX(-4px);
    border-color: rgba(216, 167, 69, 0.4);
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6);
}

.neighbor-next {
    text-align: right;
}

.neighbor-next:hover {
    transform: translateX(4px);
    border-color: rgba(216, 167, 69, 0.4);
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6);
}

.neighbor-direction {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blog-gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.neighbor-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--blog-text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.neighbor-arrow-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--blog-text-sub);
    transition: color 0.2s;
}

.neighbor-card:hover .neighbor-arrow-cta {
    color: var(--blog-gold-bright);
}

/* ==========================================================================
   ENGINEERING CONTACT CTA BANNER
   ========================================================================== */
.article-cta-banner {
    margin-bottom: 4.5rem;
    background: linear-gradient(135deg, rgba(216, 167, 69, 0.08), rgba(125, 185, 198, 0.05));
    border: 1px solid rgba(216, 167, 69, 0.25);
    border-radius: var(--blog-radius-lg);
    padding: clamp(32px, 5vw, 48px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-banner-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    background: radial-gradient(circle, var(--blog-gold-glow), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blog-gold-bright);
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.cta-dot {
    width: 6px;
    height: 6px;
    background: var(--blog-lime);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--blog-lime);
}

.cta-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--blog-text-main);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--blog-text-muted);
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-btn-primary {
    padding: 12px 26px;
    background: var(--blog-gold);
    color: #060913;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s var(--blog-ease);
}

.cta-btn-primary:hover {
    background: var(--blog-gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--blog-gold-glow);
}

.cta-btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--blog-border);
    color: var(--blog-text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s;
}

.cta-btn-secondary:hover {
    border-color: rgba(240, 238, 232, 0.3);
    background: var(--blog-surface-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   RELATED POSTS SECTION
   ========================================================================== */
.related-posts-section {
    margin-bottom: 4.5rem;
}

.related-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--blog-text-main);
}

.related-title span {
    background: linear-gradient(135deg, var(--blog-text-main) 30%, var(--blog-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-to-blog-wrapper {
    text-align: center;
    margin: 3.5rem 0;
}

.back-blog-btn {
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    color: var(--blog-text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.back-blog-btn:hover {
    border-color: var(--blog-gold);
    background: var(--blog-surface-2);
    color: var(--blog-gold-bright);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .author-bio-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-bio-skills,
    .author-bio-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .blog-listing-section,
    .article-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-neighbors {
        grid-template-columns: 1fr;
    }

    .neighbor-next {
        text-align: left;
    }

    .article-engagement-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-author-deck {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-share-quick {
        width: 100%;
        justify-content: flex-start;
        padding-top: 10px;
        border-top: 1px solid var(--blog-border);
    }
}

/* ==========================================================================
   EXECUTIVE FOOTER COMPONENT (Blog & Article)
   ========================================================================== */
.blog-footer,
.footer {
    width: 100%;
    max-width: 1240px;
    margin: clamp(60px, 8vw, 100px) auto 0;
    padding: 36px 24px 48px;
    border-top: 1px solid var(--blog-border);
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.blog-footer::before,
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 167, 69, 0.35), rgba(125, 185, 198, 0.25), transparent);
    pointer-events: none;
}

.blog-footer-inner,
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.blog-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.footer-logo-badge {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--blog-gold-bright);
    background: var(--blog-gold-bg);
    border: 1px solid rgba(216, 167, 69, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(216, 167, 69, 0.12);
    transition: all 0.25s var(--blog-ease);
}

.footer-brand-link:hover .footer-logo-badge {
    border-color: var(--blog-gold-bright);
    box-shadow: 0 0 20px rgba(216, 167, 69, 0.35);
    transform: translateY(-1px);
}

.footer-brand-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blog-text-main);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.footer-brand-link:hover .footer-brand-title {
    color: var(--blog-gold-bright);
}

.footer-status-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--blog-cyan);
    background: rgba(125, 185, 198, 0.08);
    border: 1px solid rgba(125, 185, 198, 0.2);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.blog-footer-copy,
.footer-inner > p {
    margin: 0;
    color: var(--blog-text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.blog-footer-copy a,
.footer-inner > p a {
    color: var(--blog-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-footer-copy a:hover,
.footer-inner > p a:hover {
    color: var(--blog-gold-bright);
}

.blog-footer-copy .copy-sep {
    margin: 0 6px;
    color: var(--blog-text-sub);
}

.blog-footer-copy .copy-desc {
    color: var(--blog-text-sub);
    font-family: 'DM Sans', sans-serif;
}

/* Right Column: Nav & Back to top */
.blog-footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.blog-footer-nav,
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-footer-nav a,
.footer-links a {
    color: var(--blog-text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s var(--blog-ease);
    padding: 4px 2px;
    position: relative;
    letter-spacing: 0.01em;
}

.blog-footer-nav a::after,
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--blog-gold-bright), transparent);
    transition: width 0.25s var(--blog-ease);
}

.blog-footer-nav a:hover,
.footer-links a:hover {
    color: var(--blog-gold-bright);
    transform: translateY(-1px);
}

.blog-footer-nav a:hover::after,
.footer-links a:hover::after {
    width: 100%;
}

.footer-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--blog-cyan);
    background: rgba(125, 185, 198, 0.06);
    border: 1px solid rgba(125, 185, 198, 0.22);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s var(--blog-ease);
    cursor: pointer;
    line-height: 1;
}

.footer-top-btn:hover {
    color: #fff;
    background: rgba(125, 185, 198, 0.16);
    border-color: var(--blog-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 185, 198, 0.18);
}

/* Responsive Footer */
@media (max-width: 860px) {
    .blog-footer-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .blog-footer-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .blog-footer,
    .footer {
        margin-top: 50px;
        padding: 30px 16px 40px;
        text-align: center;
    }

    .blog-footer-inner,
    .footer-inner {
        align-items: center;
    }

    .blog-footer-brand {
        align-items: center;
    }

    .footer-brand-head {
        justify-content: center;
    }

    .blog-footer-copy .copy-sep {
        display: none;
    }

    .blog-footer-copy .copy-desc {
        display: block;
        margin-top: 3px;
    }

    .blog-footer-right {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .blog-footer-nav,
    .footer-links {
        justify-content: center;
        gap: 14px 18px;
    }
}

