/*
 * Single Post Styles
 * Theme PsyGuild
 */

.pg-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    margin-top: 40px;
    align-items: start;
}

.pg-single-layout:not(.has-sidebar) {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-inline: auto;
}

/* Post Header */
.pg-post-header {
    margin-bottom: 48px;
    text-align: center;
}

.pg-post-header .pg-cat-badge {
    margin-bottom: 20px;
    display: inline-block;
}

.pg-post-header h1 {
    font-family: var(--pg-font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--pg-text-main);
    margin-bottom: 24px;
}

.pg-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--pg-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.pg-post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-post-meta a {
    color: var(--pg-cyan);
    text-decoration: none;
}

/* Featured Image */
.pg-post-featured-image {
    width: 100%;
    margin-bottom: 48px;
    border-radius: var(--pg-radius-xl);
    overflow: hidden;
    box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.15);
}

.pg-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Content */
.pg-article-content {
    font-family: var(--pg-font-serif);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--pg-text-soft);
}

.pg-article-content h2, 
.pg-article-content h3, 
.pg-article-content h4 {
    font-family: var(--pg-font-display);
    color: var(--pg-text-main);
    margin-top: 2em;
    margin-bottom: 1em;
}

.pg-article-content p {
    margin-bottom: 1.6em;
}

.pg-article-content blockquote {
    margin: 40px 0;
    padding: 0 32px;
    border-left: 4px solid var(--pg-cyan);
    font-style: italic;
    color: var(--pg-text-main);
    font-size: 1.25rem;
}

/* Author Box */
.pg-post-author-box {
    margin-top: 64px;
    padding: 40px;
    background: var(--pg-glass-bg);
    border: 1px solid var(--pg-border-soft);
    border-radius: var(--pg-radius-xl);
    display: flex;
    gap: 32px;
    align-items: center;
}

.pg-post-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.pg-post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-post-author-info h3 {
    margin: 0 0 8px;
    font-family: var(--pg-font-display);
    font-size: 1.25rem;
}

.pg-post-author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Sidebar */
.pg-sidebar {
    position: sticky;
    top: 100px;
}

/* Mobile */
@media (max-width: 900px) {
    .pg-single-layout {
        grid-template-columns: 1fr;
    }
    
    .pg-post-header h1 {
        font-size: 2rem;
    }
    
    .pg-post-author-box {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}
