/* === Variables === */
:root {
    --color-bg: #000204;
    --color-surface: #080c12;
    --color-border: #12181f;
    --color-text: #ffffff;
    --color-text-muted: #8a99b3;
    --color-accent: #00d9ff;
    --color-accent-dim: #00a8cc;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: radial-gradient(ellipse at top, #0a1420 0%, #000204 70%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

/* === Layout === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Header & Navigation === */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(0, 2, 4, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 217, 255, 0.25);
    z-index: 100;
    transition: all 0.3s var(--ease-smooth);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 153, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(0, 217, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.site-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s var(--ease-smooth);
}

.site-logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Navigation - FORCE OVERRIDE with !important */
.nav {
    display: flex !important;
    gap: 2.5rem !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-item {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: 0.03em !important;
    transition: all 0.3s var(--ease-smooth) !important;
    position: relative !important;
    padding: 1.125rem 2.25rem !important;
    border-radius: 32px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 217, 255, 0.04)) !important;
    border: 1.5px solid rgba(0, 217, 255, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.nav-item:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.18), rgba(139, 92, 246, 0.12)) !important;
    border-color: rgba(0, 217, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.25), 0 0 15px rgba(0, 217, 255, 0.15) !important;
}

/* Active/current page - GLOWING */
.nav-item.nav-current,
.nav-current {
    color: #ffffff !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.35), rgba(139, 92, 246, 0.25)) !important;
    border-color: rgba(0, 217, 255, 0.8) !important;
    box-shadow: 
        inset 0 1px 6px rgba(0, 217, 255, 0.4),
        0 0 30px rgba(0, 217, 255, 0.5),
        0 0 15px rgba(0, 217, 255, 0.3) !important;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.8) !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s var(--ease-smooth);
    border-radius: 2px;
}

.nav-toggle:hover span {
    background: var(--color-accent);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(300px, 80vw);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(40px);
        border-left: 1px solid rgba(0, 217, 255, 0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s var(--ease-smooth);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-item {
        font-size: 1.125rem;
        width: 100%;
    }
}

/* === Home Header === */
.home-header {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 217, 255, 0.03) 0%, transparent 100%);
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.site-title {
    font-family: 'Poppins', var(--font-sans);
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.02em;
}

.animated-gradient {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #00d9ff 20%,
        #0099ff 40%,
        #00d9ff 60%,
        #ffffff 80%,
        #00d9ff 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

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

.site-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Reading Progress Bar === */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #8b5cf6);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--color-accent);
}

/* === Section Dividers === */
.section-divider {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider-line {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 217, 255, 0.3) 20%,
        rgba(0, 217, 255, 0.6) 50%,
        rgba(0, 217, 255, 0.3) 80%,
        transparent 100%
    );
}

.divider-line::before,
.divider-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--color-accent);
}

.divider-line::before {
    left: 20%;
}

.divider-line::after {
    right: 20%;
}

.divider-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 100px;
    background: radial-gradient(
        ellipse,
        rgba(0, 217, 255, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* === Featured Posts === */
.featured-posts-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.posts-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s var(--ease-smooth);
}

.featured-card {
    min-width: calc(33.333% - 16px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.featured-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 217, 255, 0.2);
}

.featured-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-border);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    padding: 1.5rem;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.featured-title a {
    transition: color 0.3s var(--ease-smooth);
}

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

.featured-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* === Post Feed === */
.post-feed {
    padding: 4rem 0;
}

.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s var(--ease-smooth);
}

.post-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.15);
}

.post-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-border);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

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

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.post-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px;
    color: var(--color-accent);
    font-size: 0.8125rem;
}

.reading-time::before {
    content: '📖 ';
}

.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-title a {
    transition: color 0.3s var(--ease-smooth);
}

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

.post-excerpt {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9375rem;
    transition: gap 0.3s var(--ease-smooth);
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more svg {
    transition: transform 0.3s var(--ease-smooth);
}

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

/* === Individual Post === */
.post-header {
    padding: 6rem 0 3rem;
}

.post-meta-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.post-title-full {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.post-excerpt-full {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.post-feature-image {
    margin: 2rem 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.post-feature-image img {
    margin: 0 auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-body {
    padding: 2rem 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-body h2 {
    font-size: 2rem;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.post-body a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 217, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s var(--ease-smooth);
}

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

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.25rem 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.post-body pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    border: none;
    padding: 0;
}

.post-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.post-body img {
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--color-border);
}

/* Ghost Image Card Widths */
.kg-width-wide {
    width: 100%;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* === Post Footer === */
.post-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
}

.author-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-bio {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.post-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: all 0.3s var(--ease-smooth);
}

.tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* === Scroll Reveal === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-smooth);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .featured-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .home-header {
        padding: 6rem 0 4rem;
    }
    
    .featured-posts-section {
        padding: 3rem 0;
    }
    
    .posts-carousel {
        padding: 0 2.5rem;
    }
    
    .featured-card {
        min-width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-header {
        padding: 4rem 0 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
}

/* === Page Loader === */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #020408 0%, #0d1b2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    border: 4px solid rgba(0, 217, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
/* Debug: Force nav styles with maximum specificity */
body .site-header .nav,
body .header-container .nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .site-header .nav .nav-item,
body .header-container .nav .nav-item,
body .site-header .nav a,
body .header-container .nav a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: 0.03em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 217, 255, 0.04)) !important;
    border: 2px solid rgba(0, 217, 255, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    text-decoration: none !important;
    text-underline-offset: unset !important;
    display: inline-block !important;
}

body .site-header .nav .nav-item:hover,
body .header-container .nav .nav-item:hover,
body .site-header .nav a:hover,
body .header-container .nav a:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.18), rgba(139, 92, 246, 0.12)) !important;
    border-color: rgba(0, 217, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 0 0 0 rgba(0, 217, 255, 0),
        0 0 20px -5px rgba(0, 217, 255, 0.4),
        0 0 40px -10px rgba(0, 217, 255, 0.2) !important;
    text-decoration: none !important;
}

body .site-header .nav .nav-current,
body .header-container .nav .nav-current,
body .site-header .nav .nav-item.nav-current,
body .header-container .nav .nav-item.nav-current {
    color: #ffffff !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.35), rgba(139, 92, 246, 0.25)) !important;
    border-color: rgba(0, 217, 255, 0.8) !important;
    box-shadow: 
        inset 0 0 20px rgba(0, 217, 255, 0.3),
        0 0 25px -5px rgba(0, 217, 255, 0.5),
        0 0 50px -10px rgba(0, 217, 255, 0.3) !important;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.8) !important;
    text-decoration: none !important;
}

/* MOBILE NAV FIX */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1.5rem !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    body .site-header .nav,
    body .header-container .nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: min(300px, 80vw) !important;
        background: rgba(0, 2, 4, 0.98) !important;
        backdrop-filter: blur(40px) !important;
        border-left: 1px solid rgba(0, 217, 255, 0.2) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 6rem 2rem 2rem !important;
        gap: 1.5rem !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5) !important;
        z-index: 99 !important;
    }
    
    body .site-header .nav.active,
    body .header-container .nav.active {
        right: 0 !important;
    }
    
    body .site-header .nav .nav-item,
    body .header-container .nav .nav-item,
    body .site-header .nav a,
    body .header-container .nav a {
        font-size: 1.125rem !important;
        width: 100% !important;
        text-align: left !important;
        padding: 1rem 1.5rem !important;
    }
}

/* === Blog Page - Minecraft Patch Notes Style === */
.blog-page {
    padding-top: 2rem;
}

.page-header {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 3rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-excerpt {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.patch-notes-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.patch-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid var(--color-border);
    text-decoration: none;
    display: block;
}

.patch-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.2);
}

.patch-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.patch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-smooth);
}

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

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface), var(--color-bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.patch-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    transition: all 0.3s var(--ease-smooth);
}

.patch-card:hover .patch-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0.3) 100%);
}

.patch-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.patch-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.patch-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    color: var(--color-accent);
    font-weight: 600;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-smooth);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .patch-notes-grid .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* === Footer === */
.site-footer {
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 217, 255, 0.02));
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    min-width: 0;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s var(--ease-smooth);
    display: inline-block;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    margin: 0;
}

.powered-by {
    margin: 0;
}

.powered-by a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.powered-by a:hover {
    opacity: 0.8;
}

/* === Author Header (below featured image) === */
.post-author-header {
    margin: 1rem 0 2rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.author-header-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 217, 255, 0.2);
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 217, 255, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.author-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.author-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    opacity: 0.7;
}

.author-header-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.author-header-name:hover {
    color: var(--color-accent);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* === Post Body Spacing === */
.post-body {
    padding-top: 0.5rem;
}
