/**
 * Single Blog Post CSS
 * (single-post.php)
 *
 * @package LuxeInterior
 */

.single-post-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 0;
}

/* Featured image */
.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

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

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

.post-header .post-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.post-header .post-meta {
    margin-bottom: 1rem;
}

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

/* Body copy */
.post-body {
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 2rem;
}

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

.post-body img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-dark);
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    border-left: 4px solid var(--gold-accent);
    background: var(--primary-beige);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--dark-charcoal);
}

.page-links {
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Footer: tags + share */
.post-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.post-tags > span {
    font-weight: 600;
    color: var(--dark-charcoal);
}

.tag-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-beige);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag-badge:hover {
    background: var(--gold-accent);
    color: white;
}

.post-share h4 {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

/* Author box */
.author-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--primary-beige);
    border-radius: 12px;
}

.author-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.4rem;
}

.author-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Related posts */
.related-posts {
    margin-top: 3.5rem;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Prev / next navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    font-weight: 600;
    color: var(--dark-charcoal);
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--gold-accent);
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post-layout {
        padding: 2rem 0;
    }

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

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation {
        flex-direction: column;
        text-align: center;
    }

    .nav-next {
        margin-left: 0;
        text-align: center;
    }
}
