/* Blog Post Specific Styles */
.blog-post-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--black);
}

.separator {
    color: var(--gray-400);
}

.post-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-category {
    background: var(--black);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-date, .read-time {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.post-excerpt {
    font-size: 1.375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.author-bio {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.post-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

.action-btn.bookmarked {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-share span {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.social-btn {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--black);
    color: var(--black);
    transform: translateY(-2px);
}

/* Featured Image */
.featured-image {
    padding: 2rem 0;
}

.image-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Blog Content */
.blog-content {
    padding: 80px 0;
    background: var(--white);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.post-content {
    max-width: 800px;
}

.table-of-contents {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-bottom: 3rem;
    position: sticky;
    top: 100px;
}

.table-of-contents h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.toc-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.toc-link:hover {
    color: var(--black);
    padding-left: 0.5rem;
}

.toc-link:last-child {
    border-bottom: none;
}

.article-body {
    line-height: 1.8;
    color: var(--gray-700);
}

.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin: 2rem 0 1rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.key-point {
    background: var(--gray-50);
    border-left: 4px solid var(--black);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.key-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.key-content {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.code-example {
    background: var(--gray-900);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.code-header {
    background: var(--gray-800);
    padding: 1rem 1.5rem;
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 500;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: bold;
}

.case-study {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.case-icon {
    font-size: 1.5rem;
}

.case-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: var(--black);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--gray-50);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.challenge-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    border-color: var(--black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.challenge-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.challenge-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.challenge-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.timeline-future {
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-year {
    background: var(--black);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-600);
    margin: 0;
}

.callout-box {
    background: var(--black);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.callout-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.callout-content h4 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.callout-content p {
    color: var(--gray-300);
    margin: 0;
    font-size: 1rem;
}

.post-footer-actions {
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
    margin-top: 3rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.post-tags .tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.author-widget {
    text-align: center;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-widget h4 {
    margin-bottom: 0.5rem;
}

.author-widget p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--black);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-post:hover {
    background: var(--gray-50);
    transform: translateX(5px);
}

.related-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.related-date {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.sidebar-newsletter input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.sidebar-newsletter .btn {
    width: 100%;
}

/* Newsletter Section */
.post-newsletter {
    padding: 80px 0;
    background: var(--gray-50);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.newsletter-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form-large {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form-large input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form-large input:focus {
    outline: none;
    border-color: var(--black);
}

.newsletter-note {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .table-of-contents {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        padding: 100px 0 40px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-details {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .callout-box {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-excerpt {
        font-size: 1.125rem;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .image-container img {
        height: 250px;
    }
}