/* ==========================================================================
   InterviewPro AI - Mock Interview Simulator Studio Styles
   ========================================================================== */

/* Setup Wizard View */
.interview-setup-wrapper {
  max-width: 820px;
  margin: 2.5rem auto 5rem;
}

.setup-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.setup-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.setup-header h2 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.setup-grid .full-width {
  grid-column: 1 / -1;
}

.category-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.category-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.category-pill.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--brand-blue-light);
  color: #93C5FD;
}

/* Interview Room View */
.interview-room-container {
  min-height: calc(100vh - 80px);
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
}

.interview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.interview-meta-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-tracker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar-bg {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.interview-timer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Studio Layout */
.interview-studio-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.75rem;
  flex-grow: 1;
}

/* Left AI Pane */
.ai-interviewer-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.ai-avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 1.5rem auto 1rem;
}

.ai-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-blue-light);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.ai-speaking-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(124, 58, 237, 0.6);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-interviewer-panel.speaking .ai-speaking-ring {
  opacity: 1;
  animation: spinRing 8s linear infinite;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  color: #93C5FD;
  margin-bottom: 1.25rem;
}

.ai-interviewer-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.ai-interviewer-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-voice-controls {
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
}

/* Right Question & Answer Pane */
.interview-interaction-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.question-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.question-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* Follow Up Question Callout */
.followup-callout {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.3s ease-in-out;
}

.followup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #C4B5FD;
  margin-bottom: 0.5rem;
}

.followup-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #EDE9FE;
}

/* Hints & STAR Guide Accordion */
.hints-accordion {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
}

.hints-header {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-blue-light);
}

.hints-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hints-accordion.open .hints-content {
  padding: 0.5rem 1rem 1rem;
  max-height: 200px;
}

/* User Answer Input Card */
.answer-input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.input-mode-toggles {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  border: 1px solid var(--border-color);
}

.mode-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.mode-toggle-btn.active {
  background: var(--brand-blue);
  color: #fff;
}

.answer-textarea-wrapper {
  position: relative;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.answer-textarea {
  width: 100%;
  height: 180px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast);
}

.answer-textarea:focus {
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.answer-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Voice Dictation Visualizer Block */
.voice-dictation-panel {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.mic-action-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transition: all var(--transition-normal);
}

.mic-action-btn.recording {
  background: #EF4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  animation: micPulse 1.2s infinite;
}

@keyframes micPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.mic-status-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.answer-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .interview-studio-layout {
    grid-template-columns: 1fr;
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
}
