/* ============================================================
   VERISTREAM — Reusable Components (components.css)
   ============================================================ */

/* ----------------------------------------------------------
   Buttons — Base
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background   var(--transition-base),
    color        var(--transition-base),
    box-shadow   var(--transition-base),
    transform    var(--transition-fast),
    border-color var(--transition-base);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   Buttons — Primary (gradient)
   ---------------------------------------------------------- */
.btn-primary {
  background: #04A1FE;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #38BDF8;
  color: #fff;
  box-shadow: 0 0 24px rgba(4, 161, 254, 0.35);
  transform: translateY(-1px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 0 15px rgba(4, 161, 254, 0.25);
}

/* ----------------------------------------------------------
   Buttons — Secondary (outline)
   ---------------------------------------------------------- */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-secondary);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------------
   Buttons — Ghost (text-only)
   ---------------------------------------------------------- */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  border: none;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: var(--space-2);
  right: var(--space-2);
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-ghost:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ----------------------------------------------------------
   Buttons — Large variant
   ---------------------------------------------------------- */
.btn-large {
  padding: 18px 36px;
  font-size: var(--text-lg);
}

.btn-cta-white {
  background: #fff;
  color: #333;
  border: none;
  font-weight: 700;
}

.btn-cta-white:hover {
  background: #f0f0f0;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-cta-white:active {
  transform: translateY(0) scale(0.99);
}

/* ----------------------------------------------------------
   Card — Base
   ---------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-image: var(--gradient-primary) 1;
  border-image-slice: 0 0 0 1;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    border-color var(--transition-base),
    box-shadow   var(--transition-base),
    background   var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------
   Card — Glass (Glassmorphism)
   ---------------------------------------------------------- */
.card-glass {
  background: rgba(12, 13, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid transparent;
  border-image: var(--gradient-primary) 1;
  border-image-slice: 0 0 0 1;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    border-color var(--transition-base),
    background   var(--transition-base),
    box-shadow   var(--transition-base);
}

.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 20, 28, 0.85);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------
   Badges
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Color variants */
.badge-blue {
  background: rgba(4, 161, 254, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(4, 161, 254, 0.2);
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Tier badges */
.badge-tier {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-tier.emerging {
  background: rgba(4, 161, 254, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(4, 161, 254, 0.2);
}

.badge-tier.growing {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-tier.superstar {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ----------------------------------------------------------
   Section Heading Components
   ---------------------------------------------------------- */

/* Section label — decorative line accent (replaces uppercase text) */
.section-label {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin-bottom: var(--space-5);
  margin-left: auto;
  margin-right: auto;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  color: transparent;
}

/* Left-align section-label when inside analytics text blocks */
.analytics-text .section-label {
  margin-left: 0;
  margin-right: 0;
}

/* Section title */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

/* Section description */
.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   Icon Box
   ---------------------------------------------------------- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.icon-box svg,
.icon-box img {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* ----------------------------------------------------------
   Divider
   ---------------------------------------------------------- */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-hover) 50%,
    transparent 100%
  );
  margin: var(--space-12) 0;
}

/* ----------------------------------------------------------
   Glow Ring (authenticity score display)
   ---------------------------------------------------------- */
.glow-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
}

.glow-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
  animation: glow-ring-pulse 3s ease-in-out infinite;
}

.glow-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-card);
  z-index: -1;
}

@keyframes glow-ring-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(4, 161, 254, 0.3);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 35px rgba(4, 161, 254, 0.6);
    opacity: 0.85;
  }
}

.glow-ring-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
}

.glow-ring-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
