/* demo.css — Demo dashboard specific styles */
/* Reuses CSS variables from dashboard.css (--bg, --surface, --accent, etc.) */

:root {
  --demo-tooltip-bg: #005030;
  --demo-tooltip-border: #F47321;
}

/* Demo banner */
.demo-banner {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: linear-gradient(135deg, rgba(0,80,48,0.95) 0%, rgba(0,64,32,0.95) 100%);
  border-bottom: 1px solid rgba(244,115,33,0.3);
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.demo-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.demo-banner-text {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.demo-banner-text strong {
  color: #F47321;
  font-weight: 600;
}

.demo-banner-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.demo-banner-close:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* Creator identity header */
.demo-creator-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 20px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.demo-creator-info {
  flex: 1;
  min-width: 0;
}

.demo-creator-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.demo-creator-bio {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.demo-creator-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.demo-creator-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Demo section spacing */
.demo-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

/* Cross-platform comparison */
.cross-platform-section {
  padding: 0 20px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.cross-platform-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.cross-platform-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.cross-platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cross-platform-card.win {
  border-color: #10B981;
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, var(--surface) 100%);
}

.cross-platform-card.lose {
  opacity: 0.6;
}

.cross-platform-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cross-platform-card-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
}

.cross-platform-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cross-platform-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cross-platform-metric-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.cross-platform-metric-value {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.cross-platform-metric-value.small {
  font-size: 13px;
}

.cross-platform-metric-delta {
  font-size: 10px;
  color: var(--text-muted);
}

.cross-platform-metric-delta.positive { color: #10B981; }
.cross-platform-metric-delta.negative { color: #F87171; }

.win-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #10B981;
  color: white;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}

.lose-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0,80,48,0.15);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Guided contextual tooltips */
.demo-tooltip {
  position: absolute;
  z-index: 200;
  width: 280px;
  background: var(--demo-tooltip-bg);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: tooltipSlideIn 0.25s ease-out;
  cursor: default;
}

.demo-tooltip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--demo-tooltip-border);
  border-radius: 10px 0 0 10px;
}

.demo-tooltip-headline {
  font-size: 13px;
  font-weight: 700;
  color: #F47321;
  margin-bottom: 6px;
  line-height: 1.3;
}

.demo-tooltip-body {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

.demo-tooltip-dismiss {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.2s;
}

.demo-tooltip-dismiss:hover {
  color: rgba(255,255,255,0.8);
}

@keyframes tooltipSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Metric row with tooltip trigger */
.metric-row {
  position: relative;
}

.metric-row:hover .tooltip-trigger {
  outline: 2px solid rgba(244,115,33,0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

/* CTA section */
.demo-cta-section {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,80,48,0.08) 0%, transparent 100%);
}

.demo-cta-box {
  max-width: 560px;
  margin: 0 auto;
}

.demo-cta-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.demo-cta-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.demo-cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.demo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 15px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,80,48,0.3);
}

.demo-cta-btn:hover {
  background: #004020;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,80,48,0.4);
}

/* Nav active state for demo */
.nav-demo-active {
  color: #F47321 !important;
  font-weight: 700 !important;
}

/* Mobile responsive */
@media (max-width: 700px) {
  .cross-platform-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .demo-creator-header {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .demo-creator-badges {
    justify-content: center;
  }

  .demo-cta-title {
    font-size: 24px;
  }

  .demo-tooltip {
    width: 240px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .cross-platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .demo-banner-close {
    width: 100%;
  }
}