/* Blog Post Page Styles */

/* Container */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Post Header */
.post-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 180px 0 60px;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#444 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.breadcrumb:hover {
    color: var(--color-brand-yellow);
}

.post-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-brand-purple);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
}

.post-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.post-excerpt {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid var(--color-brand-yellow);
}

.author-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.post-date {
    color: #aaa;
    font-size: 0.9rem;
}

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

.share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: var(--color-brand-yellow);
    border-color: var(--color-brand-yellow);
    transform: translateY(-2px);
}

/* Featured Image */
.post-featured-image {
    margin-top: -40px;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Post Content Grid */
.post-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.post-sidebar {
    position: relative;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
}

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

.content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    max-width: 800px;
}

.content-body .lead {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.content-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    font-weight: 800;
    scroll-margin-top: 100px;
}

.content-body h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body ul,
.content-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.content-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

.content-body em {
    font-style: italic;
    color: var(--color-brand-purple);
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 3rem;
    border-left: 4px solid var(--color-brand-purple);
}

.table-of-contents h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    font-weight: 800;
    text-transform: uppercase;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.table-of-contents a:hover {
    color: var(--color-brand-purple);
    padding-left: 0.5rem;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 2.5rem 0;
    border-left: 4px solid;
}

.callout-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.callout-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.callout-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.callout strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Blockquote / Testimonial */
.testimonial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    margin: 3rem 0;
    font-size: 1.25rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    box-shadow: var(--shadow-card);
}

.testimonial::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
}

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

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border-top: 4px solid var(--color-brand-purple);
}

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

.stat-label {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Comparison Table */
.comparison-table {
    margin: 3rem 0;
    overflow-x: auto;
}

.comparison-table h3 {
    margin-bottom: 1.5rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.comparison-table th {
    background: var(--color-bg-dark);
    color: var(--color-brand-yellow);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* Blog Specific CTA Box */
.blog-cta-box {
    background: linear-gradient(135deg, var(--color-brand-purple) 0%, #5a00d6 100%);
    color: #fff;
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 4rem 0;
    box-shadow: var(--shadow-hover);
}

.blog-cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.blog-cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    background: var(--color-brand-yellow);
    color: var(--color-bg-dark);
}

.btn-large:hover {
    background: #fff;
    transform: translateY(-3px);
}

/* Author Bio */
.author-bio {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 4rem;
}

.author-bio-card {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.author-bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    border: 4px solid var(--color-brand-yellow);
}

.author-bio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.author-title {
    color: var(--color-brand-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-bio-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-brand-purple);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
}

.related-posts h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-primary);
}

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

.related-post-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-card);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-brand-purple);
}

.related-post-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

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

.related-post-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--color-bg-dark);
    color: var(--color-brand-yellow);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.related-post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.related-post-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--color-brand-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--color-brand-yellow);
}

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#444 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
}

.newsletter-box {
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-box h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.newsletter-box>p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-brand-yellow);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-privacy {
    color: #aaa;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .post-header {
        padding: 140px 0 40px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-excerpt {
        font-size: 1.1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .author-bio-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-social {
        justify-content: center;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-sidebar {
        order: -1;
    }

    .sticky-sidebar {
        position: static;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
}