/**
 * LinkGuard - Blog Styles
 * Dark Cyberpunk Theme
 *
 * Structure:
 * 1. CSS Variables (inherited from design system)
 * 2. Reading Progress Bar
 * 3. Breadcrumb Navigation
 * 4. Article Header
 * 5. Article Content Typography
 * 6. Lists (ul, ol, nested)
 * 7. Blockquotes
 * 8. Tables
 * 9. Images & Captions
 * 10. Sidebar Components
 * 11. Tags
 * 12. Author Bio
 * 13. Related Articles
 * 14. Article Navigation (Prev/Next)
 * 15. Blog List Page
 * 16. Blog Card Component
 * 17. Featured Article Card
 * 18. Category Filters
 * 19. Pagination
 * 20. Newsletter Form
 * 21. Responsive Styles
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */

:root {
    /* Blog-specific spacing */
    --blog-content-width: 720px;
    --blog-sidebar-width: 300px;
    --blog-gap: 48px;

    /* Article typography */
    --article-line-height: 1.8;
    --article-paragraph-spacing: 1.5rem;

    /* Category colors */
    --cat-seo: #00f5d4;
    --cat-links: #4cc9f0;
    --cat-technical: #7b2cbf;
    --cat-cases: #f72585;
    --cat-updates: #fee440;
    --cat-tutorials: #00f5d4;
    --cat-news: #4cc9f0;
}

/* ==========================================================================
   2. Reading Progress Bar
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    z-index: 10001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* ==========================================================================
   2.5. Preview Banner (Admin Only)
   ========================================================================== */

.preview-banner {
    position: fixed;
    top: 72px; /* Below header */
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.15) 0%, rgba(123, 44, 191, 0.15) 100%);
    border-bottom: 1px solid var(--neon-magenta);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.preview-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.preview-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--neon-magenta);
}

.preview-banner-content svg {
    flex-shrink: 0;
    color: var(--neon-magenta);
}

.preview-banner-content span {
    flex: 1;
}

.preview-banner-content strong {
    font-weight: 600;
    letter-spacing: 1px;
}

.preview-edit-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-deep);
    background: var(--neon-magenta);
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: all 0.3s ease;
}

.preview-edit-link:hover {
    background: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

/* Adjust breadcrumb when preview banner is visible */
.preview-banner + .blog-breadcrumb {
    padding-top: 140px; /* 72px header + 44px banner + 24px spacing */
}

@media (max-width: 768px) {
    .preview-banner-content {
        flex-wrap: wrap;
        font-size: 12px;
    }

    .preview-banner-content span {
        flex-basis: 100%;
        order: 2;
        margin-top: 8px;
    }

    .preview-edit-link {
        order: 1;
        margin-left: auto;
    }
}

/* ==========================================================================
   3. Breadcrumb Navigation
   ========================================================================== */

.blog-breadcrumb {
    padding: 24px 0;
    padding-top: 96px; /* 72px header + 24px spacing */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 13px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--neon-cyan);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ==========================================================================
   4. Article Header
   ========================================================================== */

.article-header {
    position: static; /* Override landing styles generic header rule */
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    padding: 48px 0 32px;
    text-align: center;
}

.article-header .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.article-category--seo {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--cat-seo);
}
.article-category--links {
    background: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.3);
    color: var(--cat-links);
}
.article-category--technical {
    background: rgba(123, 44, 191, 0.1);
    border-color: rgba(123, 44, 191, 0.3);
    color: var(--cat-technical);
}
.article-category--cases {
    background: rgba(247, 37, 133, 0.1);
    border-color: rgba(247, 37, 133, 0.3);
    color: var(--cat-cases);
}
.article-category--updates {
    background: rgba(254, 228, 64, 0.1);
    border-color: rgba(254, 228, 64, 0.3);
    color: var(--cat-updates);
}
.article-category--tutorials {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--cat-tutorials);
}
.article-category--news {
    background: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.3);
    color: var(--cat-news);
}

.article-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
}

.article-reading-time svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 24px;
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.1);
}

.article-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
}

.article-dates span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-dates svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 245, 212, 0.3);
    object-fit: cover;
}

.article-author-info {
    text-align: left;
}

.article-author-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.article-author-role {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   5. Article Content Layout
   ========================================================================== */

.article-layout {
    display: flex;
    gap: var(--blog-gap);
    max-width: calc(var(--blog-content-width) + var(--blog-sidebar-width) + var(--blog-gap));
    margin: 0 auto;
    padding: 0 24px 80px;
}

.article-content {
    flex: 1;
    max-width: var(--blog-content-width);
    min-width: 0;
}

.article-sidebar {
    width: var(--blog-sidebar-width);
    flex-shrink: 0;
}

.article-sidebar-inner {
    position: sticky;
    top: 100px;
}

/* ==========================================================================
   5.1 Article Typography
   ========================================================================== */

.article-body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: var(--article-line-height);
    color: var(--text-secondary);
}

.article-body > * + * {
    margin-top: var(--article-paragraph-spacing);
}

.article-body p {
    margin: 0;
}

.article-body p + p {
    margin-top: var(--article-paragraph-spacing);
}

/* Links */
.article-body a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.article-body a:hover {
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* Strong & Emphasis */
.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body em {
    font-style: italic;
}

/* Inline code */
.article-body code:not(pre code) {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-cyan);
}

/* Headings */
.article-body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box,
                linear-gradient(90deg, var(--neon-cyan), var(--neon-blue), transparent) border-box;
    border-image-slice: 1;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--neon-cyan);
}

.article-body h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(0, 245, 212, 0.4);
}

.article-body h5 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 24px 0 12px;
    padding-bottom: 4px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   6. Lists
   ========================================================================== */

.article-body ul,
.article-body ol {
    margin: var(--article-paragraph-spacing) 0;
    padding-left: 24px;
}

.article-body ul {
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 6px var(--glow-cyan);
}

/* Nested lists */
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
    margin: 8px 0;
}

.article-body ul ul li::before {
    background: var(--neon-blue);
    width: 4px;
    height: 4px;
    top: 11px;
    box-shadow: 0 0 4px rgba(76, 201, 240, 0.5);
}

.article-body ul ul ul li::before {
    background: var(--text-muted);
    clip-path: none;
    border-radius: 50%;
    box-shadow: none;
}

/* Ordered lists */
.article-body ol {
    list-style: none;
    counter-reset: ol-counter;
}

.article-body ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    counter-increment: ol-counter;
}

.article-body ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* Nested ordered */
.article-body ol ol {
    counter-reset: ol-sub-counter;
}

.article-body ol ol li {
    counter-increment: ol-sub-counter;
}

.article-body ol ol li::before {
    content: counter(ol-sub-counter, lower-alpha);
    width: 20px;
    height: 20px;
    font-size: 11px;
    background: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.3);
    color: var(--neon-blue);
}

/* ==========================================================================
   7. Blockquotes
   ========================================================================== */

.article-body blockquote {
    position: relative;
    margin: 32px 0;
    padding: 24px 32px;
    background: rgba(0, 245, 212, 0.03);
    border-left: 3px solid var(--neon-cyan);
    font-size: 20px;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: var(--font-display);
    font-size: 60px;
    font-style: normal;
    color: var(--neon-cyan);
    opacity: 0.3;
    line-height: 1;
}

.article-body blockquote p {
    margin: 0;
}

.article-body blockquote cite,
.article-body blockquote footer {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-style: normal;
    color: var(--text-muted);
}

.article-body blockquote cite::before,
.article-body blockquote footer::before {
    content: '\2014\00a0';
}

/* ==========================================================================
   8. Tables
   ========================================================================== */

.article-body .table-wrapper {
    margin: 32px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 14px;
}

.article-body thead {
    background: rgba(0, 245, 212, 0.1);
}

.article-body th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border-bottom: 2px solid rgba(0, 245, 212, 0.3);
}

.article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.article-body tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.article-body tbody tr:hover {
    background: rgba(0, 245, 212, 0.03);
}

/* ==========================================================================
   9. Images & Captions
   ========================================================================== */

.article-featured-image {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.article-body figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body figcaption {
    margin-top: 12px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
}

/* Image with caption shortcode */
.article-image {
    margin: 32px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-image-caption {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
}

/* ==========================================================================
   10. Sidebar Components
   ========================================================================== */

.sidebar-widget {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.sidebar-widget-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-widget-title::before {
    content: '// ';
    color: var(--neon-cyan);
}

.sidebar-widget-title::after {
    content: ' //';
    color: var(--neon-cyan);
}

/* Table of Contents */
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom scrollbar for TOC */
.toc-list::-webkit-scrollbar {
    width: 4px;
}

.toc-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.toc-list::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 212, 0.3);
    border-radius: 2px;
}

.toc-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 212, 0.5);
}

/* Firefox scrollbar */
.toc-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 245, 212, 0.3) rgba(255, 255, 255, 0.05);
}

.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: var(--neon-cyan);
    background: rgba(0, 245, 212, 0.05);
    border-left-color: rgba(0, 245, 212, 0.3);
}

.toc-link.active {
    color: var(--neon-cyan);
    background: rgba(0, 245, 212, 0.1);
    border-left-color: var(--neon-cyan);
}

.toc-item--h3 .toc-link,
.toc-item--sub .toc-link {
    padding-left: 24px;
    font-size: 13px;
}

.toc-item--h4 .toc-link {
    padding-left: 36px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn--copy.copied {
    background: rgba(0, 245, 212, 0.2);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Share button hover colors per platform */
.share-btn--twitter:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.4);
    color: #1DA1F2;
}

.share-btn--linkedin:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.4);
    color: #0077B5;
}

.share-btn--facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.4);
    color: #1877F2;
}

.share-btn--telegram:hover {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.4);
    color: #0088CC;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 212, 0.15);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.toast-message {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.toast--error {
    border-color: rgba(247, 37, 133, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(247, 37, 133, 0.15);
}

.toast--error .toast-icon {
    color: var(--neon-magenta);
}

/* Related Articles (Sidebar) */
.related-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.related-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-sidebar-item:first-child {
    padding-top: 0;
}

.related-sidebar-image {
    width: 64px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-sidebar-content {
    flex: 1;
    min-width: 0;
}

.related-sidebar-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-sidebar-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-sidebar-title a:hover {
    color: var(--neon-cyan);
}

.related-sidebar-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   11. Tags
   ========================================================================== */

.article-tags {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-tags-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.article-tags-title::before {
    content: '// ';
    color: var(--neon-cyan);
}

.article-tags-title::after {
    content: ' //';
    color: var(--neon-cyan);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--glow-cyan);
}

/* ==========================================================================
   12. Author Bio
   ========================================================================== */

.author-bio {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 48px 0;
}

.author-bio-header {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.author-bio-header::before {
    content: '// ';
    color: var(--neon-cyan);
}

.author-bio-header::after {
    content: ' //';
    color: var(--neon-cyan);
}

.author-bio-content {
    display: flex;
    gap: 24px;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(0, 245, 212, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

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

.author-bio-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.author-bio-description {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.author-bio-socials {
    display: flex;
    gap: 12px;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-social-link:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

.author-social-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   13. Related Articles (Full Width)
   ========================================================================== */

.related-articles {
    padding: 48px 0;
}

.related-articles-header {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 32px;
    text-align: center;
}

.related-articles-header::before {
    content: '// ';
    color: var(--neon-cyan);
}

.related-articles-header::after {
    content: ' //';
    color: var(--neon-cyan);
}

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

/* ==========================================================================
   14. Article Navigation (Prev/Next)
   ========================================================================== */

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: calc(50% - 12px);
}

.article-nav-link:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.article-nav-link--next {
    text-align: right;
    margin-left: auto;
}

.article-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.article-nav-link--next .article-nav-label {
    justify-content: flex-end;
}

.article-nav-label svg {
    width: 14px;
    height: 14px;
}

.article-nav-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav-link:hover .article-nav-title {
    color: var(--neon-cyan);
}

/* ==========================================================================
   15. Blog List Page
   ========================================================================== */

.blog-hero {
    padding: 80px 0 48px;
    padding-top: 152px; /* 72px header + 80px spacing */
    text-align: center;
}

.blog-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-hero-badge {
    display: inline-block;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--neon-magenta);
}

.blog-hero-badge::before {
    content: '// ';
}

.blog-hero-badge::after {
    content: ' //';
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px;
    text-shadow: 0 0 40px rgba(0, 245, 212, 0.1);
}

.blog-hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Search Bar */
.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.blog-search-wrapper {
    position: relative;
}

.blog-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.blog-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.2s ease;
}

.blog-search-input::placeholder {
    color: var(--text-muted);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--glow-cyan);
}

/* ==========================================================================
   16. Blog Card Component
   ========================================================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue), var(--neon-magenta));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--neon-cyan);
}

.blog-card-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 245, 212, 0.2);
    object-fit: cover;
}

.blog-card-meta {
    flex: 1;
}

.blog-card-author {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   17. Featured Article Card
   ========================================================================== */

.featured-article {
    margin-bottom: 48px;
}

.featured-article-header {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.featured-article-header::before {
    content: '// ';
    color: var(--neon-cyan);
}

.featured-article-header::after {
    content: ' //';
    color: var(--neon-cyan);
}

.featured-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 380px;
}

.featured-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.featured-card-image-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-content {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.featured-card-category {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.featured-card-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.25;
    flex-shrink: 0;
}

.featured-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-card-title a:hover {
    color: var(--neon-cyan);
}

.featured-card-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 1;
}

.featured-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.featured-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 245, 212, 0.3);
    object-fit: cover;
}

.featured-card-meta {
    flex: 1;
}

.featured-card-author {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.featured-card-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.featured-card-cta {
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: auto;
}

/* ==========================================================================
   18. Category Filters
   ========================================================================== */

.blog-categories {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 48px;
}

.blog-categories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.categories-header {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.categories-header::before {
    content: '// ';
    color: var(--neon-cyan);
}

.categories-header::after {
    content: ' //';
    color: var(--neon-cyan);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-filter {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter:hover {
    background: rgba(0, 245, 212, 0.05);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
}

.category-filter.active {
    background: rgba(0, 245, 212, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* ==========================================================================
   18.1. Tag Filters
   ========================================================================== */

.blog-tags-filter {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-tags-filter .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tags-header {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin: 0 0 14px;
}

.blog-tags-filter .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-filter {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter:hover {
    background: rgba(0, 245, 212, 0.08);
    border-color: rgba(0, 245, 212, 0.4);
    color: var(--neon-cyan);
}

.tag-filter.active {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

/* ==========================================================================
   18.2. Article Card Tags
   ========================================================================== */

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.blog-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.25);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card-tag:hover {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.3);
}

.blog-card-tag-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Responsive tags filter */
@media (max-width: 768px) {
    .blog-tags-filter .tags-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .tag-filter {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ==========================================================================
   19. Pagination
   ========================================================================== */

.blog-pagination {
    padding: 48px 0;
    text-align: center;
}

.pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.pagination-item a,
.pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-item a:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--neon-cyan);
}

.pagination-item.active a {
    background: rgba(0, 245, 212, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.pagination-item.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-item--arrow a {
    padding: 0;
}

.pagination-item--arrow svg {
    width: 18px;
    height: 18px;
}

.pagination-item--ellipsis span {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

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

/* ==========================================================================
   20. Newsletter Form
   ========================================================================== */

.blog-newsletter {
    padding: 64px 0;
    background: var(--bg-dark);
}

.newsletter-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.newsletter-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto 16px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.newsletter-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    border: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--glow-cyan);
}

.newsletter-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.newsletter-disclaimer svg {
    width: 14px;
    height: 14px;
    color: var(--neon-cyan);
}

/* ==========================================================================
   21. Blog Articles Grid
   ========================================================================== */

.blog-articles {
    padding-bottom: 48px;
}

.blog-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.blog-articles-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0;
}

.blog-articles-title::before {
    content: '// ';
    color: var(--neon-cyan);
}

.blog-articles-title::after {
    content: ' //';
    color: var(--neon-cyan);
}

.blog-sort select {
    padding: 8px 32px 8px 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.blog-sort select:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

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

/* ==========================================================================
   22. Responsive Styles
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        width: 100%;
        order: -1;
    }

    .article-sidebar-inner {
        position: static;
    }

    .sidebar-widget--toc {
        margin-bottom: 32px;
    }

    .sidebar-widget--share,
    .sidebar-widget--related,
    .sidebar-widget--newsletter {
        display: none;
    }

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

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

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card-content {
        padding: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-breadcrumb {
        padding: 16px 0;
    }

    .article-header {
        padding: 32px 0 24px;
    }

    .article-meta-top {
        flex-direction: column;
        gap: 12px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-dates {
        flex-direction: column;
        gap: 8px;
    }

    .article-author {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .article-author-info {
        text-align: center;
    }

    .article-layout {
        padding: 0 16px 48px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 24px;
        margin: 32px 0 20px;
    }

    .article-body h3 {
        font-size: 20px;
        margin: 28px 0 16px;
    }

    .article-body h4 {
        font-size: 17px;
        margin: 24px 0 12px;
    }

    .article-body blockquote {
        padding: 20px 24px;
        font-size: 18px;
    }

    .article-body .table-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Mobile ToC accordion */
    .sidebar-widget--toc {
        background: var(--bg-card);
        border-radius: 8px;
        margin-bottom: 24px;
    }

    .toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 20px;
        background: none;
        border: none;
        color: var(--text-primary);
        font-family: var(--font-mono);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
    }

    .toc-toggle svg {
        width: 16px;
        height: 16px;
        transition: transform 0.2s ease;
    }

    .toc-toggle.active svg {
        transform: rotate(180deg);
    }

    .toc-content {
        display: none;
        padding: 0 20px 16px;
    }

    .toc-content.active {
        display: block;
    }

    .author-bio {
        padding: 24px;
        margin: 32px 0;
    }

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

    .author-bio-socials {
        justify-content: center;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-navigation {
        flex-direction: column;
    }

    .article-nav-link {
        max-width: 100%;
    }

    .article-nav-link--next {
        text-align: left;
    }

    .article-nav-link--next .article-nav-label {
        justify-content: flex-start;
    }

    /* Blog list mobile */
    .blog-hero {
        padding: 48px 0 32px;
        padding-top: 120px; /* 72px header + 48px spacing */
    }

    .blog-hero-title {
        font-size: 32px;
    }

    .blog-categories {
        padding: 16px 0;
    }

    .categories-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .category-filter {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .featured-card-content {
        padding: 24px;
    }

    .featured-card-title {
        font-size: 22px;
    }

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

    .blog-articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .newsletter-card {
        padding: 32px 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hide desktop ToC toggle on desktop */
.toc-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .toc-toggle {
        display: flex;
    }

    .sidebar-widget--toc .sidebar-widget-title {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .article-title {
        font-size: 24px;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .featured-card-title {
        font-size: 20px;
    }

    .blog-card-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   22. Search Results Header
   ========================================================================== */

.search-results-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.search-results-header p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.clear-search-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.clear-search-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* ==========================================================================
   23. Empty State
   ========================================================================== */

.blog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.blog-empty-state svg {
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.blog-empty-state h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.blog-empty-state p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    max-width: 400px;
}

.blog-empty-state .btn {
    margin-top: 8px;
}

/* ==========================================================================
   24. Avatar Placeholders
   ========================================================================== */

.blog-card-avatar--placeholder,
.featured-card-avatar--placeholder,
.article-author-avatar--placeholder,
.author-bio-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card-avatar--placeholder {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.featured-card-avatar--placeholder {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.article-author-avatar--placeholder {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-bio-avatar--placeholder {
    width: 80px;
    height: 80px;
    font-size: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .author-bio-avatar--placeholder {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }
}

/* ==========================================================================
   25. Back to Blog Navigation
   ========================================================================== */

.article-nav-link--back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-nav-link--back:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.article-nav-link--back svg {
    width: 18px;
    height: 18px;
}
