/* infiniteagent.io — affiliate blog styles */

/* Newsletter CTA */
.newsletter-cta { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; border-radius: 12px; padding: 2rem; margin: 3rem 0; text-align: center; }
.newsletter-cta h3 { font-size: 1.4rem; margin-bottom: .6rem; color: #1e3a8a; }
.newsletter-cta p { color: #475569; margin-bottom: 1.2rem; }
.newsletter-form { display: flex; gap: .5rem; max-width: 440px; margin: 0 auto 1rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 200px; padding: .8rem 1rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.newsletter-form button { background: #2563eb; color: #fff; border: 0; padding: .8rem 1.5rem; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 1rem; }
.newsletter-form button:hover { background: #1d4ed8; }
.newsletter-note { font-size: .8rem; color: #64748b; margin: 0; }

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

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --text: #1a1a2e;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 8px;
  --max-w: 1200px;
}

body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 1rem; }

.skip-link { position: absolute; transform: translateY(-100%); background: var(--brand); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { transform: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; background: var(--bg); z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--brand); }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--text); }
.nav-cta { background: var(--brand); color: #fff !important; padding: .4rem 1rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--brand-dark) !important; }

/* Article layout */
.article-layout { padding: 3rem 0; }
.article-layout .container { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }

.article-header { margin-bottom: 2rem; }
.article-meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.article-category { background: #eff6ff; color: var(--brand); padding: .2rem .7rem; border-radius: 99px; font-weight: 600; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.25; margin-bottom: 1rem; font-weight: 800; }
.article-excerpt { font-size: 1.1rem; color: var(--muted); line-height: 1.6; }

/* TOC */
.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.toc-title { font-weight: 700; margin-bottom: .75rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.toc ol { padding-left: 1.25rem; }
.toc li { margin: .35rem 0; }
.toc a { color: var(--brand); text-decoration: none; font-size: .95rem; }
.toc a:hover { text-decoration: underline; }

/* Article body */
.article-body section { margin: 2.5rem 0; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin: .4rem 0; }
.article-body a { color: var(--brand); }
.article-body strong { font-weight: 600; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.article-body th { background: var(--bg-alt); padding: .75rem 1rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
.article-body td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.article-body tr:hover td { background: var(--bg-alt); }

/* CTA boxes */
.cta-box { border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.cta-primary { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; }
.cta-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: .5rem; }
.cta-box h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.cta-box p { color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }
.cta-btn { display: inline-block; background: var(--brand); color: #fff; padding: .65rem 1.5rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .95rem; }
.cta-btn:hover { background: var(--brand-dark); }
.cta-note { font-size: .8rem; color: var(--muted); margin-top: .5rem !important; }

/* FAQ */
.faq-section { border-top: 2px solid var(--border); padding-top: 2rem; margin-top: 3rem; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.faq-item p { color: var(--muted); font-size: .95rem; }

/* Related */
.related { margin-top: 3rem; padding: 1.5rem; background: var(--bg-alt); border-radius: var(--radius); }
.related h3 { margin-bottom: 1rem; font-size: 1rem; font-weight: 700; }
.related ul { list-style: none; padding: 0; }
.related li { margin: .5rem 0; }
.related a { color: var(--brand); text-decoration: none; font-size: .95rem; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: .5rem; }
.sidebar-card h4 { font-size: 1rem; margin-bottom: .5rem; }
.sidebar-card p { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.sidebar-btn { display: block; text-align: center; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); text-decoration: none; font-size: .875rem; font-weight: 600; }
.sidebar-btn:hover { background: var(--brand-dark); }

/* Blog index */
.blog-index { padding: 3rem 0; }
.blog-index h1 { font-size: 2rem; margin-bottom: .75rem; }
.blog-intro { color: var(--muted); margin-bottom: 2.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.75rem; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.card-meta { display: flex; gap: .75rem; font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.card-cat { color: var(--brand); font-weight: 600; }
.card h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.card h2 a { text-decoration: none; color: var(--text); }
.card h2 a:hover { color: var(--brand); }
.card p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.read-more { font-size: .875rem; color: var(--brand); text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 4rem; }
.site-footer p { font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Homepage */
.home-hero { padding: 5rem 0 4rem; text-align: center; background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 700px; margin: 0 auto 1rem; }
.home-hero p { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 2rem; }
.home-cta { display: inline-block; background: var(--brand); color: #fff; padding: .9rem 2rem; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 1.05rem; }

/* Responsive */
@media (max-width: 768px) {
  .article-layout .container { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: 1fr; }
}
