/* AfricaHostHub — 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-host-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);
}
