/* ===================================
   INDIVIDUAL POST CSS
   ================================= */

/* Post Header */
.post-header {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat bottom;
    background-size: cover;
}

.post-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.breadcrumb {
    color: var(--primary-600);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-600);
    text-decoration: none;
}

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

.post-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-900);
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--primary-800);
    font-size: 1rem;
}

.author-title {
    color: var(--primary-600);
    font-size: 0.85rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--primary-600);
    font-size: 0.9rem;
}

/* Post Content Layout */
.post-content {
    padding: 4rem 0;
}

.post-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured Image */
.post-featured-image {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.content-introduction {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--primary-25);
    border-left: 4px solid var(--primary-500);
    border-radius: 0.5rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-800);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-900);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-200);
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-800);
    margin: 2rem 0 1rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: var(--primary-700);
    font-weight: 600;
}

/* Special Content Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--secondary-50), var(--primary-50));
    border-left: 4px solid var(--secondary-500);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.highlight-box h3 {
    color: var(--secondary-700);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.warning-box {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.warning-box h3 {
    color: #92400E;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-box p {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    min-width: 200px;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-600);
}

.cta-buttons .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.cta-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Blockquotes */
blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-700);
    border-left: 4px solid var(--primary-400);
    padding-left: 2rem;
    margin: 2.5rem 0;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-300);
    position: absolute;
    left: -0.5rem;
    top: -1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--primary-500);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Comparison Table */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.comparison-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-wrong {
    background: #FEE2E2;
    color: #991B1B;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.comparison-right {
    background: #D1FAE5;
    color: #065F46;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-800);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.sidebar-content > * {
    margin-bottom: 2rem;
}

/* Author Box */
.author-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--primary-200);
    margin-bottom: 1rem;
}

.author-box h3 {
    color: var(--primary-800);
    margin-bottom: 0.75rem;
}

.author-bio {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.author-credentials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.credential {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Table of Contents */
.toc-box {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.toc-box h4 {
    color: var(--primary-800);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--primary-600);
}

/* Related Posts */
.related-posts {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.related-posts h4 {
    color: var(--primary-800);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.related-post-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.related-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-item img {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.related-post-content h5 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.related-post-content a {
    color: var(--primary-700);
    text-decoration: none;
    line-height: 1.3;
}

.related-post-content a:hover {
    color: var(--primary-600);
}

.related-post-date {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* Comments Section */
.comments-section {
    background: var(--gray-50);
    padding: 3rem 0;
}

.comments-section h3 {
    color: var(--primary-800);
    margin-bottom: 1.5rem;
    text-align: center;
}

.comments-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.comments-cta p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 6rem 0 3rem;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .post-featured-image img {
        height: 250px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .stats-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .content-introduction,
    .highlight-box,
    .warning-box,
    .cta-box {
        padding: 1.25rem;
    }
    
    .author-box {
        padding: 1.5rem;
    }
}