/* =============================================================================
   Exchange4Media — AI Topic Platform v2
   File: public/css/ai-topic.css
   Description: Complete styles for AI Topic landing pages
   Author: Exchange4Media Frontend Team
   ============================================================================= */

/* ─── CSS Custom Properties ─────────────────────────────────────────── */
:root {
  --e4m-red:        #e8191d;
  --e4m-red-dark:   #c0141a;
  --e4m-red-light:  #fdeced;
  --e4m-dark:       #1a1a2e;
  --e4m-navy:       #16213e;
  --e4m-text:       #1e1e1e;
  --e4m-text-muted: #6c757d;
  --e4m-text-light: #8a93a2;
  --e4m-border:     #e9ecef;
  --e4m-bg-light:   #f8f9fa;
  --e4m-bg-white:   #ffffff;
  --e4m-shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --e4m-shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --e4m-shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --e4m-radius:     10px;
  --e4m-radius-sm:  6px;
  --e4m-radius-lg:  16px;
  --e4m-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* Type colors per cluster_type */
  --color-leadership:    #6c63ff;
  --color-appointment:   #e8191d;
  --color-industry_trend:#0d6efd;
  --color-company:       #198754;
  --color-story:         #fd7e14;
  --color-event:         #0dcaf0;
  --color-person:        #6c63ff;
  --color-regulation:    #6f42c1;
  --color-merger:        #20c997;
  --color-acquisition:   #ffc107;
  --color-sports_rights: #e8191d;
  --color-default:       #6c757d;
}

/* ─── Reset & Base ───────────────────────────────────────────────────── */
.ai-topic-page * {
  box-sizing: border-box;
}
.ai-topic-page a {
  color: var(--e4m-red);
  text-decoration: none;
  transition: color var(--e4m-transition);
}
.ai-topic-page a:hover {
  color: var(--e4m-red-dark);
  text-decoration: none;
}

/* ─── Layout Wrappers ────────────────────────────────────────────────── */
.ai-topic-page .trending-topic-wrap {
  padding: 0 0 40px;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────── */
.ai-breadcrumb {
  background: none;
  padding: 14px 0 4px;
  margin: 0;
  font-size: 12px;
  color: var(--e4m-text-muted);
}
.ai-breadcrumb a {
  color: var(--e4m-text-muted);
}
.ai-breadcrumb a:hover {
  color: var(--e4m-red);
}
.ai-breadcrumb .sep {
  margin: 0 6px;
  color: #bbb;
}
.ai-breadcrumb .current {
  color: var(--e4m-text);
  font-weight: 600;
}

/* ─── HERO SECTION ───────────────────────────────────────────────────── */
.ai-hero {
  background: var(--e4m-bg-white);
  border: 1px solid var(--e4m-border);
  border-radius: var(--e4m-radius-lg);
  padding: 28px 28px 22px;
  margin-top: 12px;
  margin-bottom: 20px;
  box-shadow: var(--e4m-shadow-sm);
  position: relative;
  overflow: hidden;
}
.ai-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--e4m-red), #ff6b6b, var(--e4m-red-dark));
}

/* Hero type accent bar */
.ai-hero[data-type="leadership"]::before     { background: var(--color-leadership); }
.ai-hero[data-type="appointment"]::before    { background: var(--color-appointment); }
.ai-hero[data-type="industry_trend"]::before { background: var(--color-industry_trend); }
.ai-hero[data-type="company"]::before        { background: var(--color-company); }
.ai-hero[data-type="story"]::before          { background: var(--color-story); }
.ai-hero[data-type="event"]::before          { background: var(--color-event); }
.ai-hero[data-type="person"]::before         { background: var(--color-person); }

.ai-hero-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Category badges row */
.ai-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ai-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
}
.ai-type-badge.leadership    { background: var(--color-leadership); }
.ai-type-badge.appointment   { background: var(--color-appointment); }
.ai-type-badge.industry_trend{ background: var(--color-industry_trend); }
.ai-type-badge.company       { background: var(--color-company); }
.ai-type-badge.story         { background: var(--color-story); }
.ai-type-badge.event         { background: var(--color-event); color: #1e1e1e; }
.ai-type-badge.person        { background: var(--color-person); }
.ai-type-badge.regulation    { background: var(--color-regulation); }
.ai-type-badge.merger        { background: var(--color-merger); color: #1e1e1e; }
.ai-type-badge.acquisition   { background: var(--color-acquisition); color: #1e1e1e; }
.ai-type-badge.sports_rights { background: var(--color-sports_rights); }
.ai-type-badge.default       { background: var(--color-default); }

/* Hero title */
.ai-hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--e4m-text);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
@media (max-width: 768px) {
  .ai-hero-title { font-size: 20px; }
}

/* Hero summary */
.ai-hero-summary {
  font-size: 14.5px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 16px;
}

/* Hero share */
.ai-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ai-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--e4m-text-muted);
  background: var(--e4m-bg-light);
  border: 1px solid var(--e4m-border);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--e4m-transition);
  text-decoration: none;
}
.ai-share-btn:hover {
  background: var(--e4m-red);
  color: #fff;
  border-color: var(--e4m-red);
}

/* Hero content column */
.ai-hero-body {
  flex: 1;
  min-width: 0;
}

/* ─── STATS BAR ──────────────────────────────────────────────────────── */
.ai-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--e4m-bg-white);
  border: 1px solid var(--e4m-border);
  border-top: none;
  border-radius: 0 0 var(--e4m-radius) var(--e4m-radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.ai-stat-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-right: 1px solid var(--e4m-border);
  transition: background var(--e4m-transition);
}
.ai-stat-item:last-child {
  border-right: none;
}
.ai-stat-item:hover {
  background: var(--e4m-bg-light);
}
.ai-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ai-stat-icon.articles   { background: #fff3cd; color: #856404; }
.ai-stat-icon.insights   { background: #d1ecf1; color: #0c5460; }
.ai-stat-icon.related    { background: #d4edda; color: #155724; }
.ai-stat-icon.updated    { background: var(--e4m-red-light); color: var(--e4m-red); }
.ai-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--e4m-text);
  line-height: 1;
}
.ai-stat-label {
  font-size: 11px;
  color: var(--e4m-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
@media (max-width: 576px) {
  .ai-stats-bar { flex-direction: column; }
  .ai-stat-item { border-right: none; border-bottom: 1px solid var(--e4m-border); }
  .ai-stat-item:last-child { border-bottom: none; }
}

/* ─── SECTION CARD (shared) ──────────────────────────────────────────── */
.ai-section-card {
  background: var(--e4m-bg-white);
  border: 1px solid var(--e4m-border);
  border-radius: var(--e4m-radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--e4m-shadow-sm);
  transition: box-shadow var(--e4m-transition);
}
.ai-section-card:hover {
  box-shadow: var(--e4m-shadow-md);
}

.ai-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--e4m-border);
  background: var(--e4m-bg-light);
}
.ai-section-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--e4m-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-section-header-left i {
  font-size: 15px;
  color: var(--e4m-red);
}
.ai-section-header-right {
  font-size: 12px;
  font-weight: 600;
  color: var(--e4m-red);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ai-section-header-right:hover {
  color: var(--e4m-red-dark);
}
.ai-section-body {
  padding: 20px;
}
.ai-section-body.p-0 {
  padding: 0;
}

/* ─── INSIGHTS BLOCK ─────────────────────────────────────────────────── */
.ai-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.ai-insight-card {
  background: var(--e4m-bg-light);
  border: 1px solid var(--e4m-border);
  border-radius: var(--e4m-radius-sm);
  padding: 16px;
  transition: all var(--e4m-transition);
  position: relative;
  overflow: hidden;
}
.ai-insight-card:hover {
  border-color: var(--e4m-red);
  box-shadow: var(--e4m-shadow-sm);
  transform: translateY(-2px);
}
.ai-insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--e4m-red);
  opacity: 0;
  transition: opacity var(--e4m-transition);
}
.ai-insight-card:hover::before {
  opacity: 1;
}
.ai-insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--e4m-red-light);
  color: var(--e4m-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}
.ai-insight-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--e4m-text);
  margin: 0 0 6px;
  line-height: 1.3;
}
.ai-insight-text {
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

/* ─── TIMELINE BLOCK ─────────────────────────────────────────────────── */
/* Horizontal timeline (desktop) */
.ai-timeline-scroll-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.ai-timeline-horizontal {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  padding: 10px 0 20px;
  position: relative;
}
.ai-timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--e4m-border) 0%, var(--e4m-red) 60%, var(--e4m-red) 100%);
}
.ai-timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  max-width: 200px;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.ai-timeline-node.latest .ai-timeline-dot {
  background: var(--e4m-red);
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 3px var(--e4m-red-light), 0 0 0 5px var(--e4m-red);
}
.ai-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ccc;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ccc;
  flex-shrink: 0;
  transition: all var(--e4m-transition);
  margin-bottom: 8px;
}
.ai-timeline-node:hover .ai-timeline-dot {
  background: var(--e4m-red);
  box-shadow: 0 0 0 3px var(--e4m-red-light);
}
.ai-timeline-date-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--e4m-red);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  text-align: center;
}
.ai-timeline-node.latest .ai-timeline-date-label {
  color: var(--e4m-red);
}
.ai-timeline-event-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--e4m-text);
  text-align: center;
  line-height: 1.4;
  margin: 0 0 4px;
}
.ai-timeline-event-desc {
  font-size: 11.5px;
  color: var(--e4m-text-muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-timeline-latest-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--e4m-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* Vertical timeline (mobile fallback / alternate layout) */
.ai-timeline-vertical {
  position: relative;
  padding-left: 30px;
}
.ai-timeline-vertical::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  bottom: 0;
  width: 2px;
  background: var(--e4m-border);
}
.ai-timeline-v-item {
  position: relative;
  padding-bottom: 24px;
}
.ai-timeline-v-item:last-child {
  padding-bottom: 0;
}
.ai-timeline-v-dot {
  position: absolute;
  left: -26px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ccc;
}
.ai-timeline-v-item.latest .ai-timeline-v-dot {
  background: var(--e4m-red);
  box-shadow: 0 0 0 3px var(--e4m-red-light);
}
.ai-timeline-v-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--e4m-red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.ai-timeline-v-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--e4m-text);
  margin: 0 0 3px;
  line-height: 1.4;
}
.ai-timeline-v-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ─── ARTICLES BLOCK ─────────────────────────────────────────────────── */
.ai-article-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--e4m-border);
  transition: background var(--e4m-transition);
  align-items: flex-start;
}
.ai-article-item:last-child {
  border-bottom: none;
}
.ai-article-item:hover {
  background: var(--e4m-bg-light);
}
.ai-article-thumb-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 64px;
  border-radius: var(--e4m-radius-sm);
  overflow: hidden;
}
.ai-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--e4m-transition);
}
.ai-article-item:hover .ai-article-thumb {
  transform: scale(1.05);
}
.ai-article-content {
  flex: 1;
  min-width: 0;
}
.ai-article-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--e4m-text);
  line-height: 1.4;
  display: block;
  margin-bottom: 5px;
  transition: color var(--e4m-transition);
}
.ai-article-title:hover {
  color: var(--e4m-red);
}
.ai-article-desc {
  font-size: 12.5px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--e4m-text-light);
  font-weight: 500;
}
.ai-article-meta i {
  font-size: 10px;
}

/* ─── ENTITIES / PEOPLE & COMPANIES ─────────────────────────────────── */
.ai-entities-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-entity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--e4m-radius-sm);
  border: 1px solid var(--e4m-border);
  background: var(--e4m-bg-light);
  transition: all var(--e4m-transition);
  text-decoration: none;
}
.ai-entity-item:hover {
  border-color: var(--e4m-red);
  background: var(--e4m-bg-white);
  box-shadow: var(--e4m-shadow-sm);
  transform: translateX(3px);
  color: var(--e4m-text);
}
.ai-entity-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--e4m-red-light), #fdeced);
  color: var(--e4m-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  text-transform: uppercase;
}
.ai-entity-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--e4m-text);
  line-height: 1.2;
}
.ai-entity-type {
  font-size: 11px;
  color: var(--e4m-text-muted);
  font-weight: 500;
}
/* Tags variant for more entities */
.ai-entity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-entity-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--e4m-text);
  background: var(--e4m-bg-light);
  border: 1px solid var(--e4m-border);
  border-radius: 20px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all var(--e4m-transition);
}
.ai-entity-tag:hover {
  background: var(--e4m-red-light);
  border-color: var(--e4m-red);
  color: var(--e4m-red);
}

/* ─── RELATED TOPICS ─────────────────────────────────────────────────── */
.ai-related-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--e4m-text);
  padding: 8px 10px;
  border-radius: var(--e4m-radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--e4m-transition);
}
.ai-related-item:hover {
  background: var(--e4m-red-light);
  border-color: var(--e4m-red);
  color: var(--e4m-red);
}
.ai-related-item i {
  font-size: 11px;
  color: var(--e4m-red);
  flex-shrink: 0;
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────────────── */
.ai-faq-item {
  border-bottom: 1px solid var(--e4m-border);
}
.ai-faq-item:last-child {
  border-bottom: none;
}
.ai-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--e4m-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: background var(--e4m-transition);
  outline: none;
  line-height: 1.4;
}
.ai-faq-question:hover {
  background: var(--e4m-bg-light);
  color: var(--e4m-red);
}
.ai-faq-question[aria-expanded="true"] {
  color: var(--e4m-red);
  background: var(--e4m-red-light);
}
.ai-faq-q-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--e4m-red);
  background: var(--e4m-red-light);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ai-faq-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--e4m-text-muted);
  transition: transform var(--e4m-transition);
  margin-top: 4px;
}
.ai-faq-question[aria-expanded="true"] .ai-faq-chevron {
  transform: rotate(180deg);
  color: var(--e4m-red);
}
.ai-faq-answer {
  display: none;
  padding: 4px 20px 18px 52px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #555;
}
.ai-faq-answer.open {
  display: block;
}

/* ─── AI SUMMARY BLOCK ───────────────────────────────────────────────── */
.ai-summary-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--e4m-radius);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ai-summary-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(232,25,29,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.ai-summary-robot-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.ai-summary-body {
  flex: 1;
  min-width: 0;
}
.ai-summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.ai-summary-label span.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--e4m-red);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.ai-summary-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin: 0 0 12px;
}
.ai-summary-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.ai-summary-footer i {
  font-size: 10px;
}

/* ─── STICKY SIDEBAR ─────────────────────────────────────────────────── */
.ai-sidebar-sticky-wrap {
  position: sticky;
  top: 70px;
}
.ai-sidebar-widget {
  background: var(--e4m-bg-white);
  border: 1px solid var(--e4m-border);
  border-radius: var(--e4m-radius);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--e4m-shadow-sm);
}
.ai-sidebar-widget-header {
  background: var(--e4m-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ai-sidebar-widget-header i {
  color: var(--e4m-red);
}
.ai-sidebar-widget-body {
  padding: 14px 16px;
}

/* Key stats in sidebar */
.ai-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ai-sidebar-stat {
  background: var(--e4m-bg-light);
  border-radius: var(--e4m-radius-sm);
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--e4m-border);
}
.ai-sidebar-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--e4m-red);
  line-height: 1;
  margin-bottom: 3px;
}
.ai-sidebar-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--e4m-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Share sidebar */
.ai-sidebar-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-soc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--e4m-radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--e4m-transition);
}
.ai-soc-btn:hover { opacity: 0.85; color: #fff; }
.ai-soc-btn.twitter  { background: #1da1f2; }
.ai-soc-btn.linkedin { background: #0a66c2; }
.ai-soc-btn.whatsapp { background: #25d366; }
.ai-soc-btn.copy     { background: #6c757d; cursor: pointer; }

/* ─── "WHAT'S NEW" HIGHLIGHT BAR ─────────────────────────────────────── */
.ai-whats-new {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.ai-whats-new-card {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  background: var(--e4m-bg-white);
  border: 1px solid var(--e4m-border);
  border-radius: var(--e4m-radius-sm);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--e4m-shadow-sm);
  position: relative;
  overflow: hidden;
}
.ai-whats-new-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--e4m-red);
}
.ai-whats-new-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--e4m-red-light);
  color: var(--e4m-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ai-whats-new-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--e4m-text);
  line-height: 1.4;
}
.ai-new-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--e4m-red);
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

/* ─── YOU MAY ALSO LIKE ──────────────────────────────────────────────── */
.ai-also-like-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.ai-also-like-card {
  border-radius: var(--e4m-radius-sm);
  overflow: hidden;
  border: 1px solid var(--e4m-border);
  text-decoration: none;
  background: var(--e4m-bg-white);
  transition: all var(--e4m-transition);
  display: block;
}
.ai-also-like-card:hover {
  box-shadow: var(--e4m-shadow-md);
  transform: translateY(-3px);
  border-color: var(--e4m-red);
}
.ai-also-like-img-wrap {
  height: 100px;
  background: var(--e4m-bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ccc;
}
.ai-also-like-body {
  padding: 10px 12px;
}
.ai-also-like-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--e4m-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-also-like-card:hover .ai-also-like-title {
  color: var(--e4m-red);
}

/* ─── DISCOVER ROW (entities + related + follow) ─────────────────────── */
.ai-discover-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 992px) {
  .ai-discover-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .ai-discover-row { grid-template-columns: 1fr; }
}
.ai-discover-card {
  background: var(--e4m-bg-white);
  border: 1px solid var(--e4m-border);
  border-radius: var(--e4m-radius);
  overflow: hidden;
  box-shadow: var(--e4m-shadow-sm);
}
.ai-discover-card-header {
  background: var(--e4m-bg-light);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--e4m-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--e4m-border);
}
.ai-discover-card-header i {
  color: var(--e4m-red);
  margin-right: 5px;
}
.ai-discover-card-header a {
  font-size: 11px;
  font-weight: 600;
  color: var(--e4m-red);
}
.ai-discover-card-body {
  padding: 14px;
}

/* Follow widget */
.ai-follow-label {
  font-size: 12.5px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.5;
}
.ai-follow-form {
  display: flex;
  gap: 6px;
}
.ai-follow-input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--e4m-border);
  border-radius: var(--e4m-radius-sm);
  padding: 0 10px;
  font-size: 12.5px;
  outline: none;
  transition: border-color var(--e4m-transition);
}
.ai-follow-input:focus {
  border-color: var(--e4m-red);
}
.ai-follow-btn {
  height: 36px;
  background: var(--e4m-red);
  color: #fff;
  border: none;
  border-radius: var(--e4m-radius-sm);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--e4m-transition);
  white-space: nowrap;
}
.ai-follow-btn:hover {
  background: var(--e4m-red-dark);
}
.ai-follow-note {
  font-size: 10.5px;
  color: var(--e4m-text-light);
  margin-top: 7px;
}
.ai-follow-note i {
  color: var(--e4m-red);
  margin-right: 3px;
}

/* ─── SEO SCHEMA hidden ──────────────────────────────────────────────── */
.ai-schema-hidden { display: none; }

/* ─── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-fade-in {
  animation: fadeInUp 0.45s ease forwards;
}
.ai-fade-in:nth-child(1) { animation-delay: 0.05s; }
.ai-fade-in:nth-child(2) { animation-delay: 0.10s; }
.ai-fade-in:nth-child(3) { animation-delay: 0.15s; }
.ai-fade-in:nth-child(4) { animation-delay: 0.20s; }
.ai-fade-in:nth-child(5) { animation-delay: 0.25s; }

/* ─── Utilities ──────────────────────────────────────────────────────── */
.ai-view-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--e4m-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: gap var(--e4m-transition);
}
.ai-view-all-link:hover { gap: 7px; color: var(--e4m-red-dark); }

.ai-section-divider {
  border: none;
  border-top: 1px solid var(--e4m-border);
  margin: 4px 0;
}

/* Copy toast */
.ai-copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--e4m-dark);
  color: #fff;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}
.ai-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive Overrides ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .ai-hero-inner { flex-direction: column; gap: 16px; }
  .ai-insights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .ai-hero { padding: 18px 16px; }
  .ai-hero-title { font-size: 19px; }
  .ai-insights-grid { grid-template-columns: 1fr; }
  .ai-section-body { padding: 14px; }
  .ai-article-thumb-wrap { width: 72px; height: 52px; }
  .ai-also-like-grid { grid-template-columns: 1fr 1fr; }
  .ai-summary-card { flex-direction: column; }
  .ai-timeline-node { min-width: 130px; }
}