// interview-step.component.scss
.interview-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  position: relative;
}

.interview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  
  .timer {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00F0FF;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
    
    &.warning {
      color: #F59E0B;
      animation: pulse 1s infinite;
    }
  }
  
  .question-counter {
    color: #94A3B8;
    font-size: 0.875rem;
  }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.interview-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  gap: 1rem;
}

.ai-interviewer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-container {
  position: relative;
  
  .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #7C3AED;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
  }
  
  .status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10B981;
    border: 2px solid #1E293B;
  }
}

.speech-bubble {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 0 12px 12px 12px;
  padding: 1rem;
  position: relative;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: rgba(30, 41, 59, 0.8);
    border-left: 0;
  }
  
  p {
    margin: 0;
    color: #E2E8F0;
    line-height: 1.5;
  }
}

.typing-indicator {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
  
  span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #94A3B8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
    
    &:nth-child(2) {
      animation-delay: 0.2s;
    }
    
    &:nth-child(3) {
      animation-delay: 0.4s;
    }
  }
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.user-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-preview {
  position: relative;
  height: 180px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 8px;
  overflow: hidden;
  
  .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background: 
        linear-gradient(45deg, transparent 45%, rgba(124, 58, 237, 0.1) 45.5%, transparent 46%),
        linear-gradient(-45deg, transparent 45%, rgba(124, 58, 237, 0.1) 45.5%, transparent 46%);
      background-size: 20px 20px;
    }
    
    svg {
      width: 48px;
      height: 48px;
      color: #7C3AED;
      opacity: 0.5;
      z-index: 1;
    }
  }
}

.audio-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
  
  .bar {
    width: 4px;
    min-height: 2px;
    background: linear-gradient(to top, #00F0FF, #7C3AED);
    border-radius: 2px;
    transition: height 0.2s ease;
  }
}

.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.control-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 4px;
  color: #E2E8F0;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  
  svg {
    width: 18px;
    height: 18px;
  }
  
  &:hover {
    background: rgba(124, 58, 237, 0.2);
  }
  
  &.emergency {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
    
    &:hover {
      background: rgba(239, 68, 68, 0.2);
    }
  }
}

.transcript-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(124, 58, 237, 0.3);
  
  h3 {
    padding: 1rem;
    margin: 0;
    color: #E2E8F0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  }
}

.transcript {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.transcript-item {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 6px;
  border-left: 3px solid #7C3AED;
  
  &.ai {
    border-left-color: #2563EB;
  }
  
  .speaker {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-bottom: 0.25rem;
  }
  
  .content {
    color: #E2E8F0;
    margin-bottom: 0.25rem;
  }
  
  .time {
    font-size: 0.75rem;
    color: #64748B;
    text-align: right;
  }
}

.emergency-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  
  .modal-content {
    background: #1E293B;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    
    h3 {
      color: #EF4444;
      margin-top: 0;
    }
    
    p {
      color: #E2E8F0;
    }
    
    .contact-info {
      background: rgba(15, 23, 42, 0.5);
      padding: 1rem;
      border-radius: 4px;
      margin: 1rem 0;
      
      p {
        margin: 0.5rem 0;
      }
    }
  }
  
  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .sci-fi-button {
    &.danger {
      background: linear-gradient(135deg, #EF4444, #DC2626);
      color: white;
      
      &:hover {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
      }
    }
  }
}