/**
 * Estilos para Single Post (Artículos individuales del blog)
 * 
 * Este archivo contiene todos los estilos específicos para la vista
 * de un artículo individual del blog.
 * 
 * @package Xacobeos
 * @since 1.0.0
 */

/*--------------------------------------------------------------
# Single Post Layout & Styles
--------------------------------------------------------------*/

/* Main Container */
.single-post-main .container {
    max-width: 1100px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.breadcrumb-link:hover {
    color: #007cba;
}
.breadcrumb-current {
    font-weight: 500;
    color: #333;
}

/* Header */
.single-post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-categories-header .category-badge {
    background-color: #007cba;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
}

.post-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-avatar {
    border-radius: 50%;
}
.author-name {
    font-weight: 500;
    color: #333;
    text-decoration: none;
}
.post-date {
    font-size: 0.9rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}
.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.single-post-thumbnail {
    margin: 2rem 0;
}
.single-post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Content Layout */
.single-post-content {
    display: flex;
    justify-content: center;
}

.post-content-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
}

@media (min-width: 992px) {
    .post-content-container {
        grid-template-columns: 3fr 1fr;
    }
}

.post-main-content {
    max-width: 720px; /* Optimal reading width */
    margin: 0 auto;
}

/* Typography & Content Styling */
.post-main-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}
.post-main-content h2,
.post-main-content h3,
.post-main-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}
.post-main-content p,
.post-main-content ul,
.post-main-content ol {
    margin-bottom: 1.5em;
}
.post-main-content a {
    color: #007cba;
    text-decoration: underline;
}
.post-main-content blockquote {
    border-left: 3px solid #007cba;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}
.post-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Sidebar */
.post-content-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.sharing-section,
.related-categories,
.post-tags-section {
    margin-bottom: 2.5rem;
}

.sharing-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    transition: background 0.2s;
}
.share-btn:hover {
    background: #e9ecef;
}

/* Category & Tag Lists */
.category-list, .tags-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tags-list {
    flex-direction: row;
    flex-wrap: wrap;
}

.category-item, .tag-item {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    text-decoration: none;
    color: #6c757d;
    background: #f8f9fa;
    font-size: 0.9rem;
}
.category-item:hover, .tag-item:hover {
    background: #e9ecef;
    color: #333;
}

/* Footer */
.author-bio-section,
.post-navigation-section,
.related-posts-section,
.comments-section {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}