/* 
 * Enhanced Post Detail Styles
 * Cải thiện giao diện trang chi tiết bài viết
 */

/* Breadcrumb */
.breadcrumb {
    background-color: var(--light-bg);
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb-list a {
    color: var(--primary-color);
}

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

/* Post Single Enhanced */
.post-single-enhanced {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 300px);
}

/* Post Header Enhanced */
.post-header-enhanced {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px 1rem;
}

.post-title-enhanced {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 1rem 0 1.5rem;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.post-meta-enhanced {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-item i {
    color: var(--primary-color);
}

.post-category-badge {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

/* Featured Image Full Width - NEW */
.post-featured-image-full {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-bottom: -100px;
}

.post-featured-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-featured-image-full .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Featured Image Enhanced */
.post-featured-image-enhanced {
    max-width: 100%;
    width: 100%;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.post-featured-image-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.2));
    z-index: 1;
    pointer-events: none;
}

.post-featured-image-enhanced img {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.post-featured-image-enhanced:hover img {
    transform: scale(1.02);
}

/* Content Area Enhanced */
.post-content-enhanced {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 20px;
    font-size: 1.125rem;
    line-height: 1.9;
    color: #2c3e50;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.post-content-enhanced h1,
.post-content-enhanced h2,
.post-content-enhanced h3 {
    font-family: 'Segoe UI', sans-serif;
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.post-content-enhanced h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.post-content-enhanced h2 {
    font-size: 1.8rem;
    position: relative;
    padding-left: 1rem;
}

.post-content-enhanced h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.post-content-enhanced h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.post-content-enhanced p {
    margin-bottom: 1.8rem;
    text-align: justify;
    color: #34495e;
}

.post-content-enhanced p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin: 0.1rem 0.2rem 0 0;
    color: var(--primary-color);
}

.post-content-enhanced img {
    border-radius: 12px;
    margin: 2.5rem auto;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content-enhanced img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.post-content-enhanced ul,
.post-content-enhanced ol {
    margin: 2rem 0;
    padding-left: 2.5rem;
}

.post-content-enhanced li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-content-enhanced blockquote {
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    font-style: italic;
    color: #555;
    font-size: 1.15rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
}

.post-content-enhanced blockquote p {
    margin-bottom: 0;
}

.post-content-enhanced a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.post-content-enhanced a:hover {
    border-bottom-color: var(--primary-color);
}

/* Table Styles */
.post-content-enhanced table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.post-content-enhanced table th,
.post-content-enhanced table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.post-content-enhanced table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.post-content-enhanced table tr:hover {
    background-color: var(--light-bg);
}

/* Share Buttons */
.post-share {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-align: center;
}

.post-share h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.pinterest { background-color: #bd081c; }

/* Related Posts Enhanced */
.related-posts-enhanced {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 3rem 20px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 20px 20px 0 0;
}

.related-posts-enhanced h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.related-posts-enhanced h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-title-enhanced {
        font-size: 2rem;
    }

    .post-featured-image-enhanced img {
        min-height: 300px;
        max-height: 400px;
    }

    .post-content-enhanced {
        font-size: 1rem;
        padding: 0 15px;
    }

    .post-content-enhanced p:first-of-type::first-letter {
        font-size: 2.5rem;
    }

    .post-meta-enhanced {
        flex-direction: column;
        gap: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Additional Utility Classes */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-badge {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    transition: transform 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.meta-separator {
    color: #ccc;
    margin: 0 0.5rem;
}

.author-info {
    color: #666;
}

.section-title-enhanced {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Related Posts Grid */
.related-posts-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin-top: 4rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-post-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.image-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0);
    transition: background 0.3s ease;
}

.related-post-card:hover .image-hover-overlay {
    background: rgba(231, 76, 60, 0.2);
}

.related-post-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.related-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.related-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: var(--primary-color);
}

.related-date {
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .post-title-enhanced {
        font-size: 1.5rem;
    }

    .post-content-enhanced h1 {
        font-size: 1.6rem;
    }

    .post-content-enhanced h2 {
        font-size: 1.4rem;
    }

    .post-featured-image-full {
        height: 300px;
        margin-bottom: -50px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
