/* ==========================================================================
   Exam List Page — exams-list.css
   ========================================================================== */

.exam-list-hero {
  padding: 160px 0 40px;
  text-align: center;
  background: var(--grad-bg);
}
.exam-list-hero .eyebrow { margin-bottom: 16px; }
.exam-list-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.exam-list-hero p { max-width: 560px; margin: 0 auto; color: var(--slate); }

.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.exam-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(124, 58, 237, 0.08);
}
.exam-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.exam-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.exam-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
}
.tag-programming { background: #7c3aed; }
.tag-web { background: #0ea5e9; }
.tag-data { background: #10b981; }
.tag-cs { background: #f97316; }
.tag-net { background: #6366f1; }
.tag-full { background: linear-gradient(135deg, #1e1b4b, #7c3aed); }

.difficulty {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.diff-easy { background: #dcfce7; color: #15803d; }
.diff-medium { background: #fef3c7; color: #b45309; }
.diff-hard { background: #fee2e2; color: #b91c1c; }

.exam-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.exam-desc { font-size: 0.92rem; color: var(--slate); margin-bottom: 18px; flex-grow: 1; }

.exam-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--lavender-deep);
}
.exam-meta i { color: var(--violet); margin-right: 4px; }

.start-exam-btn { width: 100%; justify-content: center; }

/* ---------- Candidate Name Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeInModal 0.25s ease; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-hover);
  animation: fadeInUp 0.3s ease;
}
.modal-card h3 { font-size: 1.2rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.modal-card p { font-size: 0.9rem; color: var(--slate); margin-bottom: 18px; }
.modal-card input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--lavender-deep);
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-bottom: 6px;
  transition: border-color 0.25s ease;
}
.modal-card input:focus { outline: none; border-color: var(--violet); }
.modal-error {
  display: none;
  color: var(--coral);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.modal-error.show { display: block; }
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.modal-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 1024px) {
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .exam-grid { grid-template-columns: 1fr; }
  .exam-list-hero { padding-top: 130px; }
}
