/* Candidate Portal Styles */

/* ATS Scan Hero Section */
.ats-hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .ats-hero-grid {
    grid-template-columns: 1fr;
  }
}

.ats-score-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ats-checks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ats-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.ats-check-item:hover {
  border-color: var(--border-color-hover);
}

.check-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-status-icon.passed { background: var(--accent-success-bg); color: var(--accent-success); }
.check-status-icon.warning { background: var(--accent-warning-bg); color: var(--accent-warning); }
.check-status-icon.failed { background: var(--accent-danger-bg); color: var(--accent-danger); }

.check-content h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.check-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.check-recommendation {
  font-size: 0.78rem;
  color: var(--accent-primary);
  margin-top: 6px;
  font-weight: 500;
}

/* ROI Simulator Card */
.roi-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.roi-metrics-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.roi-metric-item {
  text-align: center;
}

.roi-metric-item .val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-secondary);
}

.roi-metric-item .val.lift {
  color: var(--accent-success);
}

.roi-metric-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* Career Path Explorer Tree */
.career-track-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.career-tree-container {
  position: relative;
  padding: 20px 0;
}

.career-node {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.career-node:hover, .career-node.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-primary-glow);
  transform: translateY(-2px);
}

.career-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.career-node-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  margin: -12px auto 12px;
}

/* Alternative Careers Grid */
.alt-careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.alt-career-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

.alt-career-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
}

/* Skill Gap Roadmap */
.roadmap-phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.roadmap-phase-card.phase-1 { border-left: 4px solid var(--accent-primary); }
.roadmap-phase-card.phase-2 { border-left: 4px solid var(--accent-secondary); }
.roadmap-phase-card.phase-3 { border-left: 4px solid var(--accent-purple); }

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.roadmap-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.roadmap-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.roadmap-check-item:hover {
  background: var(--bg-tertiary);
}

.roadmap-check-item.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

.roadmap-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* Mock Interview Simulator */
.interview-cockpit {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

@media (max-width: 992px) {
  .interview-cockpit {
    grid-template-columns: 1fr;
  }
}

.interviewer-avatar-box {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 61, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.speaking-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  margin-top: 14px;
}

.speaking-wave span {
  width: 4px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 4px;
  transition: height 0.2s ease;
}

.speaking-wave.active span {
  animation: audioWave 0.6s infinite ease-in-out alternate;
}

.speaking-wave.active span:nth-child(2) { animation-delay: 0.1s; }
.speaking-wave.active span:nth-child(3) { animation-delay: 0.2s; }
.speaking-wave.active span:nth-child(4) { animation-delay: 0.3s; }
.speaking-wave.active span:nth-child(5) { animation-delay: 0.4s; }

@keyframes audioWave {
  0% { height: 6px; }
  100% { height: 28px; }
}

.question-display-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-primary);
}

.answer-input-container {
  position: relative;
}

.speech-record-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.speech-record-btn.recording {
  background: var(--accent-danger);
  color: #fff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Resume Improvement Diff View */
.diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .diff-container {
    grid-template-columns: 1fr;
  }
}

.diff-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.diff-box.original { border-color: rgba(239, 68, 68, 0.3); }
.diff-box.improved { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.03); }

/* Timeline Stream */
.timeline-stream {
  position: relative;
  padding-left: 32px;
}

.timeline-stream::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 11px;
  bottom: 10px;
  width: 2px;
  background: var(--border-color);
}

.timeline-event-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 0.65rem;
}

.timeline-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all var(--transition-fast);
}

.timeline-event-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

/* Gamification Badges Gallery */
.badges-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.badge-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.badge-showcase-card.unlocked {
  border-color: var(--accent-warning);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), transparent);
}

.badge-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-warning);
  font-size: 1.4rem;
}

.badge-showcase-card.unlocked .badge-icon-lg {
  background: var(--accent-warning-bg);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}
