/* SpannerBot Article Styles - Shared across all blog articles */

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8B5E;
    --secondary: #1A1A2E;
    --accent: #16213E;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A68;
    --text-light: #6B6B8A;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FC;
    --bg-subtle: #EEF0F5;
    --border: #E1E4EB;
    --success: #22C55E;
    --warning: #F59E0B;
    --info: #3B82F6;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8B5E 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.05);
    --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 8px 30px rgba(26, 26, 46, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-main); font-size: 18px; line-height: 1.8; color: var(--text-primary); background: var(--bg-white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 44px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 16px; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; border-radius: var(--radius-sm); }
.nav-link:hover { color: var(--primary); background: var(--bg-light); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font-weight: 600; font-size: 0.9rem; border-radius: var(--radius-md); border: none; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--gradient-primary); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Article Hero */
.article-hero { padding: 120px 24px 60px; background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%); }
.article-hero-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.article-category { display: inline-block; padding: 6px 14px; background: var(--primary); color: white; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.article-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; color: var(--text-primary); }
.article-excerpt { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--primary); }
.author-name { font-weight: 600; color: var(--text-primary); }
.author-title { font-size: 0.85rem; color: var(--text-light); }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text-light); }

/* Definition Box - GEO optimised */
.definition-box { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 24px; margin: 32px 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.definition-box strong { color: var(--text-primary); font-size: 1.1rem; }
.definition-box p { margin-top: 8px; color: var(--text-secondary); }

/* Article Container */
.article-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 280px; gap: 60px; }
.article-content { max-width: 100%; }
.article-content h2 { font-size: 1.75rem; font-weight: 700; margin: 48px 0 20px; color: var(--text-primary); padding-top: 24px; border-top: 1px solid var(--border); }
.article-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 { font-size: 1.35rem; font-weight: 600; margin: 32px 0 16px; color: var(--text-primary); }
.article-content p { margin-bottom: 20px; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; color: var(--text-secondary); }
.article-content li { margin-bottom: 12px; }
.article-content strong { color: var(--text-primary); }

/* App/Tool Cards */
.app-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin: 32px 0; transition: var(--transition); }
.app-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.app-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.app-logo { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--bg-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-logo svg { width: 32px; height: 32px; stroke: var(--primary); fill: none; }
.app-info h3 { font-size: 1.5rem; margin: 0 0 8px; }
.app-rating { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--warning); font-size: 1.1rem; }
.rating-text { font-weight: 600; color: var(--text-primary); }
.app-badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.badge { padding: 4px 10px; font-size: 0.75rem; font-weight: 600; border-radius: 50px; text-transform: uppercase; }
.badge-best { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.badge-value { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.badge-popular { background: rgba(255, 107, 53, 0.1); color: var(--primary); }
.app-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 20px 0; }
.detail-item { text-align: center; }
.detail-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; margin-bottom: 4px; }
.detail-value { font-weight: 700; color: var(--text-primary); }
.app-description { color: var(--text-secondary); margin-bottom: 20px; }
.app-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pros h4, .cons h4 { font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pros h4 { color: var(--success); }
.pros h4 svg { stroke: var(--success); }
.cons h4 { color: #EF4444; }
.cons h4 svg { stroke: #EF4444; }
.pros ul, .cons ul { list-style: none; margin: 0; padding: 0; }
.pros li, .cons li { padding-left: 20px; position: relative; margin-bottom: 8px; font-size: 0.95rem; }
.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: bold; }
.cons li::before { content: '✗'; position: absolute; left: 0; color: #EF4444; font-weight: bold; }
.app-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.app-cta .btn { flex: 1; justify-content: center; min-width: 150px; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.95rem; overflow-x: auto; display: block; }
.comparison-table th, .comparison-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.comparison-table th { background: var(--bg-light); font-weight: 600; color: var(--text-primary); }
.comparison-table tr:hover { background: var(--bg-light); }
.check { color: var(--success); }
.cross { color: #EF4444; }

/* Sidebar */
.sidebar { position: sticky; top: 96px; height: fit-content; }
.toc { background: var(--bg-light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.toc-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 12px; }
.toc-list a { color: var(--text-secondary); font-size: 0.9rem; display: block; padding: 4px 0; border-left: 2px solid transparent; padding-left: 12px; transition: var(--transition); }
.toc-list a:hover, .toc-list a.active { color: var(--primary); border-left-color: var(--primary); }
.sidebar-cta { background: var(--gradient-dark); border-radius: var(--radius-lg); padding: 24px; color: white; text-align: center; }
.sidebar-cta h4 { color: white; margin-bottom: 12px; }
.sidebar-cta p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* FAQ Section */
.faq-section { margin: 48px 0; padding: 32px; background: var(--bg-light); border-radius: var(--radius-lg); }
.faq-section h2 { border-top: none !important; padding-top: 0 !important; margin-top: 0 !important; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { margin-top: 12px; color: var(--text-secondary); }

/* Related Articles */
.related-articles { margin: 60px 0; padding-top: 40px; border-top: 1px solid var(--border); }
.related-articles h2 { border-top: none !important; padding-top: 0 !important; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.related-card { background: var(--bg-light); border-radius: var(--radius-md); padding: 20px; transition: var(--transition); }
.related-card:hover { background: var(--bg-subtle); }
.related-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }
.related-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* Footer */
.footer { background: var(--secondary); color: white; padding: 60px 24px 32px; margin-top: 80px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 16px; font-size: 0.9rem; }
.footer-title { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; color: rgba(255,255,255,0.4); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1024px) {
    .article-container { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}
/* Mobile Menu */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; z-index: 1001; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav.mobile-open { display: flex !important; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg-white); padding: 24px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 30px rgba(26, 26, 46, 0.12); }
.nav.mobile-open .nav-link { padding: 12px 0; width: 100%; }
.nav.mobile-open .btn { margin-top: 16px; width: 100%; justify-content: center; }

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav { display: none; }
    .app-details { grid-template-columns: 1fr; gap: 12px; }
    .app-pros-cons { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-meta { flex-direction: column; align-items: flex-start; }
    .comparison-table th, .comparison-table td { padding: 12px 8px; font-size: 0.85rem; }
}
