/* Post detail page styles */

/* Breadcrumb navigation */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.current-page {
    color: var(--secondary-color);
}

/* Post header */
.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.post-date {
    font-weight: 500;
}

.post-author,
.post-feed {
    position: relative;
}

.post-author::before,
.post-feed::before {
    content: "·";
    position: absolute;
    left: -0.6rem;
}

.post-feed a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-feed a:hover {
    text-decoration: underline;
}

/* Title image - displayed prominently */
.post-title-image {
    margin: 2rem 0 3rem 0;
    text-align: center;
    background: #f8f9fa;
    overflow: hidden;
}

.post-title-image img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

/* Post content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primary-color);
    margin: 2rem 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content h5 { font-size: 1.1rem; }
.post-content h6 { font-size: 1rem; }

.post-content p {
    margin: 1rem 0;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

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

.post-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.no-content {
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Post footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    margin-bottom: 2rem;
}

.tags-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    background: var(--border-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    margin: 0 0.5rem 0.5rem 0;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.back-to-feed {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.back-to-feed:hover {
    text-decoration: underline;
}

.external-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.external-link:hover {
    text-decoration: underline;
}

/* Share options */
.post-share {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 1rem;
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.share-link svg {
    width: 16px;
    height: 16px;
}

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

.related-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-item {
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.related-item:hover {
    border-color: var(--accent-color);
}

.related-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 1rem;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.related-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-author::before,
    .post-feed::before {
        display: none;
    }
    
    .post-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-share {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .share-label {
        margin-right: 0;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
}