/* Draft banner */
.draft-banner {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

/* Related posts */
.related-posts {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.related-posts-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.related-post-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.2s;
}

.related-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.related-post-cover {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.related-post-body {
    padding: 0.875rem;
}

.related-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 0.375rem;
}

.related-post-meta {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: lowercase;
}

/* Post detail */
.post-detail {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-body {
    padding: 2rem 2.5rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.post-meta {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: lowercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-body);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius);
    margin: 1rem 0;
}
.post-content video {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
    display: block;
}
.post-content iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius);
    margin: 1rem 0;
    display: block;
}

.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 1.5rem 0;
}

.post-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre[class*="language-"] {
    background: #2d2d2d;
    color: #ccc;
    margin: 1.5rem 0;
}

.post-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: var(--color-primary-dark);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--color-border);
}

.post-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.post-tags-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.post-tags-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


@media (max-width: 900px) {
    .post-detail {
        width: 95%;
    }
}

@media (max-width: 600px) {
    .post-detail {
        width: 100%;
    }

    .post-body {
        padding: 1.25rem;
    }

    .post-footer {
        padding: 1.25rem;
    }

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