/* post.css - specific to individual blog posts */
@import url('index.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Serif+Devanagari:wght@400;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --fg: #e5e5e5;
    --accent: #ffffff;
    --dim: #a0a0a0;
    --border: #1a1a1a;
    --font-serif: "Noto Serif Devanagari", Georgia, Cambria, serif;
    --font-sans: "Noto Serif Devanagari", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme='light'] {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --accent: #000000;
    --dim: #666666;
    --border: #eeeeee;
}

.post-content {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--fg);
    margin-top: 40px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    font-family: var(--font-sans);
    margin-top: 40px;
    margin-bottom: 20px;
}

body {
    background-color: var(--bg);
    color: var(--fg);
}

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

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--dim);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--fg);
}

.post-header {
    margin-bottom: 40px;
}

.post-header h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .post-header h1 {
        font-size: 2.2rem;
    }

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

/* Code and Blockquotes */
pre {
    background-color: var(--hover-bg);
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid var(--border);
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    color: var(--accent);
}

p code {
    background-color: var(--hover-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--dim);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

ul,
ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

li {
    margin-bottom: 12px;
}

/* --- Premium Animated List Box --- */
.anim-list-box {
    list-style: none !important;
    padding: 2.5rem !important;
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.03); /* Default to dark-friendly subtle glass */
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    animation: list-box-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    position: relative;
    backdrop-filter: blur(4px);
}

[data-theme='light'] .anim-list-box {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.anim-list-box li {
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateX(-15px);
    animation: list-item-in 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--fg);
    padding-left: 0 !important;
}

.anim-list-box li::before {
    content: "→";
    margin-right: 15px;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.anim-list-box li:hover::before {
    transform: translateX(4px);
}

/* Staggered Animation Logic */
.anim-list-box li:nth-child(1) { animation-delay: 0.3s; }
.anim-list-box li:nth-child(2) { animation-delay: 0.4s; }
.anim-list-box li:nth-child(3) { animation-delay: 0.5s; }
.anim-list-box li:nth-child(4) { animation-delay: 0.6s; }
.anim-list-box li:nth-child(5) { animation-delay: 0.7s; }
.anim-list-box li:nth-child(6) { animation-delay: 0.8s; }
.anim-list-box li:nth-child(7) { animation-delay: 0.9s; }
.anim-list-box li:nth-child(8) { animation-delay: 1.0s; }
.anim-list-box li:nth-child(9) { animation-delay: 1.1s; }
.anim-list-box li:nth-child(10) { animation-delay: 1.2s; }

@keyframes list-box-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes list-item-in {
    to { opacity: 1; transform: translateX(0); }
}
.cta-btn .icon {
    font-size: 1.4rem;
}
