/* ==========================================================================
   ZAHIQ AI - Enhanced Metrics & Visual Polish
   ========================================================================== */

/* Enhanced Hero Metrics */
.hero-metrics {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(94, 114, 228, 0.2);
}

.metric-pill {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
  border: 1px solid rgba(94, 114, 228, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(94, 114, 228, 0.1),
    transparent);
  transition: left 0.6s ease;
}

.metric-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(94, 114, 228, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(94, 114, 228, 0.4);
}

.metric-pill:hover::before {
  left: 100%;
}

.metric-number {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Enhanced CTA Group */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-hero-primary {
  background: var(--gradient-primary);
  color: var(--background);
  padding: 1rem 2rem;
  border-radius: 100px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 114, 228, 0.4);
}

.btn-hero-secondary {
  background: var(--surface);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 100px;
  border: 1px solid rgba(94, 114, 228, 0.3);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover {
  background: var(--surface-elevated);
  border-color: rgba(94, 114, 228, 0.5);
  transform: translateY(-2px);
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* Enhanced Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
  border: 1px solid rgba(94, 114, 228, 0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(94, 114, 228, 0.2);
  }
}

.badge-new {
  background: var(--gradient-primary);
  color: var(--background);
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: var(--surface-elevated);
  border-radius: 100px;
  border: 1px solid rgba(94, 114, 228, 0.2);
}

.language-flag {
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 1 !important;
  visibility: visible !important;
}

.language-flag:hover {
  background: rgba(94, 114, 228, 0.1);
  transform: scale(1.1);
}

.language-flag.active {
  background: var(--surface);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 10px rgba(94, 114, 228, 0.3);
  opacity: 1 !important;
}

/* Enhanced Waveform */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 60px;
}

.wave-bar {
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 40px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 35px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 25px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 30px; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 20px; animation-delay: 0.8s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(1.5); opacity: 1; }
}

/* Status indicator */
.phone-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: var(--glow);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.status-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-metrics {
    gap: 1.5rem;
  }

  .metric-pill {
    padding: 0.875rem 1.25rem;
  }

  .hero-cta-group {
    gap: 0.875rem;
  }
}

@media (max-width: 768px) {
  .hero-metrics {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .metric-pill {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    padding: 0.75rem 1rem;
    justify-content: center;
  }

  .metric-number {
    font-size: 1.1rem;
  }

  .metric-label {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .hero-badge {
    padding: 0.375rem 0.875rem;
    gap: 0.5rem;
  }

  .badge-new {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .hero-metrics {
    flex-direction: column;
    gap: 0.75rem;
  }

  .metric-pill {
    flex: 1 1 100%;
    width: 100%;
  }

  .metric-number {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.75rem;
    white-space: normal;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .language-switcher {
    flex-wrap: wrap;
    justify-content: center;
  }

  .language-flag {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .waveform {
    height: 40px;
    gap: 2px;
  }

  .wave-bar {
    width: 3px;
  }
}