/**
 * Alpha Delving — UI Components
 * Buttons, Badges, Pills, Social Links, and Form Atoms
 */

/* ==========================================================================
   1. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--type-label-md-size);
  font-weight: 600;
  line-height: var(--type-label-md-line-height);
  letter-spacing: var(--type-label-md-letter-spacing);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-default);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
}

/* Primary Button (Electric Cyan) */
.btn-primary {
  background-color: var(--color-brand-cyan);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-primary-btn);
}

.btn-primary:hover {
  background-color: var(--color-brand-cyan-hover);
  color: var(--color-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(0, 160, 233, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 160, 233, 0.3);
}

/* Secondary Button (Midnight Slate) */
.btn-secondary {
  background-color: var(--color-brand-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover {
  background-color: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

/* Ghost / Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-brand-navy);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.btn-outline:hover {
  background-color: rgba(0, 160, 233, 0.06);
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
  transform: translateY(-1px);
}

/* White Elevated Button (for dark or colored bands) */
.btn-white {
  background-color: #ffffff;
  color: var(--color-brand-navy);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  background-color: #ffffff;
  color: var(--color-brand-cyan);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.18);
}

/* Pill Modifier */
.btn-pill {
  border-radius: var(--radius-full);
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* Size Modifiers */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--type-label-sm-size);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Arrow icon animation inside buttons */
.btn .btn-arrow {
  transition: transform var(--transition-base);
  display: inline-block;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   2. BADGES & CHIPS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--type-label-sm-size);
  font-weight: 600;
  line-height: var(--type-label-sm-line-height);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-cyan {
  background-color: var(--color-badge-cyan-bg);
  color: var(--color-badge-cyan-text);
  border: 1px solid rgba(2, 132, 199, 0.18);
}

.badge-subtle {
  background-color: var(--color-surface-container);
  color: var(--color-primary);
  border: 1px solid rgba(0, 100, 148, 0.12);
}

/* ==========================================================================
   3. SOCIAL ICONS
   ========================================================================== */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-brand-navy);
  transition: all var(--transition-base);
}

.social-icon:hover {
  background-color: var(--color-brand-cyan);
  border-color: var(--color-brand-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 160, 233, 0.35);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   4. CLOSING CTA BAND (SHARED SITE COMPONENT)
   ========================================================================== */
.closing-cta-section {
  background: #0F172A;
  padding: 6.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-top: 1px solid rgba(0, 160, 233, 0.16);
}

.closing-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 160, 233, 0.5), transparent);
  z-index: 3;
}

.closing-cta-bg-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 160, 233, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.15), transparent 45%);
  pointer-events: none;
}

.closing-cta-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.closing-cta-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 160, 233, 0.12);
  border: 1px solid rgba(0, 160, 233, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.closing-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.closing-cta-subtext {
  font-size: 17px;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.closing-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--color-brand-navy);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.closing-cta-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-cyan);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .closing-cta-section {
    padding: 5rem 0 4rem 0;
  }
}

@media (max-width: 767px) {
  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 14.5px;
  }

  .closing-cta-section {
    padding: 4rem 0 3rem 0;
  }

  .closing-cta-badge {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 1.25rem;
  }

  .closing-cta-heading {
    margin-bottom: 1rem;
  }

  .closing-cta-subtext {
    font-size: 14.5px;
    margin-bottom: 1.75rem;
  }

  .closing-cta-actions {
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .closing-cta-trust-bar {
    gap: 1rem;
    padding-top: 1.5rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }

  .closing-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .closing-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .closing-cta-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ============================================================
   PODCAST VIDEO PLAYER & SPOTLIGHT COMPONENT
   ============================================================ */
.video-responsive-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Service Card Video Embed */
.podcast-featured-player {
  margin: 1.5rem 0 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, rgba(0, 160, 233, 0.06) 100%);
  border: 1px solid rgba(0, 160, 233, 0.25);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem;
  transition: all var(--transition-base);
}

.podcast-featured-player:hover {
  border-color: var(--color-brand-cyan);
  box-shadow: 0 10px 30px rgba(0, 160, 233, 0.15);
}

.player-header {
  margin-bottom: 0.85rem;
}

.player-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-cyan);
  margin-bottom: 4px;
}

.player-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-brand-navy);
  margin: 0;
  line-height: 1.35;
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 12px;
  color: #64748B;
}

.watch-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #DC2626;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.watch-yt-btn:hover {
  color: #B91C1C;
  transform: translateX(2px);
}

/* Homepage Podcast Spotlight Banner */
.podcast-home-spotlight {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(0, 160, 233, 0.3);
  border-radius: var(--radius-xl, 24px);
  padding: 2.5rem;
  color: #FFFFFF;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.podcast-spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

.podcast-spotlight-info h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0.85rem 0;
  line-height: 1.25;
}

.podcast-spotlight-info p {
  color: #94A3B8;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.spotlight-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 1.5rem;
}

.spotlight-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spotlight-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .podcast-spotlight-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .podcast-home-spotlight {
    padding: 1.75rem;
  }
}

