/* ===== Multi-Compare Layout ===== */
.mc-layout { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.mc-article { max-width: 100% !important; }

.mc-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #64748b;
  margin: 12px 0 18px; padding: 10px 14px;
  background: #f8fafc; border-radius: 8px;
}
.mc-meta span { display: inline-flex; align-items: center; gap: 4px; }

.mc-hero { margin: 18px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mc-hero img { width: 100%; height: auto; display: block; max-height: 360px; object-fit: cover; }

.mc-intro {
  font-size: 1.05rem; line-height: 1.7; color: #334155;
  padding: 16px 20px; background: #f1f5f9;
  border-left: 4px solid #ea580c; border-radius: 6px;
  margin-bottom: 24px;
}

/* ===== Filters ===== */
.mc-filters {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding: 14px 18px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px;
  margin-bottom: 20px; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mc-filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-filter-label { font-weight: 600; font-size: .88rem; color: #475569; }
.mc-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-chip {
  padding: 6px 12px; border: 1px solid #cbd5e1;
  background: #fff; border-radius: 999px;
  font-size: .82rem; cursor: pointer; transition: all .15s;
}
.mc-chip:hover { background: #fef3c7; border-color: #f59e0b; }
.mc-chip.active { background: #ea580c; color: #fff; border-color: #ea580c; }

/* ===== Comparison Table ===== */
.mc-scroll-hint {
  display: none;
  margin: 16px 0 -6px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #fff7ed 0%, #fed7aa 100%);
  border-left: 3px solid #ea580c;
  border-radius: 6px;
  font-size: .82rem;
  color: #9a3412;
  font-weight: 600;
  animation: mcSwipeHint 1.8s ease-in-out infinite;
}
@keyframes mcSwipeHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.mc-table-wrap {
  overflow-x: auto; margin: 20px 0;
  border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: relative;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
/* Right-edge fade gradient — indicates more content to the right */
.mc-table-wrap::after {
  content: ''; position: sticky; top: 0; right: 0;
  display: block; width: 30px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(234,88,12,.18));
  pointer-events: none;
  margin-left: -30px; float: right;
  transition: opacity .2s;
}
.mc-table-wrap.mc-scrolled-end::after { opacity: 0; }
.mc-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.mc-table thead { background: #0f172a; color: #fff; }
.mc-table th {
  padding: 12px 10px; text-align: left;
  font-size: .85rem; font-weight: 600;
  position: sticky; top: 0; background: #0f172a; z-index: 1;
}
.mc-table th[data-sort] { cursor: pointer; user-select: none; }
.mc-table th[data-sort]:hover { background: #1e293b; }
.mc-table tbody tr { border-bottom: 1px solid #e2e8f0; transition: background .15s; }
.mc-table tbody tr:hover { background: #fff7ed; }
.mc-table tbody tr.mc-hidden { display: none; }
.mc-table td { padding: 10px; font-size: .9rem; vertical-align: middle; }
.mc-rank { text-align: center; font-size: 1.3rem; min-width: 40px; }
.mc-name strong { color: #0f172a; }
.mc-fee { color: #ea580c; font-weight: 600; }
.mc-commit { font-size: .82rem; }
.mc-score { font-size: 1rem; color: #16a34a; text-align: center; }
.mc-btn-detail {
  display: inline-block; padding: 6px 12px;
  background: #ea580c; color: #fff; border-radius: 6px;
  text-decoration: none; font-size: .82rem; white-space: nowrap;
}
.mc-btn-detail:hover { background: #c2410c; }

/* Sticky first column on mobile */
@media (max-width: 768px) {
  .mc-scroll-hint { display: block; }
  .mc-table th:nth-child(2), .mc-table td:nth-child(2) {
    position: sticky; left: 0; background: #fff; z-index: 1;
    box-shadow: 2px 0 4px rgba(0,0,0,.05);
  }
  .mc-table thead th:nth-child(2) { background: #0f172a; }
  /* Stronger fade on mobile to make scroll-ability obvious */
  .mc-table-wrap::after {
    width: 40px; margin-left: -40px;
    background: linear-gradient(90deg, transparent, rgba(234,88,12,.35));
  }
}

/* ===== Section Titles ===== */
.mc-section-title {
  font-size: 1.5rem; color: #0f172a;
  margin: 36px 0 16px; padding-bottom: 8px;
  border-bottom: 3px solid #ea580c;
}

/* ===== Top 3 Cards ===== */
.mc-top3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin-bottom: 32px;
}
.mc-top-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  border-top: 4px solid #cbd5e1;
}
.mc-top-card.mc-rank-1 { border-top-color: #fbbf24; background: linear-gradient(180deg, #fffbeb 0%, #fff 60%); }
.mc-top-card.mc-rank-2 { border-top-color: #94a3b8; background: linear-gradient(180deg, #f8fafc 0%, #fff 60%); }
.mc-top-card.mc-rank-3 { border-top-color: #f97316; background: linear-gradient(180deg, #fff7ed 0%, #fff 60%); }
.mc-top-rank { font-size: 1.1rem; font-weight: 700; color: #475569; margin-bottom: 8px; }
.mc-top-logo { max-width: 100px; max-height: 60px; margin: 8px 0; object-fit: contain; }
.mc-top-card h3 { font-size: 1.2rem; margin: 8px 0; color: #0f172a; }
.mc-top-score { font-size: 1.05rem; color: #16a34a; font-weight: 700; margin-bottom: 8px; }
.mc-top-meta { font-size: .85rem; color: #64748b; margin: 4px 0; }
.mc-pros { list-style: none; padding: 0; margin: 12px 0; font-size: .88rem; }
.mc-pros li { padding: 4px 0; color: #334155; }
.mc-cta {
  display: inline-block; margin-top: 12px;
  padding: 10px 16px; background: #ea580c; color: #fff;
  border-radius: 8px; text-decoration: none; font-weight: 600;
  font-size: .88rem; transition: background .15s;
}
.mc-cta:hover { background: #c2410c; }

/* ===== Detailed Reviews ===== */
.mc-details { margin-bottom: 32px; }
.mc-detail {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; margin-bottom: 18px;
  overflow: hidden; scroll-margin-top: 80px;
}
.mc-detail-head {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.mc-detail-rank { font-size: 1.6rem; min-width: 48px; }
.mc-detail-title { flex: 1; }
.mc-detail-title h3 { margin: 0; font-size: 1.25rem; color: #0f172a; }
.mc-detail-score { font-size: .95rem; color: #16a34a; font-weight: 700; margin-top: 2px; }
.mc-detail-body { padding: 18px; }
.mc-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
  font-size: .9rem; color: #334155; margin-bottom: 18px;
}
.mc-detail-grid > div { padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }
@media (max-width: 600px) {
  .mc-detail-grid { grid-template-columns: 1fr; }
}

/* Bar chart */
.mc-radar { background: #f8fafc; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.mc-radar h4 { margin: 0 0 10px; font-size: 1rem; color: #0f172a; }
.mc-bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: .85rem; }
.mc-bar-label { min-width: 130px; color: #475569; }
.mc-bar-track { flex: 1; height: 14px; background: #e2e8f0; border-radius: 7px; overflow: hidden; }
.mc-bar-fill { height: 100%; background: linear-gradient(90deg, #fb923c, #ea580c); border-radius: 7px; }
.mc-bar-value { min-width: 24px; text-align: right; font-weight: 700; color: #0f172a; }

/* Pros / Cons */
.mc-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 600px) { .mc-pros-cons { grid-template-columns: 1fr; } }
.mc-pros-box, .mc-cons-box {
  padding: 14px; border-radius: 8px; font-size: .9rem;
}
.mc-pros-box { background: #f0fdf4; border-left: 3px solid #16a34a; }
.mc-cons-box { background: #fef2f2; border-left: 3px solid #dc2626; }
.mc-pros-box h4 { margin: 0 0 8px; color: #15803d; }
.mc-cons-box h4 { margin: 0 0 8px; color: #b91c1c; }
.mc-pros-box ul, .mc-cons-box ul { margin: 0; padding-left: 20px; }
.mc-pros-box li, .mc-cons-box li { margin: 4px 0; line-height: 1.5; }

.mc-quote {
  background: #fef3c7; border-left: 4px solid #f59e0b;
  padding: 14px 18px; border-radius: 6px;
  margin: 16px 0; font-style: italic; color: #78350f;
}
.mc-quote cite { display: block; margin-top: 6px; font-size: .82rem; color: #92400e; }

.mc-map { margin: 16px 0; border-radius: 8px; overflow: hidden; }
.mc-map iframe { width: 100%; height: 280px; border: 0; }

.mc-cta-large {
  display: block; margin-top: 18px;
  padding: 14px 20px; background: linear-gradient(135deg, #ea580c, #dc2626);
  color: #fff; text-align: center; text-decoration: none;
  border-radius: 10px; font-weight: 700; font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(234,88,12,.3);
}
.mc-cta-large:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(234,88,12,.4); }
.mc-cta-large[data-no-link] { background: #94a3b8; cursor: not-allowed; box-shadow: none; }
.mc-cta-large[data-no-link]:hover { transform: none; }

/* Methodology */
.mc-method {
  background: #f8fafc; padding: 18px 22px; border-radius: 10px;
  margin: 28px 0; font-size: .95rem; color: #334155; line-height: 1.7;
}
.mc-method h2 { margin-top: 0; color: #0f172a; }

/* FAQ */
.mc-faq { margin: 28px 0; }


/* ===== Verdict / Kết luận ===== */
.mc-verdict { margin: 40px 0; padding: 28px 20px; background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%); border-radius: 16px; border: 2px solid #fdba74; }
.mc-verdict .mc-section-title { margin-top: 0; color: #9a3412; }
.mc-verdict-intro { color: #78350f; font-size: 1rem; margin: 0 0 20px; }
.mc-verdict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mc-verdict-card { background: white; border-radius: 12px; padding: 18px 16px; box-shadow: 0 2px 8px rgba(154,52,18,.08); border-left: 4px solid #ea580c; transition: transform .2s, box-shadow .2s; }
.mc-verdict-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(154,52,18,.15); }
.mc-verdict-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.mc-verdict-label { font-size: .82rem; color: #78350f; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.mc-verdict-name { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.mc-verdict-score { font-size: .9rem; color: #ea580c; font-weight: 600; margin-bottom: 8px; }
.mc-verdict-why { font-size: .9rem; color: #475569; line-height: 1.5; margin: 0 0 10px; }
.mc-verdict-link { font-size: .85rem; color: #ea580c; text-decoration: none; font-weight: 600; }
.mc-verdict-link:hover { text-decoration: underline; }
.mc-verdict-summary { margin-top: 20px; padding: 16px; background: rgba(255,255,255,.7); border-radius: 10px; font-size: .95rem; color: #44403c; line-height: 1.6; }
