/* ===== ARTICLE PAGE STYLES ===== */
/* Extends css/style.css — import both */

/* ===== ARTICLE HERO ===== */
.article-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px 32px;
}
.article-hero-inner { max-width: 860px; margin: 0 auto; }
.article-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(233,79,27,0.08);
  color: var(--orange);
  border: 1px solid rgba(233,79,27,0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 14px;
}
.article-hero .subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 760px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}
.author-info { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #c73d0e);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.author-name { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.author-role { font-size: 0.75rem; color: var(--gray); }
.meta-divider { width: 1px; height: 32px; background: var(--border); }
.meta-item { font-size: 0.82rem; color: var(--gray); }
.meta-item strong { color: var(--navy); }
.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--gray);
}
.social-proof-avatars { display: flex; }
.social-proof-avatars span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  margin-left: -8px;
  color: var(--white);
  font-weight: 700;
}
.social-proof-avatars span:first-child { margin-left: 0; }
.expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #15803d;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-main { min-width: 0; }
.article-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }

/* ===== TABLE OF CONTENTS ===== */
.toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.toc h3 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 14px; }
.toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.toc ol li { font-size: 0.88rem; }
.toc ol li a { color: var(--orange); font-weight: 500; text-decoration: none; }
.toc ol li a:hover { text-decoration: underline; }

/* ===== ARTICLE BODY TYPOGRAPHY ===== */
.article-content { font-size: 0.97rem; line-height: 1.82; color: #2d3748; }
.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-content h2:first-of-type { margin-top: 32px; }
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}
.article-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 18px; }
.article-content ul li, .article-content ol li { margin-bottom: 8px; }
.article-content strong { color: var(--navy); }
.article-content a { color: var(--orange); text-decoration: none; font-weight: 500; }
.article-content a:hover { text-decoration: underline; }

/* ===== CALLOUT BOX ===== */
.callout-box {
  background: rgba(233,79,27,0.05);
  border: 1px solid rgba(233,79,27,0.2);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout-box p { margin: 0; font-size: 0.92rem; }
.callout-box strong { color: var(--orange); }
.callout-box.blue { background: rgba(22,33,62,0.04); border-color: var(--navy); border-left-color: var(--navy); }
.callout-box.green { background: rgba(34,197,94,0.05); border-color: rgba(34,197,94,0.3); border-left-color: #22c55e; }
.callout-box.gold { background: rgba(245,166,35,0.06); border-color: rgba(245,166,35,0.3); border-left-color: var(--gold); }

/* ===== STAT BOX ===== */
.stat-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
}
.stat-box h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #a8b4c8; margin-bottom: 16px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.stat-row:last-child { border-bottom: none; }
.stat-row span:first-child { color: #a8b4c8; font-size: 0.88rem; }
.stat-row span:last-child { font-weight: 700; color: var(--gold); }

/* ===== COMPARISON TABLE ===== */
.comp-table-wrap { overflow-x: auto; margin: 28px 0; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.comp-table th {
  background: var(--navy);
  color: var(--white);
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  vertical-align: middle;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: rgba(233,79,27,0.03); }
.comp-table tr.top-row td:first-child { border-left: 3px solid var(--gold); }
.comp-table .check { color: #22c55e; font-weight: 700; }
.comp-table .cross { color: #ef4444; }
.comp-table .partial { color: var(--gold); }

/* ===== PRODUCT REVIEW CARD ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 36px 0;
  box-shadow: var(--shadow);
}
.product-card-header {
  background: var(--light);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.product-rank {
  width: 36px; height: 36px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
  flex-shrink: 0;
}
.product-rank.gold-rank { background: var(--gold); color: var(--navy); }
.product-title-block { flex: 1; }
.product-type-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 4px;
}
.product-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.product-position {
  display: inline-block;
  background: rgba(233,79,27,0.1);
  color: var(--orange);
  border: 1px solid rgba(233,79,27,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.product-position.best { background: rgba(245,166,35,0.12); color: #b45309; border-color: rgba(245,166,35,0.3); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.stars-display { color: var(--gold); font-size: 1.1rem; }
.rating-number { font-size: 1rem; font-weight: 800; color: var(--navy); }
.rating-count { font-size: 0.78rem; color: var(--gray); }

.product-card-body { padding: 24px; }
.product-card-body p { font-size: 0.95rem; line-height: 1.8; color: #374151; margin-bottom: 16px; }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.pros-box, .cons-box {
  border-radius: 8px;
  padding: 16px 18px;
}
.pros-box { background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.2); }
.cons-box { background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.2); }
.pros-box h4 { color: #15803d; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin-bottom: 10px; }
.cons-box h4 { color: #b91c1c; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin-bottom: 10px; }
.pros-box ul, .cons-box ul { padding-left: 0; margin: 0; }
.pros-box ul li, .cons-box ul li { display: flex; gap: 8px; font-size: 0.85rem; margin-bottom: 7px; line-height: 1.4; }
.pros-box ul li::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.cons-box ul li::before { content: '✗'; color: #ef4444; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.bottom-line {
  background: rgba(233,79,27,0.05);
  border-left: 3px solid var(--orange);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.bottom-line strong { color: var(--orange); }

/* ===== FAQ ===== */
.faq-section { margin: 40px 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  gap: 12px;
}
.faq-question::after { content: '+'; color: var(--orange); font-size: 1.3rem; flex-shrink: 0; font-weight: 400; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #374151;
  background: var(--white);
}
.faq-item.open .faq-answer { display: block; }

/* ===== RELATED GUIDES ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.related-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); }
.related-card h4 { font-size: 0.92rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.related-card p { font-size: 0.8rem; color: var(--gray); }
.related-card .arrow { font-size: 0.82rem; color: var(--orange); font-weight: 600; margin-top: auto; }

/* ===== ARTICLE CTA ===== */
.article-cta {
  background: linear-gradient(135deg, var(--navy), #0f3460);
  color: var(--white);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}
.article-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.article-cta p { color: #a8b4c8; margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* h4 used as widget header (direct child of sidebar-widget) */
.sidebar-widget > h4 {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.sidebar-widget > p {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.6;
  padding: 12px 16px 0;
}
.sidebar-widget > ul {
  list-style: none;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-widget > ul li {
  font-size: 0.83rem;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.sidebar-widget > ul li:last-child { border-bottom: none; }

/* Explicit widget-header / widget-body / widget-list markup */
.widget-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.widget-body { padding: 16px; }
.widget-list { display: flex; flex-direction: column; gap: 10px; }
.widget-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--navy);
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.widget-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.widget-list-item .rank { color: var(--orange); font-weight: 800; font-size: 0.9rem; width: 18px; flex-shrink: 0; }
.widget-list-item .score { color: var(--gold); font-weight: 700; margin-left: auto; font-size: 0.8rem; }

/* Orange newsletter widget */
.sidebar-newsletter { background: var(--orange); color: var(--white); border-radius: var(--radius); padding: 20px; text-align: center; }
.sidebar-newsletter h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 8px; }
.sidebar-newsletter p { font-size: 0.8rem; opacity: 0.9; margin-bottom: 14px; }
.sidebar-newsletter input {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  outline: none;
  box-sizing: border-box;
}
.sidebar-newsletter button {
  width: 100%;
  padding: 10px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Fix: .newsletter-form inside sidebar must stack vertically, not horizontal */
.article-sidebar .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: none;
  padding: 12px 16px 16px;
}
.article-sidebar .newsletter-form input {
  flex: none;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.85rem;
  box-sizing: border-box;
}
.article-sidebar .newsletter-form button,
.article-sidebar .newsletter-form .btn {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .article-meta-bar { gap: 12px; }
  .social-proof { margin-left: 0; }
}
@media (max-width: 600px) {
  .article-hero { padding: 24px 16px; }
  .article-content h2 { font-size: 1.3rem; }
  .product-card-header { flex-direction: column; }
  .article-cta { padding: 28px 20px; }
}
