/* ================================================
   Default Theme — Apple Premium + Rich Visual Design
   ================================================
   Hero gradients, floating orbs, glass cards,
   animated borders, scroll animations, micro-interactions
   ================================================ */

/* === Custom Properties === */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', ui-monospace, monospace;

    --bg-primary: #fafafa;
    --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --bg-hero-dark: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);

    --surface-primary: #ffffff;
    --surface-secondary: #f5f5f7;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --surface-glass-strong: rgba(255, 255, 255, 0.88);

    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --text-on-gradient: #ffffff;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --accent-4: #06b6d4;

    --gradient-brand: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --gradient-brand-text: linear-gradient(135deg, #6366f1 0%, #a855f7 40%, #ec4899 70%, #f59e0b 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(168,85,247,0.3), rgba(236,72,153,0.5));

    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);
    --shadow-glow: 0 8px 32px rgba(99,102,241,0.25);
    --shadow-glow-hover: 0 16px 48px rgba(99,102,241,0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --duration: 0.35s;
    --duration-slow: 0.6s;

    --content-width: 1100px;
    --reading-width: 740px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: all var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Ambient Background === */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: var(--accent);
}

.orb-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    animation-delay: -7s;
    animation-duration: 25s;
}

.orb-3 {
    bottom: -5%;
    left: 30%;
    width: 450px;
    height: 450px;
    background: var(--accent-3);
    animation-delay: -14s;
    animation-duration: 18s;
}

.noise-overlay {
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 40px) scale(0.95); }
    100% { transform: translate(30px, 20px) scale(1.05); }
}

/* === Scroll Animations === */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.posts-grid .post-card.animate-ready:nth-child(1) { transition-delay: 0s; }
.posts-grid .post-card.animate-ready:nth-child(2) { transition-delay: 0.08s; }
.posts-grid .post-card.animate-ready:nth-child(3) { transition-delay: 0.16s; }
.posts-grid .post-card.animate-ready:nth-child(4) { transition-delay: 0.24s; }
.posts-grid .post-card.animate-ready:nth-child(5) { transition-delay: 0.32s; }
.posts-grid .post-card.animate-ready:nth-child(6) { transition-delay: 0.40s; }

/* === Container === */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ================================================
   HEADER — Frosted glass
   ================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 52px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

/* Logo */
.logo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo a:hover { color: var(--text-primary); opacity: 0.8; }

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.logo-text {
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav li a {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.main-nav li a:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.04);
}

/* Search */
.search-box { position: relative; }
.search-box form { display: flex; align-items: center; position: relative; }

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 1;
}

.search-box input {
    width: 160px;
    height: 34px;
    padding: 0 12px 0 32px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: rgba(0,0,0,0.03);
    outline: none;
    transition: all var(--duration) var(--ease);
}

.search-box input:focus {
    width: 220px;
    border-color: var(--accent);
    background: var(--surface-primary);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.search-box input::placeholder { color: var(--text-tertiary); }
.search-box button { position: absolute; opacity: 0; width: 0; height: 0; border: none; }

/* ================================================
   HERO SECTION — Stunning gradient banner
   ================================================ */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-light);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Hero Decoration — Floating Cards */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-card-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
}

.hero-float-card {
    position: absolute;
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.hero-float-card.card-1 {
    width: 200px;
    height: 140px;
    top: 10%;
    right: -60%;
    transform: rotate(6deg);
    animation: floatCard1 8s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.06));
}

.hero-float-card.card-2 {
    width: 160px;
    height: 110px;
    bottom: 20%;
    left: -55%;
    transform: rotate(-4deg);
    animation: floatCard2 10s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(249,115,22,0.06));
}

.hero-float-card.card-3 {
    width: 120px;
    height: 90px;
    top: 5%;
    left: -40%;
    transform: rotate(-8deg);
    animation: floatCard3 12s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.06));
}

@keyframes floatCard1 {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-15px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(10px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-12px); }
}

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 32px 0;
    margin-bottom: 48px;
    background: var(--surface-glass-strong);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-medium);
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--duration) var(--ease);
}

.section-link:hover { gap: 8px; }

/* ================================================
   POSTS GRID & CARDS — Glass cards with shimmer
   ================================================ */
.posts-section {
    padding-bottom: 64px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* Card */
.post-card {
    position: relative;
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--duration-slow) var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    z-index: 1;
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

/* Card Shimmer */
.card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
    background-size: 250% 100%;
    background-position: 100% 0;
    transition: background-position 0.8s var(--ease);
    z-index: 2;
    pointer-events: none;
}

.post-card:hover .card-shimmer {
    background-position: -100% 0;
}

/* Thumbnail */
.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--surface-secondary);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* Placeholder Thumbnail — for posts without image */
.placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
    height: 160px;
}

.placeholder-pattern {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    box-shadow: var(--shadow-glow);
    transition: transform var(--duration) var(--ease-spring);
}

.post-card:hover .placeholder-pattern {
    transform: scale(1.1) rotate(-3deg);
}

/* Card Body */
.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-date svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.meta-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Card Title */
.card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.card-title a:hover {
    color: var(--accent);
}

/* Card Excerpt */
.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Card Footer */
.card-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: all var(--duration) var(--ease);
    border: 1px solid transparent;
}

.read-more-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateX(2px);
}

.read-more-btn svg {
    transition: transform var(--duration) var(--ease);
}

.read-more-btn:hover svg {
    transform: translateX(3px);
}

/* ================================================
   ARCHIVE HERO
   ================================================ */
.archive-hero {
    position: relative;
    padding: 64px 0;
    text-align: center;
    margin-bottom: 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.archive-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.05), rgba(236,72,153,0.04));
    border: 1px solid var(--border-light);
    border-radius: inherit;
}

.archive-hero-content {
    position: relative;
    z-index: 1;
}

/* ================================================
   SINGLE POST — Immersive reading
   ================================================ */
.single-post {
    max-width: var(--reading-width);
    margin: 0 auto;
}

/* Article Header */
.article-header {
    position: relative;
    padding: 72px 0 48px;
    margin-bottom: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

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

.article-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(168,85,247,0.05), rgba(236,72,153,0.04));
    border: 1px solid var(--border-light);
    border-radius: inherit;
}

.article-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
}

.article-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 28px;
}

/* Meta Bar */
.article-meta-bar {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 16px 32px;
    background: var(--surface-glass-strong);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item svg { color: var(--text-tertiary); flex-shrink: 0; }

.meta-detail {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.meta-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.meta-role {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.meta-divider {
    width: 1px;
    height: 32px;
    background: var(--border-medium);
}

.author-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* Lead / Excerpt Box */
.article-lead {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.03));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.lead-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1.4;
}

.article-lead p {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* Article Body */
.article-body { margin-bottom: 48px; }

.post-content-full {
    font-size: 17px;
    line-height: 1.72;
    color: var(--text-primary);
}

.post-content-full p { margin-bottom: 1.5em; }

.post-content-full h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 2.2em 0 0.7em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
}

.post-content-full h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 1.8em 0 0.6em;
}

.post-content-full img {
    border-radius: var(--radius-md);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.post-content-full blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-size: 17px;
    font-style: italic;
}

.post-content-full pre {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: var(--radius-md);
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    box-shadow: var(--shadow-md);
}

.post-content-full code {
    font-family: var(--font-mono);
    background: var(--surface-secondary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88em;
    color: var(--accent);
}

.post-content-full pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.post-content-full ul, .post-content-full ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.post-content-full li {
    margin-bottom: 0.5em;
    list-style: disc;
}

.post-content-full ol li { list-style: decimal; }

.post-content-full a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(99,102,241,0.3);
}

.post-content-full a:hover {
    text-decoration-color: var(--accent);
}

.post-content-full table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.post-content-full th,
.post-content-full td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.post-content-full th {
    background: var(--surface-secondary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.post-content-full hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: 48px 0;
}

/* Bottom Actions */
.article-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    margin-bottom: 64px;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--duration) var(--ease);
}

.share-btn:hover {
    background: var(--accent-light);
    border-color: rgba(99,102,241,0.3);
    color: var(--accent);
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
}

.back-home-btn:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow-hover);
    transform: translateX(-3px);
    color: #fff;
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 4px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.page-num:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.page-num.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(99,102,241,0.2);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.page-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* ================================================
   ERROR PAGE
   ================================================ */
.error-page {
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.error-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.error-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-brand);
    opacity: 0.06;
    filter: blur(80px);
    animation: orbFloat 10s ease-in-out infinite alternate;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.error-message {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 17px;
    color: var(--text-secondary);
}

/* ================================================
   SCROLL TO TOP
   ================================================ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration) var(--ease);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow-hover);
    transform: translateY(-2px);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    position: relative;
    background: #fafafa;
    border-top: 1px solid var(--border-light);
    padding: 48px 0 32px;
    text-align: center;
    overflow: hidden;
    margin-top: auto;
}

.footer-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: var(--gradient-brand);
    opacity: 0.04;
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-brand .logo-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 6px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--surface-secondary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.footer-badge .badge-dot {
    width: 5px;
    height: 5px;
    background: #22c55e;
}

/* ================================================
   COMMENTS (inherit existing class names)
   ================================================ */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.comments-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment:last-child { border-bottom: none; }

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-body { flex: 1; min-width: 0; }

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author { font-weight: 600; font-size: 15px; }
.comment-date { color: var(--text-tertiary); font-size: 13px; }
.comment-content { color: var(--text-secondary); line-height: 1.55; font-size: 15px; }

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    margin-top: 8px;
}

.comment-form-container {
    background: var(--surface-secondary);
    padding: 28px;
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--surface-primary);
    outline: none;
    transition: all var(--duration) var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.comment-form textarea { resize: vertical; min-height: 120px; }

.comment-form .btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--duration) var(--ease);
}

.comment-form .btn-primary,
.btn { background: var(--accent); color: #fff; }

.comment-form .btn-primary:hover,
.btn:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 834px) {
    .hero-title { font-size: 40px; }
    .article-title { font-size: 34px; }
    .hero-float-card { display: none; }
    .stats-bar { gap: 24px; padding: 24px; }
    .stat-number { font-size: 24px; }
    .article-meta-bar { flex-wrap: wrap; gap: 16px; padding: 16px 24px; }
    .meta-divider { display: none; }
}

@media (max-width: 600px) {
    .site-header { height: auto; padding: 8px 0; }
    .header-inner { flex-direction: column; gap: 8px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    .search-box input { width: 100%; }
    .posts-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 48px 0 40px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .article-title { font-size: 28px; }
    .stats-bar { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .article-meta-bar { border-radius: var(--radius-md); }
    .article-bottom { flex-direction: column; gap: 16px; }
    .comment-form .form-row { grid-template-columns: 1fr; }
    .archive-hero { padding: 40px 0; }
}
