/* ═══════════════════════════════════════════════════════
   NewVib v2 — Feature CSS
   Add this to style.css or load separately
══════════════════════════════════════════════════════════ */

/* ── AFFILIATE PRODUCT CARDS ─────────────────────────── */
.aff-disclosure {
  background: #fff3cd; border: 1px solid #ffc107;
  color: #856404; font-size: 11px; padding: 6px 12px;
  border-radius: var(--radius); margin-bottom: 12px;
}
.aff-badge-top {
  display: inline-block; background: var(--accent); color: white;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; padding: 3px 10px; border-radius: 2px;
  margin-bottom: 12px;
}
.aff-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-md); margin: var(--s5) 0; overflow: hidden;
}
.aff-card-inner { display: flex; gap: var(--s5); padding: var(--s5); }
@media (max-width: 640px) { .aff-card-inner { flex-direction: column; } }
.aff-card-img-wrap { width: 200px; flex-shrink: 0; }
.aff-card-img-wrap img { width: 100%; border-radius: var(--radius); }
.aff-card-img-placeholder { width: 200px; height: 150px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 48px; border-radius: var(--radius); }
.aff-card-content { flex: 1; min-width: 0; }
.aff-card-name { font-family: var(--font-serif); font-size: var(--text-xl); margin-bottom: var(--s2); }
.aff-rating-row { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s3); }
.stars { display: inline-flex; gap: 1px; }
.star--full  { color: #f5b731; }
.star--half  { color: #f5b731; opacity: .6; }
.star--empty { color: var(--border-dark); }
.aff-review-count { font-size: var(--text-xs); color: var(--text-muted); }
.aff-price { font-size: var(--text-xl); font-weight: 800; color: var(--text-primary); }
.aff-desc { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--s4); }
.aff-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin: var(--s4) 0; font-size: var(--text-sm); }
.aff-pros-col strong { color: #28a745; display: block; margin-bottom: var(--s2); }
.aff-cons-col strong { color: #dc3545; display: block; margin-bottom: var(--s2); }
.aff-pro, .aff-con { list-style: none; margin-bottom: 4px; }
.aff-verdict {
  background: var(--surface-2); border-left: 4px solid var(--accent);
  padding: var(--s3) var(--s4); font-size: var(--text-sm); margin: var(--s4) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.aff-btn-full {
  display: block; background: var(--accent); color: white; text-align: center;
  padding: 12px; border-radius: var(--radius); font-weight: 700; font-size: var(--text-sm);
  text-decoration: none; transition: background var(--t-fast); margin-top: var(--s4);
}
.aff-btn-full:hover { background: var(--accent-dark); color: white; }
.aff-legal { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.aff-btn {
  display: inline-flex; align-items: center;
  background: var(--accent); color: white; padding: 6px 14px;
  border-radius: var(--radius); font-size: var(--text-xs); font-weight: 700;
  text-decoration: none; transition: background var(--t-fast); white-space: nowrap;
}
.aff-btn:hover { background: var(--accent-dark); color: white; }
.aff-badge { background: var(--accent); color: white; font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; display: inline-block; margin-bottom: 4px; }

/* Compact card */
.aff-card--compact {
  display: flex; gap: var(--s3); padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: var(--s3);
}
.aff-card--compact .aff-card-img-wrap { width: 80px; flex-shrink: 0; }
.aff-card--compact .aff-card-img { width: 100%; border-radius: 4px; }
.aff-card--compact .aff-card-name { font-size: var(--text-sm); font-weight: 700; margin-bottom: 4px; }
.aff-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 640px) { .aff-cards-grid { grid-template-columns: 1fr; } }
.aff-products-section { margin: var(--s6) 0; padding-top: var(--s5); border-top: 1px solid var(--border); }

/* Comparison table */
.aff-compare-table-wrap { overflow-x: auto; margin: var(--s5) 0; }
.aff-compare-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.aff-compare-table th { background: var(--surface-2); padding: 10px 14px; text-align: left; font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.aff-compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.aff-best-row td { background: #fff8f8; font-weight: 700; }
.aff-table-note { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ── SPONSORED CONTENT ────────────────────────────────── */
.sponsored-badge {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s3) var(--s4); margin-bottom: var(--s5);
}
.sponsored-badge-inner { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.sponsored-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); background: var(--border); padding: 2px 8px; border-radius: 2px; }
.sponsored-by { font-size: var(--text-sm); color: var(--text-secondary); }
.sponsored-by a { color: var(--accent); }
.sponsored-info-btn { background: var(--border); border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.sponsored-disclosure { padding: var(--s3) 0 0; font-size: var(--text-xs); color: var(--text-muted); }
.affiliate-disclosure { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius); margin: var(--s4) 0; font-size: var(--text-xs); }
.affiliate-disclosure p { color: #856404; margin: 0; }

/* ── BOOKMARKS / READING LIST ─────────────────────────── */
.bookmark-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius);
  font-size: var(--text-xs); font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all var(--t-fast);
}
.bookmark-btn:hover { border-color: var(--accent); color: var(--accent); }
.bookmark-btn.bookmarked { background: var(--accent); color: white; border-color: var(--accent); }
.reading-list-badge {
  position: absolute; top: -6px; right: -6px; background: var(--accent); color: white;
  font-size: 10px; font-weight: 800; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rl-item:hover { background: var(--surface-2); }
.rl-title:hover { color: var(--accent); }

/* ── DIFF VIEWER ──────────────────────────────────────── */
ins.diff-add { background: #d4edda; text-decoration: none; padding: 1px 2px; border-radius: 2px; }
del.diff-del { background: #f8d7da; padding: 1px 2px; border-radius: 2px; }

/* ── AUTO-INTERNAL LINKS ──────────────────────────────── */
.article-body a.auto-internal-link {
  color: var(--accent); text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px;
}
.article-body a.manual-internal-link {
  color: var(--accent); border-bottom: 1px solid rgba(200,16,46,.3);
  text-decoration: none;
}

/* ── SEARCH ENHANCEMENTS ──────────────────────────────── */
mark.search-highlight { background: rgba(200,16,46,.15); color: var(--accent); padding: 1px 2px; border-radius: 2px; }
.search-engine-badge { font-size: 10px; color: var(--text-muted); background: var(--surface-2); padding: 2px 6px; border-radius: 2px; }

/* ── LANGUAGE SWITCHER ────────────────────────────────── */
.lang-switcher { display: flex; gap: 6px; align-items: center; }
.lang-btn { font-size: var(--text-xs); padding: 3px 8px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); }
.lang-btn.active, .lang-btn:hover { border-color: var(--accent); color: var(--accent); }
html[dir="rtl"] .article-body { direction: rtl; text-align: right; }
html[dir="rtl"] .article-subtitle { border-left: none; border-right: 4px solid var(--accent); padding-left: 0; padding-right: var(--s4); }

/* ── AFFILIATE PAGE TYPE BADGE ────────────────────────── */
.article-type-badge {
  display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; padding: 2px 8px; border-radius: 2px; margin-right: var(--s2);
}
.type-sponsored { background: #1a1a2e; color: white; }
.type-affiliate { background: #ff9800; color: white; }
.type-review    { background: #9c27b0; color: white; }
.type-guide     { background: #2196f3; color: white; }