/* ============================================
   Post Page Styles
   ============================================ */

.post-header {
    display: block;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.back-link {
    font-size: 0.8125rem;
    color: var(--text-dim);
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: color 0.15s;
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.post-meta time {
    flex-shrink: 0;
}

.reading-time {
    color: var(--text-dim);
    opacity: 0.7;
}

.post-updated {
    color: var(--accent);
    opacity: 0.8;
    font-size: 0.75rem;
}

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

.post-tag {
    font-size: 0.6875rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.0625rem 0.5rem;
    border-radius: 2px;
    opacity: 0.8;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.35;
    margin: 0;
}

/* ============================================
   Post Content
   ============================================ */

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

.post-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 2rem 0 0.75rem;
}

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

.post-content a {
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.15s;
}

.post-content a:hover {
    opacity: 0.8;
}

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    font-family: var(--font);
    font-size: 0.875em;
    background: var(--bg-hover);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    color: var(--accent);
}

.post-content pre {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.post-content blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-dim);
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* ============================================
   Related Links
   ============================================ */

.post-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-related h2 {
    font-size: 0.875rem;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.post-related ul {
    list-style: none;
    font-size: 0.875rem;
}

.post-related li {
    margin-bottom: 0.5rem;
}

.post-related li::before {
    content: '\2192';
    color: var(--text-dim);
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.post-related a {
    color: var(--text);
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.post-related a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================
   Post Footer
   ============================================ */

footer {
    margin-top: 3rem;
}

.footer-separator {
    color: var(--text-dim);
    opacity: 0.5;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
    .post-title {
        font-size: 1.25rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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