/* ================================================================
   Blog Redesign - Circuit Noir Theme v2.0
   Enhanced dark tech aesthetic with dramatic effects
================================================================ */

/* ----------------------------------------------------------------
   Google Fonts Import - Added Orbitron for display headings
---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   CSS Variables - Circuit Noir Theme v2.0
---------------------------------------------------------------- */
:root {
    /* Primary Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: #151d2e;
    --bg-card-hover: #1a2540;

    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-cyan-bright: #00e5ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-cyan-ultra-dim: rgba(0, 212, 255, 0.05);
    --accent-amber: #f59e0b;
    --accent-amber-dim: rgba(245, 158, 11, 0.15);
    --accent-magenta: #ff00ff;
    --accent-magenta-dim: rgba(255, 0, 255, 0.15);
    --accent-green: #00ff88;
    --accent-green-dim: rgba(0, 255, 136, 0.15);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-glow: #ffffff;

    /* Effects */
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-cyan-intense: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
    --glow-cyan-subtle: 0 0 10px rgba(0, 212, 255, 0.2);
    --glow-text: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 212, 255, 0.5);
    --border-glow: rgba(0, 212, 255, 0.8);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.2);

    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'DM Sans', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 120px);
    --container-padding: clamp(16px, 4vw, 40px);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ----------------------------------------------------------------
   Page Wrapper - Scopes all blog styles
---------------------------------------------------------------- */
.blog-redesign {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Override body-inner background when blog-redesign is active */
.body-inner:has(.blog-redesign) {
    background: var(--bg-primary);
}

/* ----------------------------------------------------------------
   Typography - Base Styles
---------------------------------------------------------------- */
.blog-redesign h1,
.blog-redesign h2,
.blog-redesign h3,
.blog-redesign h4,
.blog-redesign h5,
.blog-redesign h6 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-redesign h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.blog-redesign h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.blog-redesign h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

.blog-redesign h4 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 500;
}

.blog-redesign p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-redesign a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-redesign a:hover {
    color: var(--text-primary);
}

/* ----------------------------------------------------------------
   Container - Consistent max-width and padding
---------------------------------------------------------------- */
.blog-redesign .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.blog-redesign .container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ----------------------------------------------------------------
   Section Styling - Consistent section spacing
---------------------------------------------------------------- */
.blog-redesign section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Section Header Pattern */
.blog-redesign .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-redesign .section-header .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.blog-redesign .section-header .label::before,
.blog-redesign .section-header .label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

.blog-redesign .section-header h2 {
    margin-bottom: 16px;
}

.blog-redesign .section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   Utility Classes
---------------------------------------------------------------- */
.blog-redesign .text-center {
    text-align: center;
}

.blog-redesign .text-left {
    text-align: left;
}

.blog-redesign .text-muted {
    color: var(--text-muted);
}

.blog-redesign .text-accent {
    color: var(--accent-cyan);
}

.blog-redesign .mt-0 { margin-top: 0; }
.blog-redesign .mt-1 { margin-top: 0.5rem; }
.blog-redesign .mt-2 { margin-top: 1rem; }
.blog-redesign .mt-3 { margin-top: 1.5rem; }
.blog-redesign .mt-4 { margin-top: 2rem; }

.blog-redesign .mb-0 { margin-bottom: 0; }
.blog-redesign .mb-1 { margin-bottom: 0.5rem; }
.blog-redesign .mb-2 { margin-bottom: 1rem; }
.blog-redesign .mb-3 { margin-bottom: 1.5rem; }
.blog-redesign .mb-4 { margin-bottom: 2rem; }

/* ----------------------------------------------------------------
   PCB Pattern Background
---------------------------------------------------------------- */
.blog-redesign .pcb-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image:
        linear-gradient(var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(var(--accent-cyan) 0.5px, transparent 0.5px),
        linear-gradient(90deg, var(--accent-cyan) 0.5px, transparent 0.5px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -0.5px -0.5px, -0.5px -0.5px;
}

/* Gradient overlay for PCB pattern sections */
.blog-redesign .pcb-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--bg-primary) 100%
    );
}

/* ----------------------------------------------------------------
   Buttons - Base Styles
---------------------------------------------------------------- */
.blog-redesign .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.blog-redesign .btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.blog-redesign .btn-primary:hover {
    background: transparent;
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.blog-redesign .btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.blog-redesign .btn-outline:hover {
    background: var(--accent-cyan-dim);
    box-shadow: var(--glow-cyan-subtle);
}

.blog-redesign .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.blog-redesign .btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ----------------------------------------------------------------
   Selection & Scrollbar Styling
---------------------------------------------------------------- */
.blog-redesign ::selection {
    background: var(--accent-cyan-dim);
    color: var(--text-primary);
}

.blog-redesign ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.blog-redesign ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.blog-redesign ::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.blog-redesign ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan-dim);
}

/* ----------------------------------------------------------------
   Focus States - Accessibility
---------------------------------------------------------------- */
.blog-redesign a:focus-visible,
.blog-redesign button:focus-visible,
.blog-redesign .btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Image Styling
---------------------------------------------------------------- */
.blog-redesign img {
    max-width: 100%;
    height: auto;
    display: block;
}

.blog-redesign .img-rounded {
    border-radius: var(--radius-md);
}

.blog-redesign .img-bordered {
    border: 1px solid var(--border-subtle);
}

/* ----------------------------------------------------------------
   Hero Section - Blog Hero with PCB Pattern
---------------------------------------------------------------- */
.blog-redesign .blog-hero {
    position: relative;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: clamp(80px, 15vw, 160px) 0;
    overflow: hidden;
    text-align: center;
}

/* Hero PCB pattern overlay */
.blog-redesign .blog-hero .pcb-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        linear-gradient(var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(var(--accent-cyan) 0.5px, transparent 0.5px),
        linear-gradient(90deg, var(--accent-cyan) 0.5px, transparent 0.5px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -0.5px -0.5px, -0.5px -0.5px;
}

/* Gradient fade for hero PCB pattern */
.blog-redesign .blog-hero .pcb-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--bg-primary) 100%
    );
}

/* Hero content container */
.blog-redesign .blog-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Hero label/category indicator */
.blog-redesign .blog-hero .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.blog-redesign .blog-hero .hero-label::before,
.blog-redesign .blog-hero .hero-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

/* Hero title */
.blog-redesign .blog-hero h1 {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Hero description */
.blog-redesign .blog-hero .hero-description {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Glow accent for hero title */
.blog-redesign .blog-hero h1 .accent {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan-subtle);
}

/* Hero meta info (for individual blog post hero) */
.blog-redesign .blog-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-redesign .blog-hero .hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-redesign .blog-hero .hero-meta-item i {
    color: var(--accent-cyan);
    font-size: 0.875rem;
}

.blog-redesign .blog-hero .hero-meta-divider {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* Hero featured image container */
.blog-redesign .blog-hero .hero-image {
    position: relative;
    margin-top: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.blog-redesign .blog-hero .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.blog-redesign .blog-hero .hero-image:hover img {
    transform: scale(1.02);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .blog-redesign .blog-hero {
        padding: clamp(60px, 12vw, 100px) 0;
    }

    .blog-redesign .blog-hero .hero-meta {
        flex-direction: column;
        gap: 12px;
    }

    .blog-redesign .blog-hero .hero-meta-divider {
        display: none;
    }

    .blog-redesign .blog-hero .hero-label::before,
    .blog-redesign .blog-hero .hero-label::after {
        width: 16px;
    }
}

/* ----------------------------------------------------------------
   Blog Posts Section - Main content area with dark background
---------------------------------------------------------------- */
.blog-redesign .blog-posts-section {
    position: relative;
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
}

.blog-redesign .blog-posts-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ----------------------------------------------------------------
   Blog Grid - Card Layout Container
---------------------------------------------------------------- */
.blog-redesign .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    padding: 0;
    list-style: none;
}

/* Two column layout option */
.blog-redesign .blog-grid.blog-grid--two-col {
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
}

/* Three column layout option */
.blog-redesign .blog-grid.blog-grid--three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
    .blog-redesign .blog-grid.blog-grid--three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-redesign .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-redesign .blog-grid.blog-grid--two-col,
    .blog-redesign .blog-grid.blog-grid--three-col {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------------
   Blog Card - Individual Card Styling
---------------------------------------------------------------- */
.blog-redesign .blog-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

/* Card hover effects */
.blog-redesign .blog-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--glow-cyan-subtle);
    transform: translateY(-4px);
}

/* Card link wrapper - makes entire card clickable */
.blog-redesign .blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-redesign .blog-card-link:hover {
    color: inherit;
}

/* ----------------------------------------------------------------
   Blog Card Image - Featured Image Area
---------------------------------------------------------------- */
.blog-redesign .blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-redesign .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Image placeholder styling */
.blog-redesign .blog-card-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.blog-redesign .blog-card-image-placeholder i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Placeholder with PCB pattern */
.blog-redesign .blog-card-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        linear-gradient(var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Category badge overlay on image */
.blog-redesign .blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    z-index: 1;
}

/* ----------------------------------------------------------------
   Blog Card Content - Text Content Area
---------------------------------------------------------------- */
.blog-redesign .blog-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.blog-redesign .blog-card-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.blog-redesign .blog-card:hover .blog-card-title {
    color: var(--accent-cyan);
}

.blog-redesign .blog-card-excerpt {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------------------------------
   Blog Card Meta - Date, Read Time, Author
---------------------------------------------------------------- */
.blog-redesign .blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-redesign .blog-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-redesign .blog-card-meta-item i {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    opacity: 0.7;
}

/* ----------------------------------------------------------------
   Blog Card Tags
---------------------------------------------------------------- */
.blog-redesign .blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.blog-redesign .blog-card-tag {
    padding: 3px 8px;
    background: var(--accent-cyan-dim);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: lowercase;
    transition: all var(--transition-fast);
}

.blog-redesign .blog-card-tag:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* ----------------------------------------------------------------
   Blog Card Variants
---------------------------------------------------------------- */

/* Featured card - larger, horizontal layout */
.blog-redesign .blog-card--featured {
    grid-column: 1 / -1;
}

@media (min-width: 769px) {
    .blog-redesign .blog-card--featured {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .blog-redesign .blog-card--featured .blog-card-image {
        aspect-ratio: auto;
        min-height: 300px;
    }

    .blog-redesign .blog-card--featured .blog-card-content {
        padding: 32px;
        justify-content: center;
    }

    .blog-redesign .blog-card--featured .blog-card-title {
        font-size: 1.5rem;
    }

    .blog-redesign .blog-card--featured .blog-card-excerpt {
        -webkit-line-clamp: 4;
        font-size: 1rem;
    }
}

/* Compact card variant */
.blog-redesign .blog-card--compact .blog-card-image {
    aspect-ratio: 2 / 1;
}

.blog-redesign .blog-card--compact .blog-card-content {
    padding: 16px;
}

.blog-redesign .blog-card--compact .blog-card-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.blog-redesign .blog-card--compact .blog-card-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

/* No image card variant */
.blog-redesign .blog-card--no-image .blog-card-content {
    padding: 24px;
}

.blog-redesign .blog-card--no-image {
    border-left: 3px solid var(--accent-cyan);
}

.blog-redesign .blog-card--no-image:hover {
    border-left-color: var(--accent-amber);
}

/* ----------------------------------------------------------------
   Blog Card Loading State
---------------------------------------------------------------- */
.blog-redesign .blog-card--loading {
    pointer-events: none;
}

.blog-redesign .blog-card--loading .blog-card-image-placeholder {
    animation: pulse 1.5s ease-in-out infinite;
}

.blog-redesign .blog-card--loading .blog-card-title,
.blog-redesign .blog-card--loading .blog-card-excerpt,
.blog-redesign .blog-card--loading .blog-card-meta {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ----------------------------------------------------------------
   Blog Pagination - Page Navigation
---------------------------------------------------------------- */
.blog-redesign .blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 24px 0;
}

/* Pagination link base styles */
.blog-redesign .blog-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

/* Pagination link hover state */
.blog-redesign .blog-pagination-link:hover {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan-subtle);
}

/* Pagination link focus state */
.blog-redesign .blog-pagination-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Pagination link active/current state */
.blog-redesign .blog-pagination-link--active,
.blog-redesign .blog-pagination-link.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: var(--glow-cyan);
}

.blog-redesign .blog-pagination-link--active:hover,
.blog-redesign .blog-pagination-link.active:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    cursor: default;
}

/* Pagination link disabled state */
.blog-redesign .blog-pagination-link--disabled,
.blog-redesign .blog-pagination-link.disabled,
.blog-redesign .blog-pagination-link[disabled] {
    background: var(--bg-tertiary);
    border-color: var(--border-subtle);
    color: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Previous/Next navigation buttons */
.blog-redesign .blog-pagination-prev,
.blog-redesign .blog-pagination-next {
    gap: 8px;
    padding: 0 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-redesign .blog-pagination-prev i,
.blog-redesign .blog-pagination-next i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.blog-redesign .blog-pagination-prev:hover i {
    transform: translateX(-2px);
}

.blog-redesign .blog-pagination-next:hover i {
    transform: translateX(2px);
}

/* Pagination ellipsis */
.blog-redesign .blog-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Pagination info text (e.g., "Page 1 of 5") */
.blog-redesign .blog-pagination-info {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 16px;
}

.blog-redesign .blog-pagination-info .current {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Responsive pagination adjustments */
@media (max-width: 768px) {
    .blog-redesign .blog-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .blog-redesign .blog-pagination-link {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .blog-redesign .blog-pagination-prev,
    .blog-redesign .blog-pagination-next {
        padding: 0 12px;
        font-size: 0.75rem;
    }

    /* Hide page numbers on very small screens, show only prev/next */
    .blog-redesign .blog-pagination--compact .blog-pagination-link:not(.blog-pagination-prev):not(.blog-pagination-next) {
        display: none;
    }

    .blog-redesign .blog-pagination--compact .blog-pagination-info {
        display: block;
    }
}

/* ================================================================
   Blog Detail Page Styles
   Styles for individual blog post pages
================================================================ */

/* ----------------------------------------------------------------
   Blog Post Hero - Individual Post Header
---------------------------------------------------------------- */
.blog-redesign .blog-post-hero {
    position: relative;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: clamp(100px, 18vw, 180px) 0 clamp(60px, 10vw, 100px);
    overflow: hidden;
    text-align: center;
}

/* Blog post hero PCB pattern */
.blog-redesign .blog-post-hero .pcb-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image:
        linear-gradient(var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px),
        linear-gradient(var(--accent-cyan) 0.5px, transparent 0.5px),
        linear-gradient(90deg, var(--accent-cyan) 0.5px, transparent 0.5px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -0.5px -0.5px, -0.5px -0.5px;
}

/* Blog post hero content container */
.blog-redesign .blog-post-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Blog post category label */
.blog-redesign .blog-post-hero .post-category {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.blog-redesign .blog-post-hero .post-category::before,
.blog-redesign .blog-post-hero .post-category::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

/* Blog post title */
.blog-redesign .blog-post-hero .post-title {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Blog post meta information */
.blog-redesign .blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-redesign .blog-post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-redesign .blog-post-meta-item i {
    color: var(--accent-cyan);
    font-size: 0.875rem;
    opacity: 0.8;
}

.blog-redesign .blog-post-meta-divider {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* Author info in meta */
.blog-redesign .blog-post-meta .author-name {
    color: var(--text-primary);
    font-weight: 500;
}

/* Featured image in post hero */
.blog-redesign .blog-post-hero .post-featured-image {
    position: relative;
    margin-top: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.blog-redesign .blog-post-hero .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.blog-redesign .blog-post-hero .post-featured-image:hover img {
    transform: scale(1.02);
}

/* Responsive adjustments for blog post hero */
@media (max-width: 768px) {
    .blog-redesign .blog-post-hero {
        padding: clamp(80px, 15vw, 120px) 0 clamp(40px, 8vw, 60px);
    }

    .blog-redesign .blog-post-meta {
        flex-direction: column;
        gap: 12px;
    }

    .blog-redesign .blog-post-meta-divider {
        display: none;
    }

    .blog-redesign .blog-post-hero .post-category::before,
    .blog-redesign .blog-post-hero .post-category::after {
        width: 16px;
    }
}

/* ----------------------------------------------------------------
   Blog Content - Article Wrapper
---------------------------------------------------------------- */
.blog-redesign .blog-content {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.blog-redesign .blog-content .container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ----------------------------------------------------------------
   Blog Body - Article Content Styling
---------------------------------------------------------------- */
.blog-redesign .blog-body {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.9;
}

/* Blog body headings */
.blog-redesign .blog-body h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    letter-spacing: -0.01em;
}

.blog-redesign .blog-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.blog-redesign .blog-body h3 {
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.blog-redesign .blog-body h4 {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Blog body paragraphs */
.blog-redesign .blog-body p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: inherit;
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

/* Blog body links */
.blog-redesign .blog-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all var(--transition-fast);
}

.blog-redesign .blog-body a:hover {
    color: var(--text-primary);
    text-shadow: var(--glow-cyan-subtle);
}

/* Blog body images */
.blog-redesign .blog-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-redesign .blog-body img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* Figure and figcaption styling */
.blog-redesign .blog-body figure {
    margin: 2.5rem 0;
    padding: 0;
}

.blog-redesign .blog-body figure img {
    margin: 0 0 1rem 0;
}

.blog-redesign .blog-body figcaption {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Blog body lists */
.blog-redesign .blog-body ul,
.blog-redesign .blog-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.blog-redesign .blog-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-redesign .blog-body li::marker {
    color: var(--accent-cyan);
}

/* Blog body blockquote */
.blog-redesign .blog-body blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
}

.blog-redesign .blog-body blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 4rem;
    color: var(--accent-cyan);
    opacity: 0.2;
    line-height: 1;
}

.blog-redesign .blog-body blockquote p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.blog-redesign .blog-body blockquote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--text-muted);
}

.blog-redesign .blog-body blockquote cite::before {
    content: '— ';
}

/* Blog body code inline */
.blog-redesign .blog-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
}

/* Blog body code blocks */
.blog-redesign .blog-body pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.blog-redesign .blog-body pre code {
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Blog body horizontal rule */
.blog-redesign .blog-body hr {
    margin: 3rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-cyan) 50%,
        transparent 100%
    );
    opacity: 0.3;
}

/* Blog body tables */
.blog-redesign .blog-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.blog-redesign .blog-body th,
.blog-redesign .blog-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-redesign .blog-body th {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-redesign .blog-body td {
    color: var(--text-secondary);
}

.blog-redesign .blog-body tr:hover td {
    background: var(--bg-card);
}

/* ----------------------------------------------------------------
   Related Posts Section
---------------------------------------------------------------- */
.blog-redesign .related-posts-section {
    position: relative;
    background: var(--bg-secondary);
    padding: var(--section-padding) 0;
    margin-top: 2rem;
}

/* Related posts section header */
.blog-redesign .related-posts-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-redesign .related-posts-section .section-header .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.blog-redesign .related-posts-section .section-header .label::before,
.blog-redesign .related-posts-section .section-header .label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

.blog-redesign .related-posts-section .section-header h2 {
    margin-bottom: 16px;
}

/* Related posts grid */
.blog-redesign .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Related post card - reuses blog-card styles with compact variant */
.blog-redesign .related-posts-grid .blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

/* Responsive adjustments for related posts */
@media (max-width: 768px) {
    .blog-redesign .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-redesign .related-posts-section .section-header .label::before,
    .blog-redesign .related-posts-section .section-header .label::after {
        width: 16px;
    }
}

/* ----------------------------------------------------------------
   Blog Navigation - Post to Post Navigation
---------------------------------------------------------------- */
.blog-redesign .blog-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: var(--section-padding) 0;
    border-top: 1px solid var(--border-subtle);
}

.blog-redesign .blog-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
}

.blog-redesign .blog-nav-link:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-cyan-subtle);
    transform: translateY(-2px);
}

.blog-redesign .blog-nav-link--next {
    text-align: right;
    align-items: flex-end;
}

.blog-redesign .blog-nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-redesign .blog-nav-label i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.blog-redesign .blog-nav-link:hover .blog-nav-label i {
    transform: translateX(-3px);
}

.blog-redesign .blog-nav-link--next:hover .blog-nav-label i {
    transform: translateX(3px);
}

.blog-redesign .blog-nav-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.blog-redesign .blog-nav-link:hover .blog-nav-title {
    color: var(--accent-cyan);
}

/* Responsive blog navigation */
@media (max-width: 768px) {
    .blog-redesign .blog-navigation {
        grid-template-columns: 1fr;
    }

    .blog-redesign .blog-nav-link--next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ----------------------------------------------------------------
   Blog Tags Footer - Post Tags Display
---------------------------------------------------------------- */
.blog-redesign .blog-tags-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.blog-redesign .blog-tags-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.blog-redesign .blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-redesign .blog-tag-link {
    padding: 6px 12px;
    background: var(--accent-cyan-dim);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-decoration: none;
    text-transform: lowercase;
    transition: all var(--transition-fast);
}

.blog-redesign .blog-tag-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

/* ================================================================
   Animations - Fade Up Scroll Animation
================================================================ */

/* ----------------------------------------------------------------
   Fade Up Animation - For scroll-triggered reveal effects
---------------------------------------------------------------- */
.blog-redesign .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.blog-redesign .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for sequential reveals */
.blog-redesign .fade-up-delay-1 {
    transition-delay: 0.1s;
}

.blog-redesign .fade-up-delay-2 {
    transition-delay: 0.2s;
}

.blog-redesign .fade-up-delay-3 {
    transition-delay: 0.3s;
}

.blog-redesign .fade-up-delay-4 {
    transition-delay: 0.4s;
}

/* Reduced motion preference - disable animations for accessibility */
@media (prefers-reduced-motion: reduce) {
    .blog-redesign .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .blog-redesign .fade-up.visible {
        opacity: 1;
        transform: none;
    }

    .blog-redesign .fade-up-delay-1,
    .blog-redesign .fade-up-delay-2,
    .blog-redesign .fade-up-delay-3,
    .blog-redesign .fade-up-delay-4 {
        transition-delay: 0s;
    }
}

/* ================================================================
   Responsive Breakpoints - Complete Responsive System
================================================================ */

/* ----------------------------------------------------------------
   Large Desktop (1200px+) - Default styles above
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   Desktop / Small Desktop (max-width: 1024px)
---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .blog-redesign .container {
        max-width: 100%;
    }

    .blog-redesign .container-narrow {
        max-width: 100%;
    }

    .blog-redesign .section-header {
        margin-bottom: 40px;
    }

    /* Reduce section padding */
    .blog-redesign section {
        padding: clamp(48px, 8vw, 80px) 0;
    }

    /* Hero adjustments */
    .blog-redesign .blog-hero,
    .blog-redesign .blog-post-hero {
        padding: clamp(60px, 12vw, 120px) 0;
    }
}

/* ----------------------------------------------------------------
   Tablet (max-width: 768px)
---------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Typography scaling */
    .blog-redesign h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .blog-redesign h2 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .blog-redesign h3 {
        font-size: clamp(1.15rem, 4vw, 1.35rem);
    }

    /* Section header adjustments */
    .blog-redesign .section-header {
        margin-bottom: 32px;
    }

    .blog-redesign .section-header .label::before,
    .blog-redesign .section-header .label::after {
        width: 16px;
    }

    /* Container padding adjustments */
    .blog-redesign .container,
    .blog-redesign .container-narrow {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Button adjustments */
    .blog-redesign .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Card content adjustments */
    .blog-redesign .blog-card-content {
        padding: 20px;
    }

    .blog-redesign .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-redesign .blog-card-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    /* Blog body adjustments */
    .blog-redesign .blog-body {
        font-size: 1rem;
        line-height: 1.8;
    }

    .blog-redesign .blog-body h2 {
        margin-top: 2.5rem;
        padding-top: 1rem;
    }

    .blog-redesign .blog-body h3 {
        margin-top: 2rem;
    }

    .blog-redesign .blog-body blockquote {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .blog-redesign .blog-body blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 12px;
    }

    .blog-redesign .blog-body pre {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .blog-redesign .blog-body table {
        font-size: 0.875rem;
    }

    .blog-redesign .blog-body th,
    .blog-redesign .blog-body td {
        padding: 10px 12px;
    }

    /* Tags footer adjustments */
    .blog-redesign .blog-tags-footer {
        padding: 1.5rem 0;
    }
}

/* ----------------------------------------------------------------
   Mobile (max-width: 480px)
---------------------------------------------------------------- */
@media (max-width: 480px) {
    /* Typography scaling for small screens */
    .blog-redesign h1 {
        font-size: 1.5rem;
    }

    .blog-redesign h2 {
        font-size: 1.25rem;
    }

    .blog-redesign h3 {
        font-size: 1.1rem;
    }

    .blog-redesign h4 {
        font-size: 1rem;
    }

    .blog-redesign p {
        font-size: 0.95rem;
    }

    /* Tighter container padding */
    .blog-redesign .container,
    .blog-redesign .container-narrow {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Section spacing */
    .blog-redesign section {
        padding: clamp(40px, 8vw, 60px) 0;
    }

    /* Hero adjustments */
    .blog-redesign .blog-hero,
    .blog-redesign .blog-post-hero {
        padding: clamp(48px, 10vw, 80px) 0;
    }

    .blog-redesign .blog-hero h1,
    .blog-redesign .blog-post-hero .post-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .blog-redesign .blog-hero .hero-description,
    .blog-redesign .blog-post-hero .hero-content p {
        font-size: 0.95rem;
    }

    .blog-redesign .blog-hero .hero-label,
    .blog-redesign .blog-post-hero .post-category {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    .blog-redesign .blog-hero .hero-label::before,
    .blog-redesign .blog-hero .hero-label::after,
    .blog-redesign .blog-post-hero .post-category::before,
    .blog-redesign .blog-post-hero .post-category::after {
        width: 12px;
    }

    /* Section headers */
    .blog-redesign .section-header {
        margin-bottom: 24px;
    }

    .blog-redesign .section-header .label {
        font-size: 0.65rem;
        gap: 8px;
    }

    .blog-redesign .section-header .label::before,
    .blog-redesign .section-header .label::after {
        width: 12px;
    }

    /* Blog grid */
    .blog-redesign .blog-grid {
        gap: 20px;
    }

    /* Card adjustments */
    .blog-redesign .blog-card-image {
        aspect-ratio: 16 / 10;
    }

    .blog-redesign .blog-card-content {
        padding: 16px;
    }

    .blog-redesign .blog-card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .blog-redesign .blog-card-excerpt {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .blog-redesign .blog-card-meta {
        gap: 12px;
        padding-top: 12px;
        font-size: 0.7rem;
    }

    .blog-redesign .blog-card-category {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .blog-redesign .blog-card-tags {
        gap: 6px;
        margin-top: 10px;
    }

    .blog-redesign .blog-card-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    /* Pagination adjustments */
    .blog-redesign .blog-pagination {
        gap: 4px;
        margin-top: 32px;
    }

    .blog-redesign .blog-pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .blog-redesign .blog-pagination-prev,
    .blog-redesign .blog-pagination-next {
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .blog-redesign .blog-pagination-ellipsis {
        min-width: 36px;
        height: 36px;
    }

    /* Post meta adjustments */
    .blog-redesign .blog-post-meta {
        gap: 8px;
        font-size: 0.8rem;
    }

    .blog-redesign .blog-post-meta-item {
        gap: 6px;
    }

    /* Blog body adjustments */
    .blog-redesign .blog-body {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .blog-redesign .blog-body h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .blog-redesign .blog-body h3 {
        font-size: 1.1rem;
        margin-top: 1.75rem;
    }

    .blog-redesign .blog-body h4 {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .blog-redesign .blog-body p {
        margin-bottom: 1.5rem;
    }

    .blog-redesign .blog-body img {
        margin: 1.5rem 0;
    }

    .blog-redesign .blog-body blockquote {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
        font-size: 0.95rem;
    }

    .blog-redesign .blog-body blockquote::before {
        font-size: 2.5rem;
        top: -3px;
        left: 10px;
    }

    .blog-redesign .blog-body pre {
        padding: 0.875rem;
        margin: 1.5rem 0;
    }

    .blog-redesign .blog-body pre code {
        font-size: 0.75rem;
    }

    .blog-redesign .blog-body ul,
    .blog-redesign .blog-body ol {
        padding-left: 1.25rem;
        margin: 1.25rem 0;
    }

    .blog-redesign .blog-body li {
        margin-bottom: 0.5rem;
    }

    .blog-redesign .blog-body table {
        font-size: 0.8rem;
    }

    .blog-redesign .blog-body th,
    .blog-redesign .blog-body td {
        padding: 8px 10px;
    }

    /* Related posts adjustments */
    .blog-redesign .related-posts-section {
        padding: clamp(40px, 8vw, 60px) 0;
    }

    .blog-redesign .related-posts-grid {
        gap: 16px;
    }

    /* Navigation adjustments */
    .blog-redesign .blog-navigation {
        gap: 16px;
        padding: clamp(32px, 6vw, 48px) 0;
    }

    .blog-redesign .blog-nav-link {
        padding: 16px;
    }

    .blog-redesign .blog-nav-label {
        font-size: 0.7rem;
    }

    .blog-redesign .blog-nav-title {
        font-size: 0.9rem;
    }

    /* Tags footer adjustments */
    .blog-redesign .blog-tags-footer {
        padding: 1.25rem 0;
        gap: 10px;
    }

    .blog-redesign .blog-tags-label {
        font-size: 0.7rem;
    }

    .blog-redesign .blog-tag-link {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    /* Button adjustments */
    .blog-redesign .btn {
        padding: 10px 16px;
        font-size: 0.75rem;
        gap: 6px;
    }

    /* Utility spacing adjustments */
    .blog-redesign .mt-4 { margin-top: 1.5rem; }
    .blog-redesign .mb-4 { margin-bottom: 1.5rem; }
}

/* ----------------------------------------------------------------
   Blog Empty State - No Posts Available
---------------------------------------------------------------- */
.blog-redesign .blog-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
}

.blog-redesign .blog-empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 24px;
}

.blog-redesign .blog-empty-state h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.blog-redesign .blog-empty-state p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 480px) {
    .blog-redesign .blog-empty-state {
        padding: 48px 20px;
    }

    .blog-redesign .blog-empty-state i {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .blog-redesign .blog-empty-state h3 {
        font-size: 1.25rem;
    }

    .blog-redesign .blog-empty-state p {
        font-size: 0.9rem;
    }
}

/* ================================================================
   ENHANCED CIRCUIT NOIR v2.0 - Premium Effects & Animations
================================================================ */

/* ----------------------------------------------------------------
   Scanline Overlay Effect - CRT/Terminal Aesthetic (Subtle)
---------------------------------------------------------------- */
.blog-redesign .scanline-overlay {
    display: none; /* Disabled - too obtrusive */
}

/* ----------------------------------------------------------------
   Glowing Neon Text Effects
---------------------------------------------------------------- */
.blog-redesign .neon-text {
    color: var(--accent-cyan);
    text-shadow: var(--glow-text);
    animation: neon-flicker 4s ease-in-out infinite;
}

.blog-redesign .neon-text-intense {
    color: var(--text-glow);
    text-shadow:
        0 0 5px var(--accent-cyan),
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 40px var(--accent-cyan);
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

/* ----------------------------------------------------------------
   Enhanced Hero Section - v2.0
---------------------------------------------------------------- */
.blog-redesign .blog-hero {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: clamp(100px, 18vw, 180px) 0 clamp(80px, 12vw, 120px);
    overflow: hidden;
}

/* Animated gradient orbs */
.blog-redesign .blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: float-orb 20s ease-in-out infinite;
    pointer-events: none;
}

.blog-redesign .blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.05) 0%, transparent 70%);
    animation: float-orb 25s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10%, 5%) scale(1.1); }
    50% { transform: translate(5%, 10%) scale(1); }
    75% { transform: translate(-5%, 5%) scale(0.95); }
}

/* Enhanced hero title with Orbitron font */
.blog-redesign .blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
    position: relative;
}

/* Glowing underline accent */
.blog-redesign .blog-hero h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    box-shadow: var(--glow-cyan);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 1; width: 120px; }
    50% { opacity: 0.7; width: 140px; }
}

/* Enhanced hero label with terminal cursor */
.blog-redesign .blog-hero .hero-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.blog-redesign .blog-hero .hero-label::before {
    content: '>';
    color: var(--accent-cyan);
    animation: blink-cursor 1s step-end infinite;
}

.blog-redesign .blog-hero .hero-label::after {
    content: '_';
    color: var(--accent-cyan);
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ----------------------------------------------------------------
   Enhanced Blog Cards - v2.0
---------------------------------------------------------------- */
.blog-redesign .blog-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

/* Subtle glow border on hover */
.blog-redesign .blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-card-hover), var(--glow-cyan-subtle);
    background: var(--bg-card-hover);
}

/* Enhanced card image with overlay */
.blog-redesign .blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(10, 15, 26, 0.8) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.blog-redesign .blog-card:hover .blog-card-image::after {
    opacity: 1;
}

/* Enhanced card title hover effect */
.blog-redesign .blog-card:hover .blog-card-title {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan-subtle);
}

/* ----------------------------------------------------------------
   Reading Time Badge
---------------------------------------------------------------- */
.blog-redesign .reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent-cyan-dim);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-redesign .reading-time i {
    font-size: 0.65rem;
}

/* ----------------------------------------------------------------
   Featured Post - Large Hero Card
---------------------------------------------------------------- */
.blog-redesign .blog-card--featured {
    grid-column: 1 / -1;
    min-height: 400px;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        var(--bg-card);
}

@media (min-width: 769px) {
    .blog-redesign .blog-card--featured {
        display: block;
    }

    .blog-redesign .blog-card--featured .blog-card-link {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        height: 100%;
    }

    .blog-redesign .blog-card--featured .blog-card-image {
        aspect-ratio: auto;
        min-height: 400px;
    }

    .blog-redesign .blog-card--featured .blog-card-content {
        padding: 40px;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }

    .blog-redesign .blog-card--featured .blog-card-title {
        font-family: var(--font-display);
        font-size: 1.75rem;
        letter-spacing: 0.02em;
    }

    .blog-redesign .blog-card--featured .blog-card-excerpt {
        -webkit-line-clamp: 5;
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

/* Featured badge */
.blog-redesign .featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent-amber), #ff6b00);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-primary);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* ----------------------------------------------------------------
   Enhanced Category Badge
---------------------------------------------------------------- */
.blog-redesign .blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    z-index: 2;
    transition: all var(--transition-base);
}

.blog-redesign .blog-card:hover .blog-card-category {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

/* ----------------------------------------------------------------
   Enhanced Pagination
---------------------------------------------------------------- */
.blog-redesign .blog-pagination-link {
    position: relative;
    overflow: hidden;
}

.blog-redesign .blog-pagination-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-cyan-dim), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.blog-redesign .blog-pagination-link:hover::before {
    opacity: 1;
}

/* Active page with glow */
.blog-redesign .blog-pagination-link--active {
    box-shadow: var(--glow-cyan);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--glow-cyan); }
    50% { box-shadow: var(--glow-cyan-intense); }
}

/* ----------------------------------------------------------------
   Blog Post Detail - Enhanced Hero
---------------------------------------------------------------- */
.blog-redesign .blog-post-hero {
    position: relative;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: clamp(120px, 20vw, 200px) 0 clamp(80px, 12vw, 120px);
    overflow: hidden;
}

.blog-redesign .blog-post-hero .post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: 0.03em;
    line-height: 1.15;
}

/* Animated decorative elements */
.blog-redesign .blog-post-hero .hero-content::before {
    content: '//';
    position: absolute;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    opacity: 0.03;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   Enhanced Blog Body Content
---------------------------------------------------------------- */
.blog-redesign .blog-body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 2;
}

.blog-redesign .blog-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    letter-spacing: 0.02em;
    position: relative;
}

/* Section number indicator */
.blog-redesign .blog-body h2::before {
    content: '§';
    margin-right: 12px;
    color: var(--accent-cyan);
    font-size: 0.8em;
}

.blog-redesign .blog-body h3 {
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 2.8vw, 1.6rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Enhanced code blocks with terminal styling */
.blog-redesign .blog-body pre {
    position: relative;
    margin: 2.5rem 0;
    padding: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Terminal header bar */
.blog-redesign .blog-body pre::before {
    content: '';
    display: block;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

/* Terminal dots */
.blog-redesign .blog-body pre::after {
    content: '● ● ●';
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.blog-redesign .blog-body pre code {
    display: block;
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

/* Enhanced blockquotes */
.blog-redesign .blog-body blockquote {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background:
        linear-gradient(135deg, var(--accent-cyan-ultra-dim) 0%, transparent 100%),
        var(--bg-card);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.9;
    box-shadow: var(--shadow-md);
}

.blog-redesign .blog-body blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--accent-cyan);
    opacity: 0.15;
    line-height: 1;
}

/* ----------------------------------------------------------------
   Staggered Card Animation
---------------------------------------------------------------- */
.blog-redesign .blog-grid .blog-card {
    opacity: 0;
    transform: translateY(40px);
    animation: card-reveal 0.6s ease forwards;
}

.blog-redesign .blog-grid .blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-redesign .blog-grid .blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-redesign .blog-grid .blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-redesign .blog-grid .blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-redesign .blog-grid .blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-redesign .blog-grid .blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes card-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------------
   Floating Particles Background (CSS-only)
---------------------------------------------------------------- */
.blog-redesign .particles-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blog-redesign .particles-bg span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan-subtle);
    animation: float-particle 20s linear infinite;
}

.blog-redesign .particles-bg span:nth-child(1) { left: 10%; animation-delay: 0s; }
.blog-redesign .particles-bg span:nth-child(2) { left: 20%; animation-delay: 2s; }
.blog-redesign .particles-bg span:nth-child(3) { left: 30%; animation-delay: 4s; }
.blog-redesign .particles-bg span:nth-child(4) { left: 40%; animation-delay: 6s; }
.blog-redesign .particles-bg span:nth-child(5) { left: 50%; animation-delay: 8s; }
.blog-redesign .particles-bg span:nth-child(6) { left: 60%; animation-delay: 10s; }
.blog-redesign .particles-bg span:nth-child(7) { left: 70%; animation-delay: 12s; }
.blog-redesign .particles-bg span:nth-child(8) { left: 80%; animation-delay: 14s; }
.blog-redesign .particles-bg span:nth-child(9) { left: 90%; animation-delay: 16s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ----------------------------------------------------------------
   Glitch Text Effect (for special headings)
---------------------------------------------------------------- */
.blog-redesign .glitch-text {
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.blog-redesign .glitch-text::before,
.blog-redesign .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-redesign .glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.blog-redesign .glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-green);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(16px, 9999px, 78px, 0); }
    60% { clip: rect(89px, 9999px, 13px, 0); }
    80% { clip: rect(45px, 9999px, 67px, 0); }
    100% { clip: rect(23px, 9999px, 89px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 54px, 0); }
    40% { clip: rect(78px, 9999px, 32px, 0); }
    60% { clip: rect(34px, 9999px, 91px, 0); }
    80% { clip: rect(56px, 9999px, 19px, 0); }
    100% { clip: rect(91px, 9999px, 45px, 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(0deg); }
    21% { transform: skew(-1deg); }
    22% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

/* ----------------------------------------------------------------
   Back to Blog Navigation Link
---------------------------------------------------------------- */
.blog-redesign .blog-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin-bottom: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.blog-redesign .blog-nav-back:hover {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateX(-4px);
    box-shadow: var(--glow-cyan-subtle);
}

.blog-redesign .blog-nav-back i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.blog-redesign .blog-nav-back:hover i {
    transform: translateX(-4px);
}

/* ----------------------------------------------------------------
   Share Buttons (Social)
---------------------------------------------------------------- */
.blog-redesign .blog-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.blog-redesign .blog-share-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.blog-redesign .blog-share-buttons {
    display: flex;
    gap: 8px;
}

.blog-redesign .blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.blog-redesign .blog-share-btn:hover {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan-subtle);
}

/* ----------------------------------------------------------------
   Author Bio Card
---------------------------------------------------------------- */
.blog-redesign .author-bio {
    display: flex;
    gap: 24px;
    padding: 32px;
    margin: 3rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-cyan);
}

.blog-redesign .author-bio-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

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

.blog-redesign .author-bio-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.blog-redesign .author-bio-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.blog-redesign .author-bio-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .blog-redesign .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
}

/* ----------------------------------------------------------------
   Reduced Motion - Accessibility
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .blog-redesign .blog-card,
    .blog-redesign .blog-hero::before,
    .blog-redesign .blog-hero::after,
    .blog-redesign .neon-text,
    .blog-redesign .glitch-text,
    .blog-redesign .glitch-text::before,
    .blog-redesign .glitch-text::after,
    .blog-redesign .particles-bg span,
    .blog-redesign .blog-pagination-link--active {
        animation: none;
    }

    .blog-redesign .blog-grid .blog-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
