/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

:root {
    /* Base Colors - Dark Theme (Default) */
    --bg-main: #030303;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;

    /* Accents */
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.2);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.2);
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.2);
    --rose: #f43f5e;

    /* Glass */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Spacing */
    --container-width: 800px;
    /* Centered narrow column like inspiration */
    --nav-height: 60px;

    /* UI Elements */
    --bg-card: #1a1a1a;
    --hover-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-main: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);

    --bg-card: #ffffff;
    --hover-bg: rgba(0, 0, 0, 0.05);
}

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

html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: blob-float 10s infinite alternate;
}

.blob-purple {
    top: -100px;
    left: 10%;
    background: #581c87;
}

.blob-emerald {
    top: 20%;
    right: 10%;
    background: #064e3b;
    animation-delay: 2s;
}

.blob-amber {
    bottom: -100px;
    left: 30%;
    background: #451a03;
    animation-delay: 4s;
}

/* Light mode blobs opacity lower */
[data-theme="light"] .blob {
    opacity: 0.1;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    backdrop-filter: blur(var(--glass-blur));
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: var(--glass-border);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 130px;
}

.nav-controls button#theme-toggle {
    width: 27px;
}

.auth-section {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force any content (Login Link OR Injected Button) to fill container exactly */
.auth-section>* {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--glass-border) !important;
    background: transparent;
}

/* Ensure avatar image fits perfectly */
.auth-section img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: none !important;
}

.control-btn {
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 0.9rem;
}

#auth-login {
    color: var(--text-primary);
}

.control-btn:hover {
    background: var(--hover-bg);
}

/* Theme Icons */
.icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: block;
}

/* Lang Dropdown (Simplified) */
.lang-dropdown {
    position: relative;
    width: 50px;
}

.lang-btn {
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    padding: 4px 8px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 4px;
    display: none;
    flex-direction: column;
    width: 100px;
    margin-top: 8px;
}

.lang-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    /* Bridge the gap + buffer */
    left: 0;
    width: 100%;
    height: 15px;
}

.lang-dropdown:hover .lang-menu {
    display: flex;
}

.lang-menu button {
    text-align: left;
    padding: 8px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.lang-menu button:hover {
    background: var(--hover-bg);
}

/* Main Layout */
.main-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 40px) 20px 80px 20px;
}

/* Header */
.profile-header {
    margin-bottom: 60px;
}

.cover-image-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/1;
    border: 1px solid var(--glass-border);
    margin-bottom: -40px;
    /* Overlap effect */
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.7s ease;
}

.cover-image:hover {
    transform: scale(1.02);
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 50%);
    z-index: 10;
}

.cover-title {
    position: absolute;
    bottom: 20px;
    left: 24px;
    z-index: 20;
    color: white;
}

.cover-title h1 {
    font-family: serif;
    font-style: italic;
    font-size: 2rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.profile-card {
    position: relative;
    z-index: 30;
    padding: 0 24px;
}

.profile-layout {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 4px solid var(--bg-main);
    background: var(--bg-secondary);
    object-fit: cover;
}

.profile-info {
    flex: 1;
    padding-bottom: 4px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 6px;
}

.profile-nickname {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.1rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid transparent;
}

.tag-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border-color: rgba(16, 185, 129, 0.2);
}

.tag-amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.2);
}

.tag-text {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

/* Buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--text-primary);
    color: var(--bg-main);
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-pill:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-pill.outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-pill.outline:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* Glass Panels */
.glass-panel {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.6) 0%, rgba(10, 10, 10, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.7);
}

/* About Section & Pillars */
.about-section {
    margin-bottom: 60px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.text-emerald {
    color: var(--emerald);
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 12px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pillar-card {
    position: relative;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-3px);
}

/* Pillar Colors */
.pillar-emerald:hover {
    border-color: var(--emerald-glow);
    box-shadow: 0 0 20px var(--emerald-glow);
}

.pillar-amber:hover {
    border-color: var(--amber-glow);
    box-shadow: 0 0 20px var(--amber-glow);
}

.pillar-purple:hover {
    border-color: var(--purple-glow);
    box-shadow: 0 0 20px var(--purple-glow);
}

.pillar-icon {
    margin-bottom: 12px;
    font-size: 1.5rem;
    opacity: 0.8;
}

.pillar-emerald .pillar-icon {
    color: var(--emerald);
}

.pillar-amber .pillar-icon {
    color: var(--amber);
}

.pillar-purple .pillar-icon {
    color: var(--purple);
}

.pillar-card h4 {
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Status dots */
.dot-emerald,
.dot-amber,
.dot-purple {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.5;
}

.dot-emerald {
    background: var(--emerald);
}

.dot-amber {
    background: var(--amber);
}

.dot-purple {
    background: var(--purple);
}

.ai-disclaimer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ai-disclaimer div {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Feed */
.feed-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.feed-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Posts Grid */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.loading-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.spin {
    animation: spin 1s infinite linear;
}

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

/* Post Card Styles (Injected by JS) */
.post-card {
    border-radius: 20px;
    overflow: hidden;
    /* Inheritance from glass-panel style */
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.2) 100%);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.post-card-content {
    padding: 24px;
}

.post-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.post-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.badge-dev {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-music {
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.2);
}

.post-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.post-media {
    margin: -24px -24px 0 -24px;
    /* Move to top of card if desired, or bottom */
    /* If we want media inside the padding, remove neg margins. 
       Design decision: Media separates content or is at bottom? 
       Inspiration had media at bottom for videos. */
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
}

.aspect-video {
    aspect-ratio: 16/9;
}

.aspect-logo {
    aspect-ratio: 2/1;
    object-fit: cover;
}

/* For link previews */

/* Footer */
.feed-footer {
    text-align: center;
    margin-bottom: 60px;
}

.site-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-bottom: 40px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.social-link {
    transition: 0.2s;
}

@keyframes pulse-emerald {
    0% {
        color: var(--emerald);
        text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
        transform: scale(1.05);
    }

    50% {
        color: #34d399;
        /* Lighter emerald */
        text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
        transform: scale(1.1);
    }

    100% {
        color: var(--emerald);
        text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
        transform: scale(1.05);
    }
}

.hover-emerald:hover {
    animation: pulse-emerald 2s infinite ease-in-out;
}

/* Pulse animation between Dodo (Amber) and Carnaby (Rose) */
@keyframes pulse-dodo-carnaby {
    0% {
        color: var(--amber);
        text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
        transform: scale(1.05);
    }

    50% {
        color: var(--purple);
        text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
        transform: scale(1.1);
    }

    100% {
        color: var(--amber);
        text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
        transform: scale(1.05);
    }
}

.hover-amber:hover,
.hover-rose:hover,
.hover-green:hover {
    animation: pulse-dodo-carnaby 2s infinite ease-in-out;
}

/* Animation Utils */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .hidden-mobile {
        display: none;
    }

    .cover-title h1 {
        font-size: 1.5rem;
    }

    .profile-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar-container {
        margin-top: -50px;
    }

    .profile-info {
        padding-bottom: 20px;
    }

    .profile-tags {
        justify-content: center;
    }
}

/* Horizontal Post Card */
.post-card-horizontal {
    display: flex;
    gap: 24px;
    padding: 24px;
    align-items: center;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.2) 100%);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
}

.post-card-horizontal:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.5) 0%, rgba(20, 20, 20, 0.3) 100%);
}

.pch-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pch-category {
    font-size: 0.75rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pch-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pch-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pch-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pch-image {
    width: 240px;
    height: 135px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.pch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .post-card-horizontal {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }

    .pch-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}


/* Accessibility Utility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Light Mode Card Overrides */
[data-theme="light"] .post-card,
[data-theme="light"] .post-card-horizontal {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .post-card:hover,
[data-theme="light"] .post-card-horizontal:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* --- Post Detail Page --- */



/* --- Post Detail Redesign --- */
.post-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.top-nav-group,
.top-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-icon-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.meta-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.post-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
    /* Gradient text effect */
    background: linear-gradient(to bottom right, #ffffff, #cccccc);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .post-top-bar {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .post-main-title {
        font-size: 2.2rem;
        text-align: left;
        /* Better readability on mobile */
    }

    .meta-date {
        display: none;
        /* Hide date in top bar on super small screens if needed, or keep */
    }
}

/* Post Body (Markdown) */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    padding: 32px 40px;
    margin-top: 32px;
}

.post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.post-body h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-body p {
    margin-bottom: 24px;
}

.post-body a {
    color: var(--emerald);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.post-body a:hover {
    color: var(--emerald-glow);
}

.post-body ul,
.post-body ol {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.post-body li {
    margin-bottom: 8px;
}

.post-body blockquote {
    border-left: 4px solid var(--emerald);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent);
    padding: 16px 24px;
    margin: 32px 0;
    font-style: italic;
    border-radius: 4px;
    color: var(--text-secondary);
}

.post-body img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin: 24px 0;
}

.post-body pre {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--glass-border);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.post-footer {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
}

.footer-nav-group {
    display: flex;
    gap: 24px;
}

.nav-icon-btn.large {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

.post-media {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.post-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Skeleton Update */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

[data-theme='light'] .post-body {
    color: var(--text-primary);
}

[data-theme='light'] .post-title {
    background: none;
    color: var(--text-primary);
}

/* Mobile Post */
@media (max-width: 640px) {
    .post-body {
        padding: 24px 20px;
        font-size: 1rem;
    }

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