/* Individual Blog Post — Lemma */

.blog-post {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--accent-saffron);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    transition: transform 0.2s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .back-button:hover {
        transform: translateX(-5px);
    }
}

/* Post Header */
.post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .post-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.post-header .post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.post-header .post-tags {
    margin-top: 1.5rem;
}

/* Post Content */
.post-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 0.5rem;
}

.post-content ul li::before {
    content: '\2202';
    position: absolute;
    left: -1.5rem;
    color: var(--accent-saffron);
    font-size: 0.8rem;
    opacity: 0.5;
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Blockquote */
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-saffron);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Code Blocks */
.post-content pre {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

[data-theme="light"] .post-content pre {
    border-color: rgba(0, 0, 0, 0.08);
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.post-content p code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Post Footer */
.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .post-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post {
        padding: 6rem 1.5rem 3rem;
    }

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

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

    .post-content h2 {
        font-size: 1.6rem;
    }

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

@media (max-width: 480px) {
    .blog-post {
        padding: 5rem 1rem 2rem;
    }

    .post-header .post-title {
        font-size: 1.6rem;
    }
}
