/* SEO Blog Styles - Clean, fast-loading, modern */
:root {
    --primary: #1a73e8;
    --text: #202124;
    --text-light: #5f6368;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #dadce0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --max-width: 800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-size: 17px;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: var(--max-width);
    margin: 16px auto;
    padding: 0 20px;
    font-size: 0.85em;
    color: var(--text-light);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li::after { content: '›'; margin: 0 6px; color: var(--border); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Article */
.blog-article {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.article-header { margin-bottom: 32px; }

.featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.category-badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
}

/* Content */
.article-content h1 { font-size: 2em; margin: 0.5em 0; line-height: 1.3; }
.article-content h2 { font-size: 1.5em; margin: 1.5em 0 0.5em; color: var(--text); border-bottom: 2px solid var(--bg-light); padding-bottom: 8px; }
.article-content h3 { font-size: 1.25em; margin: 1.2em 0 0.4em; }
.article-content h4 { font-size: 1.1em; margin: 1em 0 0.3em; }
.article-content p { margin: 0.8em 0; }
.article-content ul, .article-content ol { margin: 0.8em 0; padding-left: 28px; }
.article-content li { margin: 0.4em 0; }
.article-content a { color: var(--primary); }
.article-content strong { color: var(--text); }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 1em 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.article-content th, .article-content td { padding: 10px; border: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--bg-light); font-weight: 600; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-content pre { background: var(--bg-light); padding: 16px; border-radius: var(--radius); overflow-x: auto; }

/* FAQ Section */
.faq-section { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--bg-light); }
.faq-section h2 { margin-bottom: 16px; }
.faq-item { margin-bottom: 20px; padding: 16px; background: var(--bg-light); border-radius: var(--radius); }
.faq-item h3 { font-size: 1.05em; margin-bottom: 8px; color: var(--text); }
.faq-item p { color: var(--text-light); margin: 0; font-size: 0.95em; }

/* Tags */
.tags-section { margin: 24px 0; }
.tag {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin: 4px 4px 4px 0;
    color: var(--text-light);
}

/* Author */
.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 32px 0;
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; }
.author-name { font-weight: 600; display: block; }
.author-bio { font-size: 0.9em; color: var(--text-light); margin-top: 4px; }

/* NAP Section */
.nap-section {
    margin: 32px 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.nap-section h3 { margin-bottom: 8px; }
.nap-section p { margin: 4px 0; font-size: 0.95em; }
.nap-section a { color: var(--primary); }

/* Related Blogs */
.related-blogs { max-width: var(--max-width); margin: 40px auto; padding: 0 20px; }
.related-blogs h2 { margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.related-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: var(--shadow); }
.related-card h3 { font-size: 1em; margin-bottom: 8px; color: var(--primary); }
.related-card p { font-size: 0.85em; color: var(--text-light); }

/* Blog Listing */
.site-header { max-width: var(--max-width); margin: 40px auto 20px; padding: 0 20px; }
.site-header h1 { font-size: 2em; }
.site-description { color: var(--text-light); margin-top: 8px; }

.blog-listing { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.blog-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.blog-card:last-child { border-bottom: none; }
.blog-card h2 { font-size: 1.3em; margin-bottom: 8px; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--primary); }
.card-excerpt { color: var(--text-light); font-size: 0.95em; margin-bottom: 8px; }
.card-meta { display: flex; gap: 12px; font-size: 0.85em; color: var(--text-light); }
.card-keyword { background: var(--bg-light); padding: 2px 8px; border-radius: 4px; }
.card-image { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }

.page-header { max-width: var(--max-width); margin: 20px auto; padding: 0 20px; }
.no-results { text-align: center; color: var(--text-light); padding: 40px; }

/* Footer */
.site-footer {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

/* RTL Support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .breadcrumbs ol { flex-direction: row-reverse; }
[dir="rtl"] .article-content ul, [dir="rtl"] .article-content ol { padding-left: 0; padding-right: 28px; }

/* Responsive */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .article-content h1 { font-size: 1.6em; }
    .article-content h2 { font-size: 1.3em; }
    .related-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
}

