/* =========================================
   DETAIL PAGE STYLES — JharForm Results
   Extends styles.css for individual result/recruitment detail pages
   ========================================= */

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}
.breadcrumb span:not(:last-child) {
  color: var(--text-muted);
}
.breadcrumb span:last-child {
  color: var(--text-muted);
}

/* Detail Hero */
.detail-hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}
.detail-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin: 0 0 10px 0;
  line-height: 1.2;
}
.detail-hero p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* Info Boxes */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.5;
}
.info-box i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-box.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.info-box.success i { color: #16a34a; }
.info-box.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.info-box.warning i { color: #d97706; }
.info-box.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.info-box.info i { color: #2563eb; }
.info-box strong { font-weight: 800; }

/* Detail Cards */
.detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
.detail-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.detail-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-soft);
}
.detail-card-header i {
  font-size: 18px;
  color: var(--primary);
}
.detail-card-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.detail-card-body {
  padding: 24px;
}

/* Quick Action Cards */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-main);
  font-weight: 700;
  transition: all var(--transition-smooth);
}
.quick-action-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quick-action-card i {
  font-size: 26px;
  color: var(--primary);
}
.quick-action-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: inherit;
}
.quick-action-card p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th {
  background: var(--bg-soft);
  padding: 12px 16px;
  text-align: left;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
}
.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-soft);
  color: var(--text-main);
  font-weight: 500;
  vertical-align: top;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover td {
  background: var(--primary-light);
}
.data-table strong { color: var(--primary-dark); }

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}
.step-content h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}
.step-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.step-content a {
  color: var(--primary);
  font-weight: 600;
}

/* Link Group */
.link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  gap: 12px;
}
.link-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.link-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.link-item-left i {
  color: var(--primary);
  font-size: 15px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
}
.btn-success:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
}

/* Vacancy Summary Boxes */
.vacancy-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.vacancy-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: var(--primary-light);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  text-align: center;
}
.vacancy-box .number {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.vacancy-box .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Physical Standards */
.phys-std {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.phys-box {
  padding: 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}
.phys-box h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.phys-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

/* Bottom space */
.detail-card:last-child { margin-bottom: 48px; }

/* Responsive */
@media (max-width: 768px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .vacancy-summary { grid-template-columns: repeat(2, 1fr); }
  .phys-std { grid-template-columns: 1fr; }
  .detail-card-body { padding: 16px; }
  .detail-card-header { padding: 16px; }
  .link-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .data-table { font-size: 13px; }
  .data-table thead th, .data-table tbody td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .quick-actions { grid-template-columns: 1fr; }
  .vacancy-summary { grid-template-columns: repeat(2, 1fr); }
}
