/**
 * Single Post Styles
 * Italia Delight Theme
 */

/* ===== Post Hero ===== */
.post-hero {
    width: 100%;
    height: 24rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Post Meta ===== */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.post-meta .avatar {
    border-radius: 50%;
}

/* ===== Post Content ===== */
.single-post-article .prose {
    max-width: 65ch;
}

.single-post-article .prose > * {
    margin-bottom: 1.25em;
}

.single-post-article .prose h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: var(--line-height-tight);
}

.single-post-article .prose h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-top: 1.75em;
    margin-bottom: 0.75em;
}

.single-post-article .prose h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.single-post-article .prose p {
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.25em;
}

.single-post-article .prose a {
    color: var(--color-brand-red);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.single-post-article .prose a:hover {
    color: var(--color-brand-red-dark);
}

.single-post-article .prose ul,
.single-post-article .prose ol {
    margin-left: 1.5em;
    margin-bottom: 1.25em;
}

.single-post-article .prose li {
    margin-bottom: 0.5em;
    line-height: var(--line-height-relaxed);
}

.single-post-article .prose img {
    margin: 2em 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.single-post-article .prose blockquote {
    padding-left: 1.5em;
    border-left: 4px solid var(--color-brand-red);
    font-style: italic;
    color: var(--color-text-gray);
    margin: 1.5em 0;
}

.single-post-article .prose code {
    background-color: var(--color-bg-gray-dark);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.single-post-article .prose pre {
    background-color: var(--color-bg-gray-dark);
    padding: 1.5em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5em 0;
}

.single-post-article .prose pre code {
    background-color: transparent;
    padding: 0;
}

/* ===== Post Tags ===== */
.post-tags {
    margin-bottom: 1.5rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-gray);
    color: var(--color-text-gray);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-tags a:hover {
    background-color: var(--color-brand-red);
    color: white;
}

/* ===== Social Share ===== */
.social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-share a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-brand-red);
}

/* ===== Page Links (Multi-page posts) ===== */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--color-bg-gray);
    border-radius: var(--radius-md);
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: white;
    color: var(--color-brand-red);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-links a:hover {
    background-color: var(--color-brand-red);
    color: white;
}

.page-links > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

/* ===== Related Posts Section ===== */
.related-posts {
    background-color: var(--color-bg-gray);
    padding: 3rem 0;
    margin-top: 3rem;
}

/* ===== Comments ===== */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border-light);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    padding: 1.5rem;
    background-color: var(--color-bg-gray);
    border-radius: var(--radius-lg);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.reply a {
    font-size: var(--font-size-sm);
    color: var(--color-brand-red);
    text-decoration: none;
}

.reply a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .post-hero {
        height: 16rem;
    }

    .single-post-article h1 {
        font-size: var(--font-size-3xl);
    }

    .social-share {
        flex-direction: column;
    }

    .social-share a {
        width: 100%;
        justify-content: center;
    }
}
