/* Blog Post Page Styles - AEO/GEO Optimized */

/* Breadcrumb */
.breadcrumb {
    background: var(--blog-surface);
    padding: 1rem 0;
    border-bottom: 1px solid var(--blog-border);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--blog-text-muted);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb li:last-child span {
    color: var(--blog-text);
}

/* Article Header */
.article-header {
    background: var(--blog-bg);
    padding: 3rem 0;
    text-align: center;
}

.article-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--blog-text-muted);
}

.category-link {
    color: var(--blog-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

.separator {
    color: var(--blog-border);
}

.article-header .article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-header .article-excerpt {
    font-size: 1.25rem;
    color: var(--blog-text-muted);
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Author Card */
.author-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--blog-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-primary);
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #fff;
}

.author-title {
    display: block;
    font-size: 0.875rem;
    color: var(--blog-text-muted);
}

.author-linkedin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--blog-border);
    border-radius: 100px;
    transition: all 0.2s;
}

.author-linkedin:hover {
    color: #0a66c2;
    border-color: #0a66c2;
}

/* Featured Image */
.article-featured-image {
    background: var(--blog-surface);
    margin: 0;
}

.article-featured-image .container {
    max-width: 1000px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article-featured-image figcaption {
    text-align: center;
    color: var(--blog-text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

/* Key Takeaways Box - AEO Optimized */
.key-takeaways-box {
    background: var(--blog-bg);
    padding: 2rem 0;
}

.takeaways-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.takeaways-card h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--blog-primary);
    margin-bottom: 1.25rem;
}

.takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.takeaways-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--blog-text);
    line-height: 1.6;
}

.takeaways-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blog-primary);
    font-weight: bold;
}

/* Article Body */
.article-body {
    background: var(--blog-bg);
    padding: 3rem 0;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--blog-text);
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.5rem;
}

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

.article-content .lead {
    font-size: 1.25rem;
    color: var(--blog-text);
    background: var(--blog-surface);
    padding: 1.5rem;
    border-left: 4px solid var(--blog-accent);
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.article-content code {
    background: var(--blog-surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--blog-accent);
}

.article-content pre {
    background: #1e1e2e !important;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--blog-border);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

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

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

.article-content a {
    color: var(--blog-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--blog-accent);
}

/* Mistake Cards */
.mistake-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.mistake-card h4 {
    color: #ef4444;
    margin: 0 0 0.5rem;
}

.mistake-card p {
    margin: 0;
    color: var(--blog-text-muted);
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
    color: var(--blog-primary);
}

/* Key Takeaways in content */
.key-takeaways {
    background: var(--blog-surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.key-takeaways ol {
    margin: 0;
    padding-left: 1.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--blog-surface);
    padding: 3rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--blog-surface-elevated);
    border: none;
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--blog-bg);
}

.faq-icon {
    transition: transform 0.3s;
    color: var(--blog-text-muted);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.25rem;
    background: var(--blog-bg);
    color: var(--blog-text-muted);
    line-height: 1.7;
}

.faq-answer[hidden] {
    display: none;
}

/* Citations */
.citations-section {
    background: var(--blog-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--blog-border);
}

.citations-section h3 {
    font-size: 1rem;
    color: var(--blog-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.citations-list {
    max-width: 760px;
    margin: 0 auto;
    padding-left: 1.5rem;
    color: var(--blog-text-muted);
    font-size: 0.9375rem;
}

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

/* Article Footer Section */
.article-footer-section {
    background: var(--blog-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--blog-border);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--blog-surface);
    color: var(--blog-text-muted);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--blog-primary);
    color: #fff;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    color: var(--blog-text-muted);
    font-size: 0.875rem;
}

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

.share-btn {
    width: 40px;
    height: 40px;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--blog-text-muted);
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #fff;
}

.share-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.share-btn.telegram:hover { background: #0088cc; border-color: #0088cc; }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-btn.reddit:hover { background: #ff4500; border-color: #ff4500; }
.share-btn.hackernews:hover { background: #ff6600; border-color: #ff6600; }
.share-btn.copy:hover { background: var(--blog-primary); }

.share-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* Related Articles */
.related-articles {
    background: var(--blog-surface);
    padding: 4rem 0;
}

.related-articles h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
}

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

.related-cta {
    text-align: center;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--blog-primary);
    color: var(--blog-primary);
}

.cta-button.secondary:hover {
    background: var(--blog-primary);
    color: #fff;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-dark) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.article-cta h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .article-header {
        padding: 2rem 0;
    }
    
    .article-meta-top {
        flex-wrap: wrap;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}
