@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@font-face {
    font-family: 'Baby Doll';
    src: url('/assets/fonts/Baby Doll.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Letters For Learners';
    src: url('/assets/fonts/letters for learners.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'TeachersStudent';
    src: url('/assets/fonts/teachersstudent-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #FFD700;
    --color-primary-dark: #FFAA00;
    --color-primary-light: rgba(255, 215, 0, 0.1);
    --color-bg-dark: #0a0a0a;
    --color-bg: #121212;
    --color-bg-light: #1a1a1a;
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-border: rgba(255, 215, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg) 50%, var(--color-bg-light) 100%);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-primary));
    z-index: 1001;
    transition: width 0.2s ease;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-nav {
    height: 42px;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.logo-nav:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Baby Doll', cursive;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.6rem 1.3rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
    z-index: 1;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

nav a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

nav a:hover::before {
    width: 120px;
    height: 120px;
}

.dropdown > a::before {
    display: none !important;
}

.main-menu > li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    min-width: 220px;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.8rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Baby Doll', cursive;
}

.dropdown-menu li a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding-left: 2rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    animation: none;
}

.main-menu > li:first-child .dropdown-menu {
    left: 0;
    transform: translateX(0);
}

.main-menu > li:last-child .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--color-primary);
}

.mobile-menu-close {
    display: none;
}

.post-container {
    max-width: 900px;
    margin: 8rem auto 3rem;
    padding: 0 2rem;
    flex: 1;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

#post-title {
    font-family: 'TeachersStudent', cursive;
    font-weight: 400;
    font-style: normal;
    color: var(--color-primary);
    font-size: 4.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    position: relative;
    display: inline-block;
}

#post-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.post-meta {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-date,
.post-category,
.post-views {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    font-family: 'Baby Doll', cursive;
    text-transform: capitalize;
}

.post-date {
    color: var(--color-text);
}

.post-category {
    color: var(--color-primary);
    background: rgba(255, 215, 0, 0.2);
}

.post-views {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.9);
}

.post-views i {
    color: var(--color-primary);
    font-size: 0.88em;
}

.featured-image-container {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(45deg, var(--color-bg-light) 0%, #2a2a2a 100%);
    transition: var(--transition);
}

.featured-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition);
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 50%,
        rgba(255, 215, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-image:hover::before {
    opacity: 1;
}

.post-content {
    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    font-family: 'Letters For Learners', sans-serif;
    background: rgba(30, 30, 30, 0.6);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
}

.post-content h2,
.post-content h3 {
    font-family: 'Baby Doll', cursive;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-content h2 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.8rem;
}

.post-content p {
    margin-bottom: 1.8rem;
    text-align: justify;
    hyphens: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.post-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

.post-content em {
    color: var(--color-text-secondary);
    font-style: italic;
}

a, a:link, a:visited {
    color: var(--color-primary) !important;
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus, a:active {
    color: var(--color-primary-dark) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.post-content a,
.post-content a:link, 
.post-content a:visited,
.post-content a:active,
.post-content a:focus {
    color: var(--color-primary) !important;
    text-decoration: none;
    border-bottom: 2px solid var(--color-border);
    padding: 0 2px;
    position: relative;
    background: linear-gradient(to right, transparent 0%, transparent 50%, var(--color-primary-light) 50%, var(--color-primary-light) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: var(--transition);
}

.post-content a:hover {
    color: var(--color-primary-dark) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    border-bottom-color: var(--color-primary);
    background-position: 0 0;
}

nav a, nav a:link, nav a:visited {
    color: var(--color-text) !important;
}

nav a:hover, nav a:focus {
    color: var(--color-primary) !important;
}

footer a, footer a:link, footer a:visited {
    color: #ccc !important;
}

footer a:hover, footer a:focus {
    color: var(--color-primary) !important;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.post-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-secondary);
    background: var(--color-primary-light);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-content code {
    background: var(--color-primary-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.post-content pre {
    background: rgba(30, 30, 30, 0.8);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    border: 1px solid var(--color-border);
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 3rem;
    font-family: 'Baby Doll', cursive;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 1rem 2rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-primary-light);
    position: relative;
    overflow: hidden;
}

.back-link:hover {
    transform: translateX(-10px);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: var(--shadow-sm);
}

.back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.7s ease;
}

.back-link:hover::before {
    left: 100%;
}

/* Footer mejorado */
footer {
    background: transparent;
    padding: 4rem 2rem 2rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    border-top: 0;
    position: relative;
    overflow: hidden;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.footer-particle {
    position: absolute;
    background-color: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.footer-tagline {
    font-family: 'Baby Doll', cursive;
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    font-family: 'Baby Doll', cursive;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(8px);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.footer-social {
    flex: 1;
    min-width: 250px;
}

.social-title {
    font-family: 'Baby Doll', cursive;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 280px;
    margin: 0 auto;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.social-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.social-name {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: 'Baby Doll', cursive;
}

.social-item:hover .social-icon {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.social-item:hover .social-icon img {
    filter: brightness(1);
}

.social-item:hover .social-name {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.4) 20%, 
        rgba(255, 215, 0, 0.4) 80%, 
        transparent 100%);
    margin: 3rem 0;
}

.footer-bottom {
    padding-top: 2.4rem;
    border-top: 0 !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    transform: none;
    background: rgba(255, 215, 0, 0.28);
    pointer-events: none;
    z-index: 2;
}

.disclaimer {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Letters For Learners', sans-serif;
}

.disclaimer-highlight {
    color: var(--color-primary);
    font-family: 'Baby Doll', cursive;
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

.copyright {
    margin-top: 1.2rem;
    color: #666;
    font-size: 0.85rem;
    font-family: 'Letters For Learners', sans-serif;
}

/* Animaciones */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    100% {
        background-position: 100% 50%;
        text-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 1.05rem;
    }
    
    .post-container {
        max-width: 800px;
    }
    
    #post-title {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: right 0.4s ease;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .mobile-menu-close:hover {
        color: var(--color-primary);
        transform: rotate(90deg);
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand, .footer-links {
        text-align: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo-nav {
        height: 35px;
    }
    
    .post-container {
        margin: 7rem auto 2rem;
        padding: 0 1.5rem;
    }
    
    #post-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-content {
        padding: 2rem;
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .featured-image {
        aspect-ratio: 4/3;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-nav {
        height: 32px;
    }
    
    nav {
        width: 85%;
        right: -85%;
    }

    .post-container {
        padding: 0 1rem;
    }

    #post-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .footer-main {
        gap: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
            border: 2px solid rgba(255, 215, 0, 0.5);
            border-radius: 50%;
            color: var(--color-bg-dark);
            font-size: 1.8rem;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 1000;
            box-shadow: 
                0 4px 15px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 215, 0, 0.1);
            backdrop-filter: blur(10px);
        }
        
        .scroll-to-top:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 
                0 8px 25px rgba(255, 215, 0, 0.4),
                0 0 30px rgba(255, 215, 0, 0.2);
            border-color: rgba(255, 215, 0, 0.8);
        }

        .scroll-to-top:active {
            transform: translateY(-2px) scale(1.05);
        }

        .scroll-to-top.show {
            display: flex;
            animation: fadeInUp 0.5s ease;
        }
        
        .scroll-to-top .material-icons {
            font-size: 2rem;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.8);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .post-link-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 10, 0.95);
            z-index: 10000;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            font-family: 'Baby Doll', cursive;
        }
        
        .post-link-modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
            padding: 2rem;
            border-radius: var(--border-radius-lg);
            border: 2px solid var(--color-primary);
            text-align: center;
            max-width: 500px;
            width: 90%;
            box-shadow: var(--shadow-lg);
            backdrop-filter: blur(10px);
        }

        @font-face {
            font-family: 'Jane Austen';
            src: url('/assets/fonts/janeaust.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        .author-signature {
            margin-top: 3rem;
            text-align: center;
            padding: 2rem 0;
            position: relative;
        }

        .signature-name {
            font-family: 'Jane Austen', serif;
            font-size: 2.5rem;
            color: white;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
            text-shadow: 
                0 0 10px rgba(255, 255, 255, 0.3),
                0 0 20px rgba(255, 255, 255, 0.2),
                0 0 30px rgba(255, 255, 255, 0.1);
            animation: signatureGlow 3s ease-in-out infinite alternate;
            position: relative;
        }

        @keyframes signatureGlow {
            from {
                text-shadow: 
                    0 0 10px rgba(255, 255, 255, 0.3),
                    0 0 20px rgba(255, 255, 255, 0.2),
                    0 0 30px rgba(255, 255, 255, 0.1);
            }
            to {
                text-shadow: 
                    0 0 15px rgba(255, 255, 255, 0.4),
                    0 0 25px rgba(255, 255, 255, 0.3),
                    0 0 35px rgba(255, 255, 255, 0.2);
            }
        }

        .author-description {
            font-size: 0.9rem;
            color: var(--color-text-secondary);
            font-style: italic;
            margin-top: 0.5rem;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }

        .author-signature:hover .author-description {
            opacity: 1;
        }

        .exit-confirmation-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 10, 0.98);
            z-index: 10000;
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            font-family: 'Baby Doll', cursive;
            animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                backdrop-filter: blur(0px);
            }
            to {
                opacity: 1;
                backdrop-filter: blur(25px);
            }
        }

        .exit-confirmation-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            background: linear-gradient(135deg, 
                rgba(30, 30, 30, 0.95) 0%, 
                rgba(40, 40, 40, 0.95) 100%);
            padding: 3rem;
            border-radius: 24px;
            border: 2px solid rgba(255, 215, 0, 0.3);
            text-align: center;
            max-width: 520px;
            width: 90%;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 215, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            animation: contentSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
            position: relative;
            overflow: hidden;
        }

        .exit-confirmation-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 215, 0, 0.4), 
                transparent);
        }

        @keyframes contentSlideIn {
            to {
                transform: translate(-50%, -50%) scale(1);
            }
        }

        .exit-confirmation-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            background: linear-gradient(135deg, 
                rgba(255, 215, 0, 0.1) 0%, 
                rgba(255, 215, 0, 0.05) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(255, 215, 0, 0.3);
            position: relative;
            box-shadow: 
                0 0 30px rgba(255, 215, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .exit-confirmation-icon::after {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 50%;
            background: linear-gradient(135deg, 
                rgba(255, 215, 0, 0.2) 0%, 
                rgba(255, 215, 0, 0) 50%);
            z-index: -1;
            animation: iconPulse 2s ease-in-out infinite;
        }

        @keyframes iconPulse {
            0%, 100% {
                opacity: 0.5;
                transform: scale(1);
            }
            50% {
                opacity: 0.8;
                transform: scale(1.05);
            }
        }

        .exit-confirmation-icon .material-icons {
            font-size: 2.5rem;
            color: #FFD700;
            filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
        }

        .exit-confirmation-title {
            color: #FFD700;
            margin-bottom: 1rem;
            font-size: 2rem;
            text-shadow: 
                0 2px 4px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 215, 0, 0.3);
            letter-spacing: 0.5px;
            font-weight: normal;
        }

        .exit-confirmation-message {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.5rem;
            font-family: 'Letters For Learners', sans-serif;
            font-size: 1rem;
            line-height: 1.5;
        }

        .exit-confirmation-url {
            color: #FFD700;
            background: rgba(255, 215, 0, 0.1);
            padding: 1.2rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 215, 0, 0.2);
            margin: 1.5rem 0;
            word-break: break-all;
            font-family: 'Letters For Learners', sans-serif;
            font-size: 0.9rem;
            line-height: 1.4;
            position: relative;
            backdrop-filter: blur(10px);
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .exit-confirmation-warning {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.85rem;
            font-family: 'Letters For Learners', sans-serif;
            margin-bottom: 2rem;
            line-height: 1.4;
        }

        .exit-confirmation-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.2rem;
        }

        .exit-confirmation-btn {
            flex: 1;
            padding: 1.2rem 2rem;
            border-radius: 16px;
            cursor: pointer;
            font-family: 'Baby Doll', cursive;
            font-size: 1.1rem;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 2px solid;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .exit-confirmation-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.1), 
                transparent);
            transition: left 0.6s ease;
        }

        .exit-confirmation-btn:hover::before {
            left: 100%;
        }

        .exit-confirmation-btn-cancel {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.9);
        }

        .exit-confirmation-btn-cancel:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.4);
            color: #FFFFFF;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .exit-confirmation-btn-confirm {
            background: linear-gradient(135deg, 
                #FFD700 0%, 
                #FFAA00 100%);
            border-color: rgba(255, 215, 0, 0.8);
            color: #121212;
            font-weight: bold;
            box-shadow: 
                0 4px 15px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 215, 0, 0.1);
        }

        .exit-confirmation-btn-confirm:hover {
            background: linear-gradient(135deg, 
                #FFE44D 0%, 
                #FFB700 100%);
            border-color: #FFD700;
            transform: translateY(-2px);
            box-shadow: 
                0 8px 25px rgba(255, 215, 0, 0.4),
                0 0 30px rgba(255, 215, 0, 0.2);
        }

        .exit-confirmation-btn:active {
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 600px) {
            .exit-confirmation-content {
                padding: 2rem 1.5rem;
                border-radius: 20px;
            }
            
            .exit-confirmation-icon {
                width: 70px;
                height: 70px;
                margin-bottom: 1.2rem;
            }
            
            .exit-confirmation-icon .material-icons {
                font-size: 2rem;
            }
            
            .exit-confirmation-title {
                font-size: 1.7rem;
            }
            
            .exit-confirmation-buttons {
                flex-direction: column;
                gap: 0.8rem;
            }
            
            .exit-confirmation-btn {
                padding: 1rem 1.5rem;
            }
        }

/* Codex post refresh */
.post-container {
    max-width: 100%;
    margin: 6.5rem auto 3rem;
    padding: 0 0 3.5rem;
}

#post-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#post-content::before {
    display: none;
}

.post-hero {
    position: relative;
    width: min(calc(100vw - 2.5rem), 1680px);
    margin: 0 auto;
    min-height: clamp(620px, 80vh, 980px);
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 24%),
        linear-gradient(180deg, rgba(18,18,18,0.96), rgba(8,8,8,0.98));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 34px 90px rgba(0,0,0,0.38),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.post-hero-media,
.post-hero-media .featured-image {
    position: absolute;
    inset: 0;
}

.post-hero-media .featured-image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.post-hero-media .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    filter: saturate(0.92) contrast(1.02);
}

.post-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,8,8,0.16) 0%, rgba(8,8,8,0.32) 34%, rgba(8,8,8,0.86) 100%),
        linear-gradient(90deg, rgba(8,8,8,0.46) 0%, rgba(8,8,8,0.12) 34%, rgba(8,8,8,0.66) 100%);
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1280px);
    padding: clamp(2.8rem, 6vw, 5.8rem) clamp(2rem, 4vw, 3.6rem);
}

.post-hero-no-image {
    min-height: 320px;
}

.post-hero-no-image .post-hero-scrim {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
}

.post-hero-no-image #post-title {
    max-width: 12ch;
}

.post-meta {
    justify-content: flex-start;
    margin: 0 0 1.15rem;
    gap: 0.7rem;
}

.post-date,
.post-category,
.post-views {
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.94);
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
}

#post-title {
    display: block;
    max-width: 12ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(3.2rem, 6.1vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
    text-align: left;
    text-shadow: 0 4px 24px rgba(0,0,0,0.42);
}

#post-title::after {
    left: 0;
    transform: none;
    bottom: -14px;
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.15));
}

#post-author-section {
    display: flex !important;
    justify-content: flex-start;
    margin-top: 1.2rem;
}

.author-signature {
    margin: 0;
    padding: 1rem 1.15rem;
    width: fit-content;
    max-width: min(100%, 540px);
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    border-radius: 18px;
    background: rgba(6,6,6,0.42);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 28px rgba(0,0,0,0.16);
    text-align: left;
    backdrop-filter: blur(12px);
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.author-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex-wrap: wrap;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.78);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.signature-name {
    font-family: 'Baby Doll', cursive;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0;
    text-shadow: none;
}

.author-description {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    font-style: normal;
}

.post-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.2rem 0 0;
}

.post-body {
    margin: 0;
}

.post-content,
.post-text {
    max-width: 100%;
}

.post-content {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 1.08rem;
    line-height: 1.88;
}

.post-text {
    display: grid;
    gap: 0.15rem;
}

.post-content h2,
.post-content h3 {
    color: #ffffff;
    text-shadow: none;
    letter-spacing: -0.01em;
    margin-top: 2.65rem;
    margin-bottom: 0.85rem;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    padding-bottom: 0.5rem;
}

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

.post-content p {
    margin-bottom: 1.15rem;
    text-align: left;
    hyphens: none;
    color: rgba(255,255,255,0.88);
}

.post-content ul,
.post-content ol {
    margin: 0.35rem 0 1.5rem 1.1rem;
    padding-left: 1rem;
}

.post-content li {
    margin-bottom: 0.45rem;
    color: rgba(255,255,255,0.86);
}

.post-content strong {
    color: #ffffff;
    font-weight: 700;
}

.post-content em {
    color: rgba(255,255,255,0.76);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.3rem;
    border-left: 3px solid rgba(255,255,255,0.3);
    border-radius: 0 16px 16px 0;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.76);
}

.post-content code {
    background: rgba(255,255,255,0.08);
    color: #fff2af;
    border: 1px solid rgba(255,255,255,0.06);
}

.post-content pre {
    background: rgba(10,10,10,0.94);
    border: 1px solid rgba(255,255,255,0.06);
}

.back-link {
    display: inline-flex;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 0.95rem 1.15rem;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.back-link:hover {
    transform: translateX(-4px);
    color: #ffffff;
    text-shadow: none;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.16);
}

.back-link::before {
    display: none;
}

@media (max-width: 900px) {
    .post-container {
        margin-top: 6.3rem;
        padding: 0 0.9rem 2.5rem;
    }

    .post-hero {
        width: calc(100vw - 1.8rem);
        min-height: 540px;
        border-radius: 24px;
    }

    .post-hero-content {
        width: 100%;
        padding: 1.6rem 1.1rem 1.3rem;
    }

    #post-title {
        max-width: 11ch;
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    .post-meta {
        gap: 0.55rem;
    }

    .post-date,
    .post-category,
    .post-views {
        width: fit-content;
        min-height: 38px;
        padding: 0.55rem 0.85rem;
        font-size: 0.88rem;
    }

    .author-signature {
        min-width: 100%;
    }

    .post-article {
        padding-top: 2.4rem;
    }

    .post-content {
        font-size: 1rem;
    }
}
