/* ═══════════════════════════════════════════════════════════════════════════
   498AS GEO PRESENTATION — COMPONENTS
   Premium Visual Components · Distinctive · Tech-Forward
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── LAYOUT GRIDS ──────────────────────────────────────────────────────── */
.cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  margin-top: 32px;
}

.cols--equal { grid-template-columns: 1fr 1fr; }
.cols--reverse { grid-template-columns: 0.85fr 1.15fr; }
.cols--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cols--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .cols, .cols--equal, .cols--reverse { grid-template-columns: 1fr; }
  .cols--3 { grid-template-columns: repeat(2, 1fr); }
  .cols--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ─── MEGA NUMBER (Hero Stats) ──────────────────────────────────────────── */
.mega {
  display: flex;
  flex-direction: column;
  position: relative;
}

.mega__number {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--fg);
  position: relative;
}

.mega__number--primary { color: var(--primary); }

.mega__number--outlined {
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
}

.mega__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.mega__sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.7;
}

/* ─── STAT BLOCK (Compact KPI) ──────────────────────────────────────────── */
.stat {
  position: relative;
  padding: 24px 0;
}

.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.stat__value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat__value--primary { color: var(--primary); }

.stat__label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 400;
}

/* ─── HIGHLIGHT BLOCK (Green Background) ────────────────────────────────── */
.highlight {
  background: var(--primary);
  color: #000;
  padding: 24px 28px;
  position: relative;
}

.highlight--large { padding: 40px 48px; }

.highlight__value {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.highlight__label {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  opacity: 0.85;
}

.highlight__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* ─── RANKING BAR (Horizontal Progress) ─────────────────────────────────── */
.ranking {
  margin: 8px 0;
}

.ranking__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.ranking__label {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranking__icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.ranking__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.ranking__bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.ranking__fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.8s var(--ease-out);
}

.ranking__fill--gradient {
  background: linear-gradient(90deg, var(--primary) 0%, #50FF30 100%);
}

/* ─── RANKING ITEM (Full Row) ───────────────────────────────────────────── */
.rank-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rank-item:last-child { border-bottom: none; }

.rank-item__pos {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-mono);
}

.rank-item__pos--top { color: var(--primary); }

.rank-item__name {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-item__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.rank-item__value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.rank-item__value--primary { color: var(--primary); }

/* ─── CARD MINIMAL ──────────────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  background: transparent;
}

.card:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.02);
}

.card--bordered {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
}

.card--glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.card--dark {
  background: rgba(0,0,0,0.4);
}

.card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ─── DATA TABLE STYLED ─────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--primary);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.data-table__highlight {
  background: rgba(55, 232, 19, 0.08) !important;
}

/* ─── SENTIMENT BAR ─────────────────────────────────────────────────────── */
.sentiment-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}

.sentiment-bar__label {
  width: 100px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.sentiment-bar__track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  position: relative;
}

.sentiment-bar__fill {
  height: 100%;
  transition: width 0.6s var(--ease-out);
}

.sentiment-bar__fill--negative { background: #FF4444; }
.sentiment-bar__fill--neutral { background: #888888; }
.sentiment-bar__fill--positive { background: var(--primary); }

.sentiment-bar__value {
  width: 100px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ─── PROVIDER BADGE ────────────────────────────────────────────────────── */
.provider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 500;
}

.provider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.provider__dot--openai { background: #10A37F; }
.provider__dot--google { background: #4285F4; }

/* ─── INSIGHT BOX ───────────────────────────────────────────────────────── */
.insight {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(55, 232, 19, 0.06);
  border-left: 3px solid var(--primary);
  position: relative;
}

.insight--warning {
  background: rgba(255, 107, 107, 0.08);
  border-left-color: #FF6B6B;
}

.insight--info {
  background: rgba(66, 133, 244, 0.08);
  border-left-color: #4285F4;
}

.insight__icon {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 20px;
  opacity: 0.6;
}

.insight__text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.insight__text strong {
  color: var(--fg);
  font-weight: 600;
}

/* ─── TAG / PILL ────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  margin: 4px;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(55, 232, 19, 0.1);
  border-color: var(--primary);
}

.tag--primary {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* ─── SECTOR CARD ───────────────────────────────────────────────────────── */
.sector {
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}

.sector:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.sector__icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.sector__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sector__brands {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── COMPARISON BLOCK ──────────────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.compare__item {
  text-align: center;
}

.compare__logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare__logo img {
  max-width: 100%;
  max-height: 100%;
}

.compare__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.compare__value {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
}

.compare__vs {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 12px 20px;
  border: 1px solid var(--subtle);
}

/* ─── BULLET LIST STYLED ────────────────────────────────────────────────── */
.bullets {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.bullets li {
  padding: 10px 0;
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bullets li:last-child { border-bottom: none; }

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 2px;
  background: var(--primary);
}

.bullets li strong {
  color: var(--fg);
  font-weight: 600;
}

/* ─── QUOTE ─────────────────────────────────────────────────────────────── */
.quote {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  padding-left: 24px;
}

.quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: calc(100% - 16px);
  background: var(--primary);
}

.quote__by {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* ─── COVER SLIDE ───────────────────────────────────────────────────────── */
.cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
  position: relative;
}

.cover__title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.cover__subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-top: 24px;
  font-weight: 300;
}

.cover__accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--primary);
  opacity: 0.08;
}

/* ─── LOGO GRID ─────────────────────────────────────────────────────────── */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.logo-grid__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 500;
}

.logo-grid__item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ─── SOURCE ITEM ───────────────────────────────────────────────────────── */
.source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.source:last-child { border-bottom: none; }

.source__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.source__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.source__name {
  font-size: 14px;
  font-weight: 600;
}

.source__type {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.source__count {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
}

/* ─── ENGINE CARD ───────────────────────────────────────────────────────── */
.engine {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.engine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.engine--openai::before { background: #10A37F; }
.engine--google::before { background: #4285F4; }

.engine__icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.engine__value {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-mono);
}

.engine__name {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}

.engine__provider {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── GAUGE / SCORE ─────────────────────────────────────────────────────── */
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.score__ring {
  width: 100px;
  height: 100px;
  border: 4px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.score__ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  transform: rotate(-45deg);
}

.score__value {
  font-size: 28px;
  font-weight: 900;
}

.score__label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* ─── ANIMATIONS ────────────────────────────────────────────────────────── */
@keyframes barGrow {
  from { width: 0; }
}

.animate-bar .ranking__fill,
.animate-bar .sentiment-bar__fill {
  animation: barGrow 0.8s var(--ease-out) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeUp 0.5s var(--ease-out) forwards;
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  animation: fadeUp 0.5s var(--ease-out) forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }
