/* AfroKit — Shared Component Styles */

/* ========== ARTICLE LAYOUT ========== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 1.5rem;
}
@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--border); }

/* ========== ARTICLE CONTENT ========== */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 2.25rem 0 .85rem;
  letter-spacing: -.01em;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(13,110,253,.1);
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.75rem 0 .6rem;
}
.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5em;
}
.article-content li {
  margin-bottom: .6rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-content table th {
  background: var(--dark);
  color: var(--white);
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .05em;
}
.article-content table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-content table tr:last-child td { border-bottom: none; }
.article-content table tr:hover td { background: rgba(13,110,253,.03); }
.article-content blockquote {
  background: rgba(13,110,253,.06);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}
.article-content strong { color: var(--dark); }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary-dark); }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ========== SIDEBAR ========== */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.sidebar-widget h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { margin-bottom: .4rem; font-size: .9rem; }
.sidebar-widget ul li a {
  color: var(--text);
  display: block;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1.4;
}
.sidebar-widget ul li a:hover {
  background: rgba(13,110,253,.08);
  color: var(--primary);
}
.sidebar-tool-price {
  display: block;
  font-weight: 700;
  color: var(--success);
  font-size: .82rem;
}

/* ========== AFFILIATE DISCLOSURE ========== */
.affiliate-disclosure {
  background: rgba(245,158,11,.08);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
}
.affiliate-disclosure strong { color: var(--accent-dark); }

/* ========== ARTICLE CTA BOX ========== */
.article-cta-box {
  background: linear-gradient(135deg, #0d6efd, #084298);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.article-cta-box h3 { color: var(--white) !important; font-size: 1.3rem; margin-bottom: .75rem; border-bottom: none !important; padding-bottom: 0 !important; }
.article-cta-box p { opacity: .9; margin-bottom: 1.25rem; }

/* ========== PROS / CONS ========== */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
@media (max-width: 640px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}
.pros-cons-grid .pros,
.pros-cons-grid .cons {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.pros-cons-grid .pros { border-top: 3px solid var(--success); }
.pros-cons-grid .cons { border-top: 3px solid var(--danger); }
.pros-cons-grid h4 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.pros-cons-grid .pros h4 { color: var(--success); }
.pros-cons-grid .cons h4 { color: var(--danger); }
.pros-cons-grid ul { padding-left: 1.2em; }
.pros-cons-grid li { font-size: .95rem; line-height: 1.6; margin-bottom: .4rem; }

/* ========== VERDICT BOX ========== */
.verdict-box {
  background: rgba(25,135,84,.08);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.verdict-box h3 { color: var(--success); font-size: 1.2rem; margin-bottom: .75rem; }

/* ========== TABLE OF CONTENTS ========== */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.toc h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { margin-bottom: .4rem; font-size: .9rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

/* ========== UPDATE BANNER ========== */
.update-banner {
  background: rgba(25,135,84,.08);
  border: 1px solid rgba(25,135,84,.2);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ========== READING PROGRESS BAR ========== */
.reading-progress {
  position: fixed;
  top: 56px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
  transition: width .1s linear;
}

/* ========== AUTHOR BOX ========== */
.author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  align-items: center;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.author-info h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.author-info p { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ========== RELATED ARTICLES ========== */
.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.related-article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}
.related-article-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.related-article-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: .75rem;
}
.related-article-card .meta {
  font-size: .8rem;
  color: var(--muted);
}

/* ========== PAYMENT TEST TABLE ========== */
.payment-test-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.payment-test-table th {
  background: var(--dark);
  color: var(--white);
  padding: .85rem .9rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .04em;
}
.payment-test-table td {
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.payment-test-table tr:last-child td { border-bottom: none; }
.payment-test-table tr:hover td { background: rgba(13,110,253,.03); }
.pay-badge {
  display: inline-block;
  padding: .2em .55em;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pay-badge-works { background: rgba(25,135,84,.14); color: var(--success); }
.pay-badge-partial { background: rgba(245,158,11,.16); color: var(--accent-dark); }
.pay-badge-fails { background: rgba(220,53,69,.12); color: var(--danger); }

/* ========== SCAM SEVERITY ========== */
.severity-badge {
  display: inline-block;
  padding: .2em .6em;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.severity-critical { background: rgba(220,53,69,.12); color: var(--danger); }
.severity-high { background: rgba(245,158,11,.16); color: var(--accent-dark); }
.severity-medium { background: rgba(13,110,253,.12); color: var(--primary); }

/* ========== TREND INDICATOR ========== */
.trend-up { color: var(--success); font-weight: 700; }
.trend-down { color: var(--danger); font-weight: 700; }
.trend-flat { color: var(--muted); font-weight: 700; }

/* ========== FAQ ========== */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.active .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--text); line-height: 1.75; font-size: .98rem; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h5 { color: var(--white); font-size: .95rem; margin-bottom: .85rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
}

/* ========== ANIMATION ========== */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity .6s ease, transform .6s ease;
}

/* ========== TOOL LOGO COLOURS ========== */
.tool-logo.jasper { color: #E4572E; }
.tool-logo.elevenlabs { color: #000000; }
.tool-logo.cursor { color: #1a1a1a; }
.tool-logo.grammarly { color: #15C39A; }
.tool-logo.canva { color: #00C4CC; }
.tool-logo.hostinger { color: #673DE6; }
.tool-logo.synthesia { color: #0B0B0B; }
.tool-logo.beacons { color: #5B21B6; }
.tool-logo.pictory { color: #5B21B6; }
.tool-logo.zapier { color: #FF4F00; }
.tool-logo.paystack { color: #0A0A0A; }
.tool-logo.flutterwave { color: #F0B90B; }

/* ========== PRINT ========== */
@media print {
  .site-header, .site-footer, .article-sidebar, .reading-progress { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  body { background: #fff; }
}
