/**
 * MotionCircles Blog Styles
 * =========================
 * Styles for home.php (blog listing), single.php (single post),
 * and category.php (category archive).
 * Matches MC brand: dark theme, purple accents, Outfit + DM Sans typography.
 *
 * Design tokens (from _variables.scss):
 *   bg-base: #0E0E1A | bg-surface: #16162A | bg-elevated: #1E1E3A
 *   purple: #7C3AED | purple-light: #A78BFA | purple-deep: #5B21B6
 *   text-primary: #FFF | text-secondary: #D1D5DB | text-muted: #9CA3AF | text-dim: #6B7280
 *   border-subtle: rgba(255,255,255,0.08) | border-light: rgba(255,255,255,0.12)
 *   radius: 12px | radius-lg: 16px | radius-xl: 24px | radius-full: 999px
 *   font-heading: Outfit | font-body: DM Sans | font-mono: JetBrains Mono
 *
 * @package MotionCircles
 * @since S58
 */


/* ═══════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */
@keyframes mcBorderSpin {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes mcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mcBlogFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mcOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(15px, -20px) scale(1.05); }
    66%      { transform: translate(-10px, 10px) scale(0.97); }
}


/* ── Page Background (safety — public-header adds mc-public to body) ── */
body.mc-public {
    background: #0E0E1A;
    color: #D1D5DB;
    margin: 0;
}

/* ── Reset & Base ────────────────────────────────────────────── */
.mc-blog-archive,
.mc-single {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #D1D5DB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}
.mc-blog-archive *,
.mc-single * {
    box-sizing: border-box;
}
.mc-blog-archive a,
.mc-single a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Outfit for headings/titles/buttons (matches shop, courses, dashboard) */
.mc-blog-hero__title,
.mc-blog-filters__heading,
.mc-post-card__title,
.mc-blog-cat-header__title,
.mc-single__title,
.mc-related__heading,
.mc-blog-cta__inner h2,
.mc-blog-empty h3,
.mc-prose h2,
.mc-prose h3,
.mc-prose h4,
.mc-btn,
.mc-pillar-badge,
.mc-pill,
.mc-blog-pagination a,
.mc-blog-pagination span {
    font-family: 'Outfit', sans-serif;
}


/* ── Shared Components ───────────────────────────────────────── */

/* Pillar Badge */
.mc-pillar-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #A78BFA;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    white-space: nowrap;
}
.mc-pillar-badge--sm {
    padding: 3px 10px;
    font-size: 10px;
}

/* Meta Separator */
.mc-meta-sep {
    color: #6B7280;
    margin: 0 6px;
}

/* Button — matches $mc-gradient-btn */
.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.mc-btn--primary {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 40%, #C026D3 70%, #EC4899 100%);
    background-size: 250% auto;
    color: #fff !important;
    box-shadow: 0 4px 24px rgba(124,58,237,0.25);
}
.mc-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}

/* Tag */
.mc-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #9CA3AF;
    transition: all 0.2s ease;
}
.mc-tag:hover {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.25);
    color: #A78BFA;
}


/* ═══════════════════════════════════════════════════════════════
   BLOG LISTING PAGE (home.php)
   ═══════════════════════════════════════════════════════════════ */

/* ── Blog Hero (Featured Post) — with orbs like shop/courses ── */
.mc-blog-hero {
    padding: 40px 24px 0;
    position: relative;
    overflow: hidden;
}
/* Decorative gradient orbs (match shop hero) */
.mc-blog-hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    animation: mcOrbFloat 8s ease-in-out infinite;
    z-index: 0;
}
.mc-blog-hero__orb--1 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    top: -80px;
    left: -60px;
    animation-delay: 0s;
}
.mc-blog-hero__orb--2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(192,38,211,0.14) 0%, transparent 70%);
    top: -40px;
    right: -40px;
    animation-delay: -3s;
}
.mc-blog-hero__orb--3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    bottom: -60px;
    left: 40%;
    animation-delay: -5s;
}
.mc-blog-hero__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    background: #16162A;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.mc-blog-hero__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1E1E3A;
}
.mc-blog-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.mc-blog-hero__inner:hover .mc-blog-hero__image img {
    transform: scale(1.03);
}
.mc-blog-hero__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(147,51,234,0.04));
}
.mc-blog-hero__content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mc-blog-hero__title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}
.mc-blog-hero__title a {
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #fff 40%, #C084FC 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 0.4s ease;
}
.mc-blog-hero__title a:hover {
    background-position: 100% 50%;
}
.mc-blog-hero__excerpt {
    font-size: 17px;
    color: #D1D5DB;
    line-height: 1.7;
    margin: 4px 0 0;
}
.mc-blog-hero__meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #9CA3AF;
    gap: 4px;
}


/* ── Filter Pills ────────────────────────────────────────────── */
.mc-blog-filters {
    padding: 48px 24px 0;
}
.mc-blog-filters__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.mc-blog-filters__heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}
.mc-blog-filters__pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mc-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: #9CA3AF;
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.mc-pill:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}
.mc-pill--active {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
    font-weight: 600;
}


/* ── Post Grid ───────────────────────────────────────────────── */
.mc-blog-grid {
    padding: 40px 24px 0;
}
.mc-blog-grid__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}


/* ── Post Card — courses mccat-card pattern ─────────────────── */
/* Outer card: padded container with animated gradient border */
.mc-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #16162A;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                border-color 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
    animation: mcFadeIn 0.5s ease-out both;
}
/* Animated gradient border pseudo-element */
.mc-post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(45deg, #06B6D4, #3B82F6, #7C3AED, #C026D3, #F472B6, #FB923C, #06B6D4);
    background-size: 400% auto;
    animation: mcBorderSpin 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}
.mc-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,58,237,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.mc-post-card:hover::after {
    opacity: 1;
}
.mc-post-card__link {
    display: flex;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none !important;
    height: 100%;
}

/* Inner media container — breathing room inside the card */
.mc-post-card__image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1E1E3A;
    flex-shrink: 0;
}
.mc-post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.mc-post-card:hover .mc-post-card__image img {
    transform: scale(1.05);
}
.mc-post-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E1E3A;
    color: #6B7280;
}
.mc-post-card__placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}
.mc-post-card__body {
    padding: 14px 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.mc-post-card__meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mc-post-card__meta-top time {
    font-size: 11px;
    color: #6B7280;
}
.mc-post-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.mc-post-card:hover .mc-post-card__title {
    color: #A78BFA;
}
.mc-post-card__excerpt {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mc-post-card__meta-bottom {
    padding-top: 4px;
    margin-top: auto;
}
.mc-read-time {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

/* Staggered fade-in delays */
.mc-post-card:nth-child(1)  { animation-delay: 0.04s; }
.mc-post-card:nth-child(2)  { animation-delay: 0.08s; }
.mc-post-card:nth-child(3)  { animation-delay: 0.12s; }
.mc-post-card:nth-child(4)  { animation-delay: 0.16s; }
.mc-post-card:nth-child(5)  { animation-delay: 0.20s; }
.mc-post-card:nth-child(6)  { animation-delay: 0.24s; }
.mc-post-card:nth-child(7)  { animation-delay: 0.28s; }
.mc-post-card:nth-child(8)  { animation-delay: 0.32s; }
.mc-post-card:nth-child(9)  { animation-delay: 0.36s; }
.mc-post-card:nth-child(10) { animation-delay: 0.40s; }
.mc-post-card:nth-child(11) { animation-delay: 0.44s; }
.mc-post-card:nth-child(12) { animation-delay: 0.48s; }
.mc-post-card:nth-child(13) { animation-delay: 0.50s; }
.mc-post-card:nth-child(14) { animation-delay: 0.52s; }
.mc-post-card:nth-child(15) { animation-delay: 0.54s; }
.mc-post-card:nth-child(16) { animation-delay: 0.56s; }
.mc-post-card:nth-child(17) { animation-delay: 0.58s; }
.mc-post-card:nth-child(18) { animation-delay: 0.60s; }
.mc-post-card:nth-child(19) { animation-delay: 0.62s; }
.mc-post-card:nth-child(20) { animation-delay: 0.64s; }


/* ── Pagination ──────────────────────────────────────────────── */
.mc-blog-pagination {
    max-width: 1320px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: center;
}
.mc-blog-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.mc-blog-pagination li {
    list-style: none;
}
.mc-blog-pagination a,
.mc-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    color: #9CA3AF;
    transition: all 0.2s ease;
}
.mc-blog-pagination a:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}
.mc-blog-pagination .current {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 40%, #C026D3 70%, #EC4899 100%);
    background-size: 200% auto;
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}
.mc-blog-pagination .prev,
.mc-blog-pagination .next {
    font-weight: 700;
    color: #D1D5DB;
    gap: 4px;
}


/* ── Empty State ─────────────────────────────────────────────── */
.mc-blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
}
.mc-blog-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.mc-blog-empty p {
    font-size: 16px;
    color: #9CA3AF;
    margin: 0;
}


/* ── Category Header (category.php) ──────────────────────────── */
.mc-blog-cat-header {
    padding: 48px 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mc-blog-cat-header__inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.mc-blog-cat-header__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 16px 0 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mc-blog-cat-header__desc {
    font-size: 17px;
    color: #D1D5DB;
    line-height: 1.7;
    margin: 12px 0 0;
}


/* ── Blog CTA (shared between listing + single) ─────────────── */
.mc-blog-cta {
    padding: 72px 24px;
    margin-top: 40px;
}
.mc-blog-cta__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(147,51,234,0.05));
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.mc-blog-cta__inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.mc-blog-cta__inner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(192,38,211,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.mc-blog-cta__inner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
}
.mc-blog-cta__inner p {
    font-size: 17px;
    color: #D1D5DB;
    margin: 0 0 28px;
    line-height: 1.7;
    position: relative;
}


/* ═══════════════════════════════════════════════════════════════
   SINGLE POST PAGE — LIGHT THEME (SoM-inspired)
   White background, dark text, 2-column with sticky sidebar CTA
   ═══════════════════════════════════════════════════════════════ */

/* ── Light wrapper for the entire single post ──────────────── */
.mc-single {
    background: #fff;
    color: #1a1b2e;
}

/* ── Post Hero — white bg, centered ─────────────────────────── */
.mc-single__hero {
    padding: 48px 24px 0;
    text-align: center;
    background: #fff;
}
.mc-single__hero-inner {
    max-width: 780px;
    margin: 0 auto;
}
.mc-single__hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mc-single__hero-meta .mc-meta-sep {
    color: #D1D5DB;
}
.mc-single__hero-meta .mc-pillar-badge {
    color: #7C3AED;
    background: rgba(124,58,237,0.08);
    border-color: rgba(124,58,237,0.2);
}
.mc-single__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1b2e !important;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
    /* No gradient text in light mode — solid dark */
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1b2e !important;
    background-clip: unset !important;
}
.mc-single__subtitle {
    font-size: 17px;
    color: #4B5563;
    line-height: 1.7;
    margin: 20px auto 0;
    max-width: 640px;
}


/* ── Featured Image ──────────────────────────────────────────── */
.mc-single__featured-image {
    max-width: 960px;
    margin: 40px auto 0;
    padding: 0 24px;
}
.mc-single__featured-image img {
    width: 100%;
    border-radius: 16px;
    display: block;
}


/* ── Two-Column Layout: Content + Sidebar ────────────────────── */
.mc-single__body-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 48px 24px 0;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ── Article Content (left column) ───────────────────────────── */
.mc-single__content {
    flex: 1;
    min-width: 0;
    max-width: 680px;
}

/* ── Sidebar (right column, sticky) ──────────────────────────── */
.mc-single__sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}
.mc-sidebar-cta {
    background: #0E0E1A;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(124,58,237,0.2);
}
.mc-sidebar-cta__badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FBBF24;
    margin-bottom: 12px;
}
.mc-sidebar-cta__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}
.mc-sidebar-cta__text {
    font-size: 13px;
    color: #D1D5DB;
    line-height: 1.6;
    margin: 0 0 20px;
}
.mc-sidebar-cta .mc-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 10px;
}
/* Second sidebar card (optional) */
.mc-sidebar-topics {
    margin-top: 20px;
    background: #F9FAFB;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E5E7EB;
}
.mc-sidebar-topics__title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1b2e;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mc-sidebar-topics__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mc-sidebar-topics__list a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #4B5563;
    background: #fff;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}
.mc-sidebar-topics__list a:hover {
    color: #7C3AED;
    border-color: rgba(124,58,237,0.3);
    background: rgba(124,58,237,0.04);
}


/* ── Prose (article typography) — LIGHT THEME ────────────────── */
/* !important overrides inline styles from AI blog generator */
.mc-prose {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #1a1b2e !important;
}
.mc-prose h1,
.mc-prose h2 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1a1b2e !important;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.3 !important;
}
.mc-prose h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1a1b2e !important;
    margin: 40px 0 12px;
    line-height: 1.35 !important;
}
.mc-prose h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin: 32px 0 10px;
}
.mc-prose p {
    margin: 0 0 20px;
    color: #374151 !important;
    font-size: 17px !important;
}
.mc-prose a {
    color: #7C3AED !important;
    text-decoration: underline;
    text-decoration-color: rgba(124,58,237,0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
.mc-prose a:hover {
    color: #5B21B6 !important;
    text-decoration-color: #5B21B6;
}
.mc-prose strong {
    color: #1a1b2e !important;
    font-weight: 700;
}
.mc-prose em {
    color: #374151 !important;
}
.mc-prose span {
    color: inherit !important;
}
.mc-prose ul,
.mc-prose ol {
    padding-left: 24px;
    margin: 0 0 20px;
    color: #374151 !important;
}
.mc-prose li {
    margin-bottom: 8px;
    color: #374151 !important;
}
.mc-prose li::marker {
    color: #7C3AED;
}
.mc-prose blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 3px solid #7C3AED;
    background: rgba(124,58,237,0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4B5563 !important;
}
.mc-prose blockquote p:last-child {
    margin-bottom: 0;
}
.mc-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px 0;
    display: block;
}
.mc-prose pre {
    margin: 28px 0;
    padding: 20px 24px;
    background: #1a1b2e;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #D1D5DB;
}
.mc-prose code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
    background: rgba(124,58,237,0.06);
    padding: 2px 8px;
    border-radius: 6px;
    color: #7C3AED !important;
}
.mc-prose pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #D1D5DB !important;
}
.mc-prose hr {
    border: none;
    height: 1px;
    background: #E5E7EB;
    margin: 40px 0;
}
.mc-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
}
.mc-prose th,
.mc-prose td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}
.mc-prose th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #1a1b2e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mc-prose figure {
    margin: 28px 0;
}
.mc-prose figcaption {
    text-align: center;
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 10px;
}


/* ── Tags — light theme ──────────────────────────────────────── */
.mc-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}
.mc-single__tags .mc-tag {
    background: #F3F4F6;
    border-color: #E5E7EB;
    color: #4B5563;
}
.mc-single__tags .mc-tag:hover {
    background: rgba(124,58,237,0.06);
    border-color: rgba(124,58,237,0.25);
    color: #7C3AED;
}


/* ── Author / Share Bar — light theme ────────────────────────── */
.mc-single__share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    flex-wrap: wrap;
    gap: 16px;
}
.mc-single__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mc-single__author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(124,58,237,0.2);
}
.mc-single__author strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1b2e;
}
.mc-single__author span {
    display: block;
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 2px;
}
.mc-single__share-links {
    display: flex;
    gap: 8px;
}
.mc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}
.mc-share-btn:hover {
    background: rgba(124,58,237,0.06);
    border-color: rgba(124,58,237,0.25);
    color: #7C3AED;
    box-shadow: 0 4px 16px rgba(124,58,237,0.1);
    transform: translateY(-1px);
}


/* ── Related Posts — back to dark bg (matches listing page) ─── */
.mc-related {
    padding: 64px 24px 0;
    background: #0E0E1A;
}
.mc-related__inner {
    max-width: 1320px;
    margin: 0 auto;
}
.mc-related__heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 28px;
}
.mc-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── CTA in single — sits in dark zone ───────────────────────── */
.mc-single .mc-blog-cta {
    background: #0E0E1A;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .mc-blog-grid__inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .mc-blog-hero__inner {
        grid-template-columns: 1fr;
    }
    .mc-blog-hero__content {
        padding: 24px 32px 32px;
    }
    .mc-blog-hero__title {
        font-size: 1.6rem;
    }
    .mc-blog-grid__inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .mc-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mc-single__title {
        font-size: 2.2rem;
    }
    /* Sidebar collapses below content */
    .mc-single__body-wrap {
        flex-direction: column;
    }
    .mc-single__sidebar {
        width: 100%;
        position: static;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .mc-blog-filters__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .mc-blog-filters__pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .mc-single__title {
        font-size: 1.8rem;
    }
    .mc-single__hero {
        padding-top: 32px;
    }
    .mc-prose {
        font-size: 16px !important;
    }
    .mc-prose h2 {
        font-size: 1.35rem !important;
    }
    .mc-prose h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 640px) {
    .mc-blog-grid__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mc-related__grid {
        grid-template-columns: 1fr;
    }
    .mc-blog-hero__content {
        padding: 20px;
    }
    .mc-blog-hero__title {
        font-size: 1.35rem;
    }
    .mc-blog-cta__inner {
        padding: 40px 24px;
    }
    .mc-blog-cta__inner h2 {
        font-size: 1.3rem;
    }
    .mc-single__title {
        font-size: 1.5rem;
    }
    .mc-single__subtitle {
        font-size: 16px;
    }
    .mc-single__featured-image {
        margin-top: 28px;
    }
    .mc-single__content {
        padding-top: 32px;
    }
    .mc-single__share {
        flex-direction: column;
        align-items: flex-start;
    }
    .mc-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    /* Hide orbs on mobile */
    .mc-blog-hero__orb--1,
    .mc-blog-hero__orb--2,
    .mc-blog-hero__orb--3 {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS — entrance
   ═══════════════════════════════════════════════════════════════ */
.mc-blog-hero {
    opacity: 0;
    animation: mcBlogFadeIn 0.6s ease-out 0.1s forwards;
}
.mc-single__hero {
    opacity: 0;
    animation: mcBlogFadeIn 0.6s ease-out 0.1s forwards;
}
.mc-single__featured-image {
    opacity: 0;
    animation: mcBlogFadeIn 0.6s ease-out 0.25s forwards;
}
.mc-single__body-wrap {
    opacity: 0;
    animation: mcBlogFadeIn 0.6s ease-out 0.35s forwards;
}
