/*
Theme Name: MWD Blog Theme
Theme URI: https://myanmarwebdesign.com
Author: Myanmar Web Design
Author URI: https://myanmarwebdesign.com
Description: Custom WordPress theme matching Myanmar Web Design main site
Version: 1.0.0
Text Domain: mwd-theme
*/

/* ================================
   CSS Variables
================================ */
:root {
    --ninja-black: #121212;
    --ninja-paper: #F2F0E9;
    --ninja-blue: #1B3AB0;
    --ninja-accent: #60A5FA;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --shadow-brutal: 4px 4px 0 var(--ninja-black);
    --shadow-brutal-sm: 2px 2px 0 var(--ninja-black);
    --content-width: 1200px;
    --post-width: 800px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--ninja-paper);
    color: var(--ninja-black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================
   Typography
================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--ninja-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--ninja-accent);
}

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

/* ================================
   Layout Structure
================================ */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--post-width);
}

/* ================================
   Header / Navigation
================================ */
.site-header {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10000;
}

.nav-bar {
    max-width: var(--content-width);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--ninja-blue);
    background: rgba(27, 58, 176, 0.08);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--ninja-blue);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--ninja-black);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-brutal-sm);
    transition: all 0.2s;
}

.nav-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ninja-black);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--ninja-black);
}

/* Mobile Menu Overlay - Matching Main Site */
.mobile-overlay {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(242, 240, 233, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-top: 7rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Only show on mobile when .is-open class is added */
@media (max-width: 768px) {
    .mobile-overlay.is-open {
        display: block !important;
        visibility: visible;
        opacity: 1;
    }
}

.mobile-card {
    max-width: 24rem;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal);
    padding: 1.5rem;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-links a {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--ninja-black);
    transition: background 0.2s;
}

.mobile-links a:hover,
.mobile-links a.active {
    background: rgba(27, 58, 176, 0.1);
    color: var(--ninja-blue);
}

.mobile-cta-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--ninja-blue);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--ninja-black);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-brutal-sm);
    transition: all 0.2s;
}

.mobile-cta-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ninja-black);
}

/* Hide overlay on desktop */
@media (min-width: 769px) {
    .mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .nav-cta-wrap {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-header {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
}



/* ================================
   Footer - Matching Main Site
================================ */
.site-footer {
    position: relative;
    background: var(--ninja-black);
    color: var(--white);
    overflow: hidden;
}

.footer-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

.footer-glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(64px);
}

.footer-glow--right {
    top: 0;
    right: 0;
    background: rgba(27, 58, 176, 0.1);
}

.footer-glow--left {
    bottom: 0;
    left: 0;
    background: rgba(147, 51, 234, 0.05);
}

.footer-main {
    position: relative;
    z-index: 10;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

/* Brand Column */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gray-700);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--ninja-blue);
    border-color: var(--ninja-blue);
    color: var(--white);
}

/* Footer Columns */
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--gray-400);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--ninja-blue);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-col a:hover::before {
    opacity: 1;
}

/* Contact Column */
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact a::before {
    display: none !important;
    content: none !important;
}

.contact-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-400);
}

.contact-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.footer-contact span,
.footer-contact a {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.4;
    display: inline-block;
}

.footer-contact a:hover {
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    margin: 0;
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ================================
   Buttons
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--ninja-black);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--ninja-blue);
    color: var(--white);
    box-shadow: var(--shadow-brutal-sm);
}

.btn--primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ninja-black);
    color: var(--white);
}

.btn--outline {
    background: var(--white);
    color: var(--ninja-black);
    box-shadow: var(--shadow-brutal-sm);
}

.btn--outline:hover {
    background: var(--ninja-paper);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ninja-black);
}

/* ================================
   Cards
================================ */
.card {
    background: var(--white);
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--ninja-black);
}

.card__image {
    width: 100%;
    height: 200px;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.card__image img,
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card__body {
    padding: 1.5rem;
}

.card__meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

.card__excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ================================
   Blog Grid (Archive)
================================ */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header p {
    max-width: 600px;
    margin: 0 auto;
}

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

/* ================================
   Single Post - PREMIUM REDESIGN
================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(27, 58, 176, 0.1);
    z-index: 10001;
}

.reading-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ninja-blue), #60A5FA);
    width: 0%;
    transition: width 0.1s ease;
}

/* Post Hero Header */
.post-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    overflow: hidden;
}

.post-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.post-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.post-hero__gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ninja-blue), #4F68D4, #8B5CF6);
}

.post-hero--no-image .post-hero__gradient {
    opacity: 1;
}

.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(18, 18, 18, 0.3),
            rgba(18, 18, 18, 0.7));
}

.post-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 1.5rem;
}

.post-hero .breadcrumbs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
    margin-bottom: 2rem;
    max-width: 800px;
}

.post-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.post-hero .breadcrumbs a:hover {
    color: white;
}

.post-hero .breadcrumbs__sep {
    color: rgba(255, 255, 255, 0.5);
}

.post-hero__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.post__category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(27, 58, 176, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.post__category-badge:hover {
    background: rgba(27, 58, 176, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(27, 58, 176, 0.3);
}

.post__category-icon {
    font-size: 1rem;
}

.post-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-meta-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Post Layout with Sidebar */
.post-content-wrapper {
    padding: 4rem 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1280px) {
    .post-layout {
        grid-template-columns: 1fr 280px;
        gap: 4rem;
    }
}

.post-main {
    min-width: 0;
}

/* Enhanced Content Typography (Prose) */
.prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.prose h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--ninja-black);
    position: relative;
    padding-bottom: 0.75rem;
}

.prose h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ninja-blue), transparent);
    border-radius: 2px;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ninja-black);
}

.prose p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.prose a {
    color: var(--ninja-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.prose a:hover {
    color: var(--ninja-accent);
    text-decoration-thickness: 3px;
}

.prose img {
    width: 100%;
    border-radius: 1rem;
    border: 2px solid var(--ninja-black);
    box-shadow: var(--shadow-brutal);
    margin: 2rem 0;
}

.prose blockquote {
    border-left: 4px solid var(--ninja-blue);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(27, 58, 176, 0.05);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: var(--gray-700);
    font-size: 1.125rem;
}

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

.prose li {
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.prose code {
    background: rgba(27, 58, 176, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    color: var(--ninja-blue);
}

.prose pre {
    background: var(--ninja-black);
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 2px solid var(--ninja-black);
    box-shadow: var(--shadow-brutal-sm);
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

/* Tags Section */
.post__tags-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.post__tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.post__tags-icon {
    width: 16px;
    height: 16px;
}

.post__tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.post__tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(27, 58, 176, 0.05), rgba(96, 165, 250, 0.05));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(27, 58, 176, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ninja-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.post__tag:hover {
    background: var(--ninja-blue);
    color: white;
    border-color: var(--ninja-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 58, 176, 0.3);
}

/* Premium Share Box */
.share-box-premium {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid var(--ninja-black);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-brutal);
    text-align: center;
}

.share-box-premium__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--ninja-black);
}

.share-box-premium__subtitle {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.share-box-premium__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    color: var(--ninja-black);
}

.share-btn__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.share-btn__label {
    font-size: 0.875rem;
    font-weight: 600;
}

.share-btn--twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(29, 161, 242, 0.3);
}

.share-btn--facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.3);
}

.share-btn--linkedin:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(10, 102, 194, 0.3);
}

.share-btn--copy:hover {
    background: var(--ninja-blue);
    color: white;
    border-color: var(--ninja-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(27, 58, 176, 0.3);
}

.share-btn:hover .share-btn__icon {
    transform: scale(1.1);
}

/* Premium Author Box */
.author-box-premium {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--ninja-blue), #4F68D4);
    border: 2px solid var(--ninja-black);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-brutal);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.author-box-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.author-box-premium__avatar {
    position: relative;
    z-index: 10;
}

.author-box-premium__avatar img {
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.author-box-premium__content {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 10;
}

.author-box-premium__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.author-box-premium__name {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.author-box-premium__bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Premium Post Navigation */
.post-nav-premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .post-nav-premium {
        grid-template-columns: 1fr 1fr;
    }
}

.post-nav-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal-sm);
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.post-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 58, 176, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.post-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.post-nav-card--prev {
    justify-content: flex-start;
}

.post-nav-card--next {
    justify-content: flex-end;
}

.post-nav-card__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(27, 58, 176, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.post-nav-card__icon svg {
    width: 20px;
    height: 20px;
    color: var(--ninja-blue);
}

.post-nav-card:hover .post-nav-card__icon {
    background: var(--ninja-blue);
}

.post-nav-card:hover .post-nav-card__icon svg {
    color: white;
}

.post-nav-card__content {
    flex: 1;
    position: relative;
}

.post-nav-card--next .post-nav-card__content {
    text-align: right;
}

.post-nav-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.post-nav-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ninja-black);
    line-height: 1.4;
}

/* Table of Contents Sidebar */
.post-sidebar {
    display: none;
}

@media (min-width: 1400px) {
    .post-sidebar {
        display: block;
    }
}

.post-sidebar__sticky {
    position: sticky;
    top: 100px;
}

.toc-widget {
    padding: 2rem;
    background: white;
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal-sm);
}

.toc-widget__title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--ninja-black);
}

.toc-list {
    list-style: none;
}

.toc-list__item {
    margin-bottom: 0.75rem;
}

.toc-list__item--sub {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.toc-list__link {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.toc-list__link:hover {
    color: var(--ninja-blue);
    background: rgba(27, 58, 176, 0.05);
    padding-left: 1rem;
}

.toc-list__item--sub .toc-list__link {
    font-size: 0.8rem;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--gray-200);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .post-hero {
        min-height: 50vh;
    }

    .post-hero__title {
        font-size: 2rem;
    }

    .post-hero__meta {
        gap: 1rem;
    }

    .post-meta-item {
        font-size: 0.75rem;
    }

    .prose {
        font-size: 1rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }

    .share-box-premium {
        padding: 2rem 1.5rem;
    }

    .share-box-premium__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-box-premium {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .post-nav-premium {
        grid-template-columns: 1fr;
    }

    .post-nav-card {
        padding: 1.5rem;
    }
}

/* OLD STYLES KEPT FOR BACKWARDS COMPATIBILITY */
.post {
    max-width: var(--post-width);
    margin: 0 auto;
}

.post__header {
    margin-bottom: 2rem;
}

.post__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--ninja-blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-decoration: none;
}

.post__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--gray-500);
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.post__featured-image {
    width: 100%;
    border-radius: 1rem;
    border: 2px solid var(--ninja-black);
    box-shadow: var(--shadow-brutal);
    margin: 2rem 0;
}

.post__content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.post__content h2 {
    margin-top: 2.5rem;
}

.post__content h3 {
    margin-top: 2rem;
}

.post__content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post__content blockquote {
    border-left: 4px solid var(--ninja-blue);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.post__content pre {
    background: var(--ninja-black);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post__content code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.post__content pre code {
    background: none;
    padding: 0;
}

/* Post Tags - Old */
.post__tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Old Share Box */
.share-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-box__links {
    display: flex;
    gap: 0.75rem;
}

.share-box__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    border: 2px solid var(--ninja-black);
    color: var(--white);
}

/* Old Author Box */
.author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    border: 2px solid var(--ninja-black);
}

.author-box__info {
    flex: 1;
    min-width: 200px;
}

.author-box__name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-box__bio {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* Old Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
}

.post-nav__link {
    display: block;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal-sm);
    text-decoration: none;
}

.post-nav__label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.post-nav__title {
    font-weight: 600;
    color: var(--ninja-black);
    font-size: 0.875rem;
}

/* ================================
   Breadcrumbs
================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--ninja-black);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-brutal-sm);
}

.breadcrumbs a {
    color: var(--gray-500);
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--ninja-blue);
}

.breadcrumbs__sep {
    color: var(--gray-400);
}

.breadcrumbs__current {
    color: var(--ninja-black);
    font-weight: 600;
}

/* ================================
   Comments - Improved
================================ */
.comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.comments__title,
.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal-sm);
    margin-bottom: 1rem;
}

.comment .children {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--ninja-blue);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--ninja-black);
}

.comment-author .fn {
    font-weight: 700;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.comment-metadata a {
    color: var(--gray-500);
}

.comment-content p {
    margin: 0;
}

.reply a {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: var(--ninja-paper);
    border: 2px solid var(--ninja-black);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ninja-black);
}

.reply a:hover {
    background: var(--ninja-blue);
    color: var(--white);
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--ninja-black);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    background: var(--white);
    transition: box-shadow 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 58, 176, 0.2);
}

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

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit,
.comment-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--ninja-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--ninja-black);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-brutal-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.comment-form .submit:hover,
.comment-form button[type="submit"]:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ninja-black);
}

.comment-notes,
.logged-in-as {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* ================================
   Utilities
================================ */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ================================
   Pagination
================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 2px solid var(--ninja-black);
    border-radius: 0.5rem;
    font-weight: 500;
}

.pagination a {
    background: var(--white);
    box-shadow: var(--shadow-brutal-sm);
}

.pagination .current {
    background: var(--ninja-blue);
    color: var(--white);
}


/* ================================
   Responsive
================================ */
@media (max-width: 768px) {
    .post__title {
        font-size: 1.75rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    /* Card images on mobile */
    .card {
        overflow: hidden;
    }

    .card__image,
    .card img {
        width: 100%;
        height: 180px;
        min-height: 180px;
        object-fit: cover;
        display: block;
    }

    .card__body {
        padding: 1rem;
    }

    .card__title {
        font-size: 1.1rem;
    }
}

/* ================================
   Single Post - SIMPLE CLEAN DESIGN
================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(27, 58, 176, 0.1);
    z-index: 10001;
}

.reading-progress__bar {
    height: 100%;
    background: var(--ninja-blue);
    width: 0%;
    transition: width 0.1s ease;
}

/* Simple Breadcrumbs */
.breadcrumbs-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    padding: 1.5rem 0 1rem 0;
    color: var(--gray-600);
}

.breadcrumbs-simple a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-simple a:hover {
    color: var(--ninja-blue);
}

.breadcrumbs-simple .breadcrumbs__sep {
    color: var(--gray-400);
}

/* Simple Post Header */
.post-header-simple {
    padding: 2rem 0 3rem 0;
    border-bottom: 2px solid var(--gray-200);
}

.post-title-simple {
    font-size: 36px;
    line-height: 40px;
    font-weight: 900;
    color: var(--ninja-black);
    margin-bottom: 1.5rem;
}

.post-header-simple__meta-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.post-category-simple {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--ninja-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.post-category-simple:hover {
    background: var(--ninja-black);
    color: white;
}

.post-meta-simple {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-meta-simple__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.post-meta-simple__icon {
    width: 16px;
    height: 16px;
    color: var(--gray-500);
}

/* Simple Share Buttons */
.share-buttons-simple {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-buttons-simple__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.share-btn-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--ninja-black);
    border-radius: 0.5rem;
    color: var(--ninja-black);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn-simple svg {
    width: 18px;
    height: 18px;
}

.share-btn-simple:hover {
    background: var(--ninja-blue);
    border-color: var(--ninja-blue);
    color: white;
    transform: translateY(-2px);
}

/* Post Layout */
.post-content-wrapper {
    padding: 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

@media (min-width: 1280px) {
    .post-layout {
        grid-template-columns: 1fr 280px;
        gap: 4rem;
    }
}

.post-main {
    min-width: 0;
}

/* Content Typography (Prose) */
.prose {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.prose h2 {
    font-size: 24px;
    line-height: 40px;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: var(--ninja-black);
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ninja-black);
}

.prose p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.prose a {
    color: var(--ninja-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.prose a:hover {
    color: var(--ninja-accent);
}

.prose img {
    width: 100%;
    border-radius: 0.5rem;
    border: 2px solid var(--gray-200);
    margin: 2rem 0;
}

.prose blockquote {
    border-left: 4px solid var(--ninja-blue);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--gray-100);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--gray-700);
}

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

.prose li {
    margin-bottom: 0.75rem;
}

.prose code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    color: var(--ninja-blue);
}

.prose pre {
    background: var(--ninja-black);
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Breadcrumbs Current */
.breadcrumbs__current {
    color: var(--ninja-black);
    font-weight: 600;
}

/* Simple Author Box */
.author-box-simple {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border: 2px solid var(--ninja-black);
    border-radius: 1rem;
    box-shadow: var(--shadow-brutal-sm);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-box-simple__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    border: 2px solid var(--ninja-black);
}

.author-box-simple__content {
    flex: 1;
}

.author-box-simple__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.author-box-simple__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ninja-black);
    margin-bottom: 0.75rem;
}

.author-box-simple__bio {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}


@media (max-width: 640px) {

    /* Mobile Post Title */
    .post-title-simple {
        font-size: 23px;
        line-height: 30px;
    }

    /* Mobile Prose Typography */
    .prose h2 {
        font-size: 18px;
        line-height: 30px;
    }

    .prose h3 {
        font-size: 16px;
        line-height: 1.7rem;
    }

    .author-box-simple {
        flex-direction: column;
        text-align: center;
    }

    .author-box-simple__avatar {
        margin: 0 auto;
    }
}