/* ============================================================
   CriticalBuzzer Blog — Premium Dark Cosmic Design System
   Version 2.0 — Full Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Core Palette */
    --bg:              #020617;
    --bg-900:          #0A0F1E;
    --bg-surface:      #0F172A;
    --bg-surface-2:    #111827;
    --bg-card:         rgba(13, 20, 40, 0.75);
    --bg-card-hover:   rgba(22, 33, 62, 0.88);
    --border:          rgba(255, 255, 255, 0.07);
    --border-light:    rgba(255, 255, 255, 0.04);
    --border-accent:   rgba(99, 102, 241, 0.4);

    /* Text */
    --text-primary:    #F1F5F9;
    --text-secondary:  #94A3B8;
    --text-muted:      #64748B;
    --text-inverse:    #020617;

    /* Accent — Indigo / Violet */
    --accent:          #6366F1;
    --accent-dark:     #4F46E5;
    --accent-light:    rgba(99, 102, 241, 0.12);
    --accent-glow:     rgba(99, 102, 241, 0.35);
    --violet:          #8B5CF6;
    --violet-light:    rgba(139, 92, 246, 0.15);

    /* Category Placeholder Colors */
    --cat-monitoring-a: #0D9488; --cat-monitoring-b: #6366F1;
    --cat-webhooks-a:   #8B5CF6; --cat-webhooks-b:   #EC4899;
    --cat-incidents-a:  #EF4444; --cat-incidents-b:  #F97316;
    --cat-infra-a:      #10B981; --cat-infra-b:      #06B6D4;
    --cat-sre-a:        #3B82F6; --cat-sre-b:        #8B5CF6;
    --cat-tutorials-a:  #F59E0B; --cat-tutorials-b:  #EF4444;
    --cat-news-a:       #6366F1; --cat-news-b:       #38BDF8;
    --cat-default-a:    #6366F1; --cat-default-b:    #9333EA;

    /* Radius */
    --radius-sm:   6px;
    --radius:      12px;
    --radius-lg:   18px;
    --radius-xl:   24px;
    --radius-2xl:  32px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
    --shadow:      0 4px 16px rgba(0,0,0,.5);
    --shadow-lg:   0 20px 48px rgba(0,0,0,.6);
    --shadow-xl:   0 32px 72px rgba(0,0,0,.7);

    /* Typography */
    --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;

    /* Layout */
    --page-width:    1320px;
    --reading-width: 780px;
}

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

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main { flex: 1; }

a { color: #818CF8; text-decoration: none; transition: color .2s ease; }
a:hover { color: #A5B4FC; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #6366F1, #A855F7, #EC4899);
    z-index: 1000;
    transition: width .1s linear;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

/* ============================================================
   SITE HEADER — Glassmorphism Sticky Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.site-header .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366F1 0%, #9333EA 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
    position: relative;
    overflow: hidden;
}

.site-header .brand-icon::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
    border-radius: inherit;
}

.site-header .brand-icon-text {
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.site-header .brand-text {
    background: linear-gradient(135deg, #A5B4FC 0%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.site-header .header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.site-header .header-nav a {
    padding: 7px 14px;
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all .18s ease;
}

.site-header .header-nav a:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.07);
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-header .header-login-link {
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    transition: all .18s ease;
}

.site-header .header-login-link:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.07);
}

.site-header .btn-primary {
    background: linear-gradient(135deg, #6366F1 0%, #7C3AED 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 20px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.site-header .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
    color: #FFFFFF;
}

/* Mobile Navigation */
@media (min-width: 768px) {
    .site-header .mobile-only { display: none !important; }
    .site-header .desktop-only { display: inline-flex !important; }
}

@media (max-width: 767px) {
    .site-header .desktop-only { display: none !important; }
    .site-header .mobile-only { display: flex !important; }
    .site-header .header-nav { display: none !important; }
    .header-inner { padding: 0 18px; height: 60px; }
}

.mobile-menu-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    background-color: #020617;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    padding: 24px 24px 32px;
    box-sizing: border-box;
}

.mobile-menu-close-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 32px;
}

.mobile-menu-close-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav-link.btn-mobile-register {
    margin-top: 16px;
    background: linear-gradient(135deg, #6366F1, #7C3AED);
    color: #FFFFFF;
    text-align: center;
    border-radius: 9999px;
    border-bottom: none;
    padding: 13px 24px;
}


/* ============================================================
   HERO BANNER — Animated Cosmic Mesh
   ============================================================ */

.cb-blog-hero {
    position: relative;
    padding: 96px 28px 64px;
    text-align: center;
    overflow: hidden;
    background: var(--bg);
}

/* Animated mesh gradient orbs */
.hero-mesh-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orb-drift 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 700px; height: 500px;
    top: -200px; left: -100px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
    animation-duration: 14s;
}

.hero-orb-2 {
    width: 600px; height: 500px;
    top: -180px; right: -80px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    animation-duration: 10s;
    animation-delay: -4s;
    animation-direction: reverse;
}

.hero-orb-3 {
    width: 400px; height: 350px;
    bottom: -80px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.09) 0%, transparent 70%);
    animation-duration: 16s;
    animation-delay: -8s;
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* Grid dot pattern overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(99, 102, 241, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Bottom fade so hero blends into content */
.hero-fade-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 1;
}

.cb-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

/* Eyebrow badge */
.cb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A5B4FC;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.28);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #6366F1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(99,102,241,0.8); }
    50%       { opacity: 0.6; box-shadow: 0 0 16px rgba(99,102,241,0.4); }
}

/* Hero heading */
.cb-blog-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #818CF8 0%, #C084FC 40%, #F472B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cb-blog-hero > .cb-hero-content > p {
    font-size: 1.15rem;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* Search Bar */
.cb-hero-search-form {
    max-width: 600px;
    margin: 0 auto 48px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px 6px 6px 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.08), 0 16px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}

.search-input-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 16px 40px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.95);
}

.search-icon { color: #475569; margin-right: 12px; flex-shrink: 0; }

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-family: var(--font);
    padding: 6px 0;
}

.search-input-wrapper input::placeholder { color: #475569; }

.cb-search-submit-btn {
    background: linear-gradient(135deg, #6366F1 0%, #7C3AED 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 22px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}

.cb-search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

/* Hero Stats Bar */
.cb-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 28px;
    position: relative;
}

.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 28px;
    background: rgba(255,255,255,0.1);
}

.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Category Filter Pills */
.cb-category-pills-container {
    position: relative;
    z-index: 2;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 28px;
}

.cb-category-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cb-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #94A3B8;
    font-size: 0.825rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.cb-pill:hover {
    background: rgba(22, 33, 62, 0.9);
    border-color: rgba(99, 102, 241, 0.4);
    color: #F1F5F9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cb-pill.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #C7D2FE;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 4px 16px rgba(99, 102, 241, 0.2);
}

.pill-count {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: #64748B;
}

.cb-pill.active .pill-count {
    background: rgba(99, 102, 241, 0.25);
    color: #C7D2FE;
}


/* ============================================================
   DIVIDER — Gradient Line
   ============================================================ */
.cb-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3) 30%, rgba(139,92,246,0.3) 70%, transparent);
    margin: 48px 0 0;
    position: relative;
    z-index: 2;
}


/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */

.cb-blog-main-container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 60px 28px 100px;
}


/* ============================================================
   CATEGORY BADGE — Used in cards & featured
   ============================================================ */
.cb-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #A5B4FC;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cb-category-badge:hover {
    background: rgba(99, 102, 241, 0.22);
    color: #FFFFFF;
    border-color: rgba(99, 102, 241, 0.5);
}


/* ============================================================
   FEATURED ARTICLE SHOWCASE
   ============================================================ */
.cb-featured-section {
    margin-bottom: 72px;
}

.cb-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #F59E0B;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.label-star { font-size: 0.8rem; }

/* The featured card itself */
.cb-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: linear-gradient(145deg, rgba(13, 20, 42, 0.95) 0%, rgba(20, 28, 54, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cb-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cb-featured-card:hover::before { opacity: 1; }

.cb-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.12);
}

.featured-card-content {
    padding: 48px 48px 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.cb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748B;
    font-size: 0.8rem;
}

.featured-card-title {
    margin-bottom: 14px;
}

.featured-card-title a {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 900;
    color: #F1F5F9;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-card-title a:hover { color: #A5B4FC; }

.featured-card-subtitle {
    font-size: 1rem;
    color: #CBD5E1;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.55;
}

.featured-card-excerpt {
    font-size: 0.925rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.featured-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cb-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366F1 0%, #7C3AED 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 11px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.cb-read-more-btn:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
    color: #FFFFFF;
}

/* Featured card media — right side */
.featured-card-media {
    position: relative;
    min-height: 340px;
    background: var(--bg-surface);
    overflow: hidden;
}

.featured-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cb-featured-card:hover .featured-card-media img {
    transform: scale(1.05);
}

/* ----  Featured Placeholder — Mesh Art  ---- */
.featured-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-placeholder-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-placeholder-art .art-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.75;
}

.cb-placeholder-art .art-icon-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.cb-placeholder-art .art-icon {
    font-size: 3.2rem;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    animation: float-icon 5s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.cb-placeholder-art .art-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* Category-specific orb colors */
.ph-monitoring .art-orb-1  { width:280px; height:240px; top:-40px; left:-60px; background: radial-gradient(ellipse, rgba(13,148,136,0.6) 0%, transparent 70%); }
.ph-monitoring .art-orb-2  { width:220px; height:180px; bottom:-30px; right:-40px; background: radial-gradient(ellipse, rgba(99,102,241,0.5) 0%, transparent 70%); }
.ph-monitoring .art-orb-3  { width:150px; height:150px; top:40%; left:40%; background: radial-gradient(ellipse, rgba(16,185,129,0.4) 0%, transparent 70%); }

.ph-webhooks .art-orb-1    { width:280px; height:240px; top:-40px; right:-60px; background: radial-gradient(ellipse, rgba(139,92,246,0.6) 0%, transparent 70%); }
.ph-webhooks .art-orb-2    { width:220px; height:180px; bottom:-30px; left:-40px; background: radial-gradient(ellipse, rgba(236,72,153,0.5) 0%, transparent 70%); }
.ph-webhooks .art-orb-3    { width:150px; height:150px; top:30%; right:35%; background: radial-gradient(ellipse, rgba(167,139,250,0.4) 0%, transparent 70%); }

.ph-incidents .art-orb-1   { width:280px; height:240px; top:-40px; left:-20px; background: radial-gradient(ellipse, rgba(239,68,68,0.55) 0%, transparent 70%); }
.ph-incidents .art-orb-2   { width:220px; height:180px; bottom:-30px; right:-20px; background: radial-gradient(ellipse, rgba(249,115,22,0.5) 0%, transparent 70%); }
.ph-incidents .art-orb-3   { width:150px; height:150px; top:40%; left:45%; background: radial-gradient(ellipse, rgba(253,186,116,0.35) 0%, transparent 70%); }

.ph-infra .art-orb-1       { width:280px; height:240px; top:-40px; left:-60px; background: radial-gradient(ellipse, rgba(16,185,129,0.55) 0%, transparent 70%); }
.ph-infra .art-orb-2       { width:220px; height:180px; bottom:-30px; right:-40px; background: radial-gradient(ellipse, rgba(6,182,212,0.5) 0%, transparent 70%); }
.ph-infra .art-orb-3       { width:150px; height:150px; top:35%; left:40%; background: radial-gradient(ellipse, rgba(34,211,238,0.35) 0%, transparent 70%); }

.ph-sre .art-orb-1         { width:280px; height:240px; top:-40px; right:-40px; background: radial-gradient(ellipse, rgba(59,130,246,0.55) 0%, transparent 70%); }
.ph-sre .art-orb-2         { width:220px; height:180px; bottom:-30px; left:-40px; background: radial-gradient(ellipse, rgba(139,92,246,0.5) 0%, transparent 70%); }
.ph-sre .art-orb-3         { width:150px; height:150px; top:30%; left:35%; background: radial-gradient(ellipse, rgba(99,102,241,0.35) 0%, transparent 70%); }

.ph-tutorials .art-orb-1   { width:280px; height:240px; top:-40px; left:-40px; background: radial-gradient(ellipse, rgba(245,158,11,0.55) 0%, transparent 70%); }
.ph-tutorials .art-orb-2   { width:220px; height:180px; bottom:-30px; right:-40px; background: radial-gradient(ellipse, rgba(239,68,68,0.5) 0%, transparent 70%); }
.ph-tutorials .art-orb-3   { width:150px; height:150px; top:40%; left:45%; background: radial-gradient(ellipse, rgba(251,191,36,0.35) 0%, transparent 70%); }

.ph-news .art-orb-1        { width:280px; height:240px; top:-40px; right:-60px; background: radial-gradient(ellipse, rgba(99,102,241,0.55) 0%, transparent 70%); }
.ph-news .art-orb-2        { width:220px; height:180px; bottom:-30px; left:-40px; background: radial-gradient(ellipse, rgba(56,189,248,0.5) 0%, transparent 70%); }
.ph-news .art-orb-3        { width:150px; height:150px; top:30%; left:40%; background: radial-gradient(ellipse, rgba(125,211,252,0.35) 0%, transparent 70%); }

.ph-default .art-orb-1     { width:280px; height:240px; top:-60px; left:-40px; background: radial-gradient(ellipse, rgba(99,102,241,0.5) 0%, transparent 70%); }
.ph-default .art-orb-2     { width:220px; height:200px; bottom:-40px; right:-40px; background: radial-gradient(ellipse, rgba(147,51,234,0.5) 0%, transparent 70%); }
.ph-default .art-orb-3     { width:160px; height:160px; top:40%; left:45%; background: radial-gradient(ellipse, rgba(167,139,250,0.35) 0%, transparent 70%); }

/* Noise texture overlay on placeholders */
.cb-placeholder-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1000px) {
    .cb-featured-card { grid-template-columns: 1fr; }
    .featured-card-content { padding: 36px; order: 2; }
    .featured-card-media { order: 1; min-height: 260px; }
}

@media (max-width: 640px) {
    .featured-card-content { padding: 28px 24px; }
}


/* ============================================================
   LATEST ARTICLES GRID
   ============================================================ */
.cb-latest-section { margin-bottom: 72px; }

.cb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 36px;
}

.cb-section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #F1F5F9;
    letter-spacing: -0.025em;
}

.section-count {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: #64748B;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 9999px;
}

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

@media (max-width: 1100px) {
    .cb-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

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


/* ============================================================
   ARTICLE CARD — Premium Glassmorphism
   ============================================================ */
.cb-article-card {
    display: flex;
    flex-direction: column;
    background: rgba(13, 20, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.cb-article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    pointer-events: none;
    z-index: 0;
}

.cb-article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(99, 102, 241, 0.15),
        0 0 32px rgba(99, 102, 241, 0.08);
    background: rgba(16, 24, 48, 0.85);
}

/* Card Image / Placeholder wrapper */
.cb-card-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-surface);
    flex-shrink: 0;
}

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

.cb-article-card:hover .cb-card-image { transform: scale(1.07); }

.cb-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,0) 40%, rgba(2,6,23,0.7) 100%);
}

/* Card Placeholder — Mini Mesh Art */
.cb-card-image-placeholder {
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.cb-card-placeholder-art {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-card-placeholder-art .card-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.7;
}

.cb-card-placeholder-art .card-icon-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cb-card-placeholder-art .card-icon {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.25));
    animation: float-icon 5s ease-in-out infinite;
}

.cb-card-placeholder-art .card-cat-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* Card placeholder category orbs */
.cph-monitoring .card-orb-1 { width:120px; height:100px; top:-20px; left:-20px; background: radial-gradient(ellipse, rgba(13,148,136,0.7) 0%, transparent 70%); }
.cph-monitoring .card-orb-2 { width:100px; height:90px; bottom:-20px; right:-20px; background: radial-gradient(ellipse, rgba(99,102,241,0.6) 0%, transparent 70%); }
.cph-monitoring .card-orb-3 { width:70px; height:70px; top:40%; left:50%; background: radial-gradient(ellipse, rgba(16,185,129,0.5) 0%, transparent 70%); }

.cph-webhooks .card-orb-1  { width:120px; height:100px; top:-20px; right:-20px; background: radial-gradient(ellipse, rgba(139,92,246,0.7) 0%, transparent 70%); }
.cph-webhooks .card-orb-2  { width:100px; height:90px; bottom:-20px; left:-20px; background: radial-gradient(ellipse, rgba(236,72,153,0.6) 0%, transparent 70%); }
.cph-webhooks .card-orb-3  { width:70px; height:70px; top:35%; right:45%; background: radial-gradient(ellipse, rgba(167,139,250,0.45) 0%, transparent 70%); }

.cph-incidents .card-orb-1 { width:120px; height:100px; top:-20px; left:-10px; background: radial-gradient(ellipse, rgba(239,68,68,0.65) 0%, transparent 70%); }
.cph-incidents .card-orb-2 { width:100px; height:90px; bottom:-20px; right:-10px; background: radial-gradient(ellipse, rgba(249,115,22,0.6) 0%, transparent 70%); }
.cph-incidents .card-orb-3 { width:70px; height:70px; top:40%; left:50%; background: radial-gradient(ellipse, rgba(253,186,116,0.4) 0%, transparent 70%); }

.cph-infra .card-orb-1    { width:120px; height:100px; top:-20px; left:-20px; background: radial-gradient(ellipse, rgba(16,185,129,0.65) 0%, transparent 70%); }
.cph-infra .card-orb-2    { width:100px; height:90px; bottom:-20px; right:-20px; background: radial-gradient(ellipse, rgba(6,182,212,0.6) 0%, transparent 70%); }
.cph-infra .card-orb-3    { width:70px; height:70px; top:35%; left:45%; background: radial-gradient(ellipse, rgba(34,211,238,0.4) 0%, transparent 70%); }

.cph-sre .card-orb-1      { width:120px; height:100px; top:-20px; right:-20px; background: radial-gradient(ellipse, rgba(59,130,246,0.65) 0%, transparent 70%); }
.cph-sre .card-orb-2      { width:100px; height:90px; bottom:-20px; left:-20px; background: radial-gradient(ellipse, rgba(139,92,246,0.6) 0%, transparent 70%); }
.cph-sre .card-orb-3      { width:70px; height:70px; top:30%; left:40%; background: radial-gradient(ellipse, rgba(99,102,241,0.4) 0%, transparent 70%); }

.cph-tutorials .card-orb-1 { width:120px; height:100px; top:-20px; left:-20px; background: radial-gradient(ellipse, rgba(245,158,11,0.65) 0%, transparent 70%); }
.cph-tutorials .card-orb-2 { width:100px; height:90px; bottom:-20px; right:-20px; background: radial-gradient(ellipse, rgba(239,68,68,0.6) 0%, transparent 70%); }
.cph-tutorials .card-orb-3 { width:70px; height:70px; top:40%; left:45%; background: radial-gradient(ellipse, rgba(251,191,36,0.4) 0%, transparent 70%); }

.cph-news .card-orb-1     { width:120px; height:100px; top:-20px; right:-20px; background: radial-gradient(ellipse, rgba(99,102,241,0.65) 0%, transparent 70%); }
.cph-news .card-orb-2     { width:100px; height:90px; bottom:-20px; left:-20px; background: radial-gradient(ellipse, rgba(56,189,248,0.6) 0%, transparent 70%); }
.cph-news .card-orb-3     { width:70px; height:70px; top:30%; left:40%; background: radial-gradient(ellipse, rgba(125,211,252,0.4) 0%, transparent 70%); }

.cph-default .card-orb-1  { width:120px; height:100px; top:-20px; left:-20px; background: radial-gradient(ellipse, rgba(99,102,241,0.65) 0%, transparent 70%); }
.cph-default .card-orb-2  { width:100px; height:90px; bottom:-20px; right:-20px; background: radial-gradient(ellipse, rgba(147,51,234,0.6) 0%, transparent 70%); }
.cph-default .card-orb-3  { width:70px; height:70px; top:40%; left:45%; background: radial-gradient(ellipse, rgba(167,139,250,0.4) 0%, transparent 70%); }

/* Card Body */
.cb-card-body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.cb-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.cb-card-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.73rem;
    color: #64748B;
    font-family: var(--font-mono);
}

.cb-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.cb-card-title a {
    color: #E2E8F0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cb-card-title a:hover { color: #A5B4FC; }

.cb-card-subtitle {
    font-size: 0.85rem;
    color: #CBD5E1;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.45;
}

.cb-card-excerpt {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    flex: 1;
}

.cb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.cb-card-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748B;
}

.cb-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #818CF8;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 5px 12px;
    border-radius: 7px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.cb-card-link:hover {
    color: #C7D2FE;
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.3);
    gap: 8px;
}

/* Card entrance animation */
.cb-article-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.35s, box-shadow 0.35s, background 0.35s;
}

.cb-article-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   PAGINATION
   ============================================================ */
.cb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 56px;
}

.cb-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    background: rgba(13, 20, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cb-page-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.cb-page-info {
    font-size: 0.825rem;
    color: #64748B;
    font-family: var(--font-mono);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 7px 16px;
    border-radius: 9999px;
}

/* Empty State */
.cb-empty-state {
    text-align: center;
    padding: 80px 24px;
    background: rgba(13, 20, 40, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 520px;
    margin: 32px auto;
}

.cb-empty-state p { color: #94A3B8; line-height: 1.65; }


/* ============================================================
   CALL TO ACTION BANNER
   ============================================================ */
.cb-newsletter-cta {
    position: relative;
    margin-top: 80px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(13, 20, 42, 0.98) 0%, rgba(20, 14, 46, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 72px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

/* Animated gradient border top */
.cb-newsletter-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.7) 30%, rgba(139,92,246,0.7) 70%, transparent);
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 350px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.07) 45%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: cta-glow-pulse 6s ease-in-out infinite;
}

@keyframes cta-glow-pulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #A5B4FC;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: #F1F5F9;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.cb-btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #6366F1 0%, #7C3AED 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.925rem;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.cb-btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(99, 102, 241, 0.6);
    color: #FFFFFF;
}

.cb-btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cb-btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: translateY(-1px);
}


/* ============================================================
   ARTICLE DETAIL PAGE STYLES
   ============================================================ */

.article-layout {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 48px 24px 0;
    position: relative;
}

.article-header {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 24px 0 8px;
}

.article-header .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: #64748B;
    margin-bottom: 24px;
}

.article-header .breadcrumbs a { color: #94A3B8; }
.article-header .breadcrumbs a:hover { color: #6366F1; }
.article-header .breadcrumbs span,
.article-header .breadcrumbs .breadcrumb-current { color: #64748B; font-weight: normal; }

.article-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.article-header .subtitle {
    font-size: 1.2rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
}

.article-header .meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 0;
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #9333EA 100%);
    color: white;
    font-size: .9rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.author-name { font-weight: 600; font-size: .9rem; color: #F8FAFC; }
.author-date { font-size: .8rem; color: #64748B; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.tag-pill {
    font-size: .75rem;
    font-weight: 500;
    color: #94A3B8;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    text-decoration: none;
    transition: all .15s;
}

.tag-pill:hover { border-color: #6366F1; color: #818CF8; background: rgba(99, 102, 241, 0.12); }

.article-featured-image {
    max-width: var(--reading-width);
    margin: 36px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-featured-image img { width: 100%; }

.article-body {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 0 0 64px;
    font-size: 1.05rem;
    line-height: 1.78;
    color: #CBD5E1;
}

.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: #FFFFFF;
    margin-top: 2.25em;
    margin-bottom: .75em;
}

.article-body h2 { font-size: 1.75rem; padding-bottom: .4em; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.article-body h3 { font-size: 1.375rem; }
.article-body h4 { font-size: 1.125rem; }

.article-body p { margin-bottom: 20px; }

.article-body a { color: #818CF8; text-decoration: underline; text-underline-offset: 4px; }
.article-body a:hover { color: #A5B4FC; }

.article-body ul, .article-body ol {
    padding-left: 1.75em;
    margin-bottom: 1.5em;
}

.article-body li { margin-bottom: .6em; }
.article-body li::marker { color: #6366F1; }

.article-body blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem;
    background: rgba(15, 23, 42, 0.9);
    border-left: 4px solid #6366F1;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.article-body blockquote p { color: #E2E8F0; font-size: 1.05rem; margin-bottom: 0; }

.code-block-wrapper {
    margin: 2em 0;
    background: #060C1A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block-lang { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: #64748B; }

.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

.article-body pre { background: #060C1A; padding: 20px 24px; overflow-x: auto; }
.article-body pre code { font-family: var(--font-mono); font-size: 0.9rem; color: #E2E8F0; }
.article-body :not(pre) > code {
    background: rgba(99, 102, 241, 0.12);
    color: #A5B4FC;
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(99, 102, 241, 0.22);
}

/* TOC Sidebar */
.toc-sidebar {
    position: absolute;
    left: calc(100% + 40px);
    top: 0;
    bottom: 0;
    height: 100%;
    width: 260px;
    pointer-events: none;
    z-index: 10;
}

@media (max-width: 1200px) { .toc-sidebar { display: none !important; } }

.sticky-toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    pointer-events: auto;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 14px;
    padding: 20px 16px;
    backdrop-filter: blur(16px);
}

.toc-sidebar h3 {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #64748B;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
    display: block;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #94A3B8;
    border-radius: 6px;
    transition: all 0.18s ease;
    text-decoration: none;
}
.toc-list a:hover { color: #A5B4FC; background: rgba(99, 102, 241, 0.1); }
.toc-list a.active { color: #FFFFFF; background: rgba(99, 102, 241, 0.18); font-weight: 600; }

/* Feedback Widget */
.feedback-widget {
    max-width: var(--reading-width);
    margin: 40px auto 48px;
    background: rgba(13, 20, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(16px);
}

.feedback-widget h3 { font-size: 1.05rem; font-weight: 600; color: #FFFFFF; margin-bottom: 20px; }
.feedback-buttons { display: flex; gap: 14px; justify-content: center; }

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.feedback-btn:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; transform: translateY(-2px); }

/* Category / Tag / Search pages */
.cb-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cb-btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }


/* ============================================================
   ANIMATION KEYFRAMES
   ============================================================ */
@keyframes cb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.1); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .cb-blog-hero { padding: 72px 20px 52px; }
    .cb-blog-main-container { padding: 44px 20px 80px; }
    .cb-hero-stats { gap: 0; }
    .hero-stat { padding: 0 16px; }
    .hero-stat-number { font-size: 1.3rem; }
    .cb-newsletter-cta { padding: 52px 24px; border-radius: 20px; }
    .featured-card-content { padding: 28px 24px; }
}

@media (max-width: 480px) {
    .cb-blog-hero h1 { font-size: 2rem; }
    .hero-stat-number { font-size: 1.15rem; }
    .hero-stat { padding: 0 10px; }
    .cb-category-pills-container { padding: 0 20px; }
    .search-input-wrapper { flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-radius: 12px; }
    .cb-search-submit-btn { width: 100%; justify-content: center; }
}
