/* Agents Page Styles */

.agent-hero {
  padding: 140px 0 60px;
}

.agent-detail-card {
  border-radius: 2.5rem;
  padding: 4rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.agent-detail-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.agent-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(138, 43, 226, 0.1);
  color: var(--pipeline-primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.tech-spec {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #94a3b8;
}

.tech-spec i {
  color: var(--pipeline-secondary);
}

/* Timeline Flow Styles */
.timeline-section {
  padding: 80px 0;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--pipeline-primary),
    var(--pipeline-secondary)
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  border-color: rgba(0, 255, 171, 0.1);
}

.timeline-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    var(--pipeline-primary),
    var(--pipeline-secondary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.6);
}

.timeline-number {
  position: absolute;
  top: -15px;
  width: 40px;
  height: 40px;
  background: var(--pipeline-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.timeline-item:nth-child(even) .timeline-number {
  left: -15px;
}

.timeline-item:nth-child(odd) .timeline-number {
  right: -15px;
}

.timeline-content h3 {
  margin-bottom: 1rem;
}

.timeline-content .agent-badge {
  margin-bottom: 1rem;
}

.tech-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .timeline-line {
    display: none;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: center;
    margin-bottom: 60px;
    padding-left: 0;
    position: relative;
    padding-top: 30px;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    z-index: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
  }

  .timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 2;
  }

  .timeline-number {
    position: absolute;
    left: auto;
    right: 10px;
    transform: none;
    top: 10px;
    margin-bottom: 0;
    z-index: 2;
  }

  .timeline-item:nth-child(even) .timeline-number {
    left: auto;
    right: 10px;
    transform: none;
  }

  .timeline-item:nth-child(odd) .timeline-number {
    left: auto;
    right: 10px;
    transform: none;
  }

  .tech-specs-grid {
    grid-template-columns: 1fr;
  }
}


/* Audio Section */
.audio-section {
    margin-top: 2rem;
}

.alert-gradient {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    animation: alert-glow 3s ease-in-out infinite;
}

@keyframes alert-glow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(124, 58, 237, 0.2);
    }
    50% {
        box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    }
}

.audio-player-wrapper {
    margin: 1rem auto;
}

.custom-audio-player {
    width: 100%;
    height: 60px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0 1.5rem 0.4rem;
    outline: none;
    transition: all 0.3s ease;
}

.custom-audio-player:hover {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.custom-audio-player:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Audio player controls styling */
.custom-audio-player::-webkit-media-controls-panel {
    background: transparent;
}

.custom-audio-player::-webkit-media-controls-play-button,
.custom-audio-player::-webkit-media-controls-pause-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.custom-audio-player::-webkit-media-controls-current-time-display,
.custom-audio-player::-webkit-media-controls-time-remaining-display {
    color: var(--slate-300);
}

.custom-audio-player::-webkit-media-controls-timeline {
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
}

.custom-audio-player::-webkit-media-controls-volume-slider {
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-audio-player {
        height: 50px;
        padding: 0 1rem 0.1rem;
    }
    
    .audio-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .audio-player-wrapper {
        max-width: 75% !important;
        margin-bottom: 1rem !important;
    }
}
