/**
 * Standard Blog Article Styles
 * Matches pdf-tools-steal-data.html template
 */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.blog-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-nav-back {
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-nav-back:hover {
    text-decoration: underline;
}

/* TTS Controls */
.tts-controls {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
    background: #0f172a;
    padding: 4rem 2rem;
    color: white;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: white;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 0.875rem;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Collapsible TOC */
.toc-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
}

.toc-header:hover {
    background: #f1f5f9;
}

.toc-header h2 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc-toggle {
    transition: transform 0.2s;
}

.toc-toggle.expanded {
    transform: rotate(180deg);
}

.toc-content {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.toc-content.show {
    display: block;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.toc-list a:hover {
    color: #4f46e5;
}

/* Article Content */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 3rem 0 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.25rem;
    line-height: 1.75;
    color: #374151;
}

.article-content li {
    margin: 0.375rem 0;
}

.article-content code {
    font-family: 'JetBrains Mono', monospace;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #0f172a;
}

/* Alert Boxes */
.callout {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: #eff6ff;
    border-color: #3b82f6;
}

.callout-info .callout-title {
    color: #1e40af;
}

.callout-warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.callout-warning .callout-title {
    color: #92400e;
}

.callout-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.callout-content {
    font-size: 0.9rem;
    color: #374151;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tbody tr:hover {
    background: #f9fafb;
}

/* FAQ */
.faq-section {
    margin: 3rem 0;
}

.faq-section h2 {
    border-top: none !important;
    padding-top: 0 !important;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    cursor: pointer;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.faq-toggle {
    transition: transform 0.2s;
    color: #6b7280;
}

.faq-toggle.expanded {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.faq-answer.show {
    display: block;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* CTA Box */
.cta-box {
    background: #0f172a;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: white;
}

.cta-box p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.cta-button:hover {
    background: #4338ca;
}

/* Related Posts - Full Width Section */
.related-posts {
    margin: 4rem -2rem 0 -2rem;
    padding: 3rem 2rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.related-posts h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 1400px;
    border: none !important;
    padding: 0 !important;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.related-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    background: white;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.related-card-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-top: 0.5rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .article-header {
        padding: 2.5rem 1.5rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-container {
        padding: 2rem 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}