/* Candidate Responses Styles */

/* Grid of candidate cards on the index page */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0 60px;
}

/* Card look consistent with project/resource cards */
.candidate-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.candidate-card:hover {
  transform: translateY(-8px);
}

.candidate-card-body {
  padding: 20px;
}

.candidate-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.candidate-card-header h3 {
  margin: 0;
  color: var(--primary-color-dark);
  font-size: 1.3rem;
}

.candidate-role {
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 15px;
  background: #e3f2fd;
  color: #0277bd;
  white-space: nowrap;
}

.candidate-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 8px;
}

.candidate-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0,0,0,0.06);
}

.candidate-summary {
  color: #666;
  margin: 8px 0 16px;
}

.no-candidates {
  text-align: center;
  padding: 30px;
  color: #777;
}

/* Candidate Detail Page */
.candidate-detail {
  padding: 40px 0 60px;
}

.candidate-header-card {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 25px;
}

.candidate-header-text h2 {
  margin-bottom: 4px;
  color: var(--primary-color-dark);
}

.candidate-header-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(0,0,0,0.06);
}

.qa-list {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.qa-item + .qa-item {
  border-top: 1px solid #eee;
  margin-top: 16px;
  padding-top: 16px;
}

.question {
  color: var(--primary-color-dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.q-label {
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 6px;
}

.answer p {
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.candidate-footer {
  margin-top: 20px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .candidate-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .candidate-header-photo img {
    width: 96px;
    height: 96px;
  }
}
