/* =========================================
   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;
}

/* ========== STATUS BADGES & LABELS ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: slideIn 0.4s ease-out;
}
.status-badge.declared {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.status-badge.awaited {
  background: #fed7aa;
  color: #92400e;
  border: 1px solid #fdba74;
  animation: pulse 2s infinite;
}
.status-badge i {
  font-size: 11px;
}

/* ========== COPY TO CLIPBOARD ========== */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.copy-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.copy-btn.copied {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
}
.copy-btn.copied i::before { content: "✓"; }

/* ========== SHARE BUTTONS ========== */
.share-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.share-btn.whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.share-btn.twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.share-btn.facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }

/* ========== STREAM FILTER BADGES ========== */
.stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.stream-badge.science {
  background: #f0fdf4;
  color: #166534;
}
.stream-badge.commerce {
  background: #eff6ff;
  color: #1e40af;
}
.stream-badge.arts {
  background: #fef3c7;
  color: #92400e;
}
.stream-badge.general {
  background: #f3e8ff;
  color: #6b21a8;
}

/* ========== FAQ ACCORDION ========== */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}
.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
  transition: all var(--transition-fast);
}
.faq-question:hover {
  background: var(--primary-light);
}
.faq-question i {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--primary);
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 12px 16px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.comparison-table thead th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 14px;
  font-weight: 800;
  border: none;
}
.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}
.comparison-table tbody tr:hover {
  background: var(--primary-light);
}
.comparison-table tbody td {
  padding: 14px;
  color: var(--text-main);
  font-weight: 500;
}
.comparison-table tbody td:first-child {
  font-weight: 800;
  color: var(--primary);
}

/* ========== HIGHLIGHT CARD ========== */
.highlight-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.highlight-card h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 900;
  z-index: 1;
  position: relative;
}
.highlight-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.95;
  z-index: 1;
  position: relative;
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-soft);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.stat-card .number {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== ANIMATIONS ========== */
@keyframes slideIn {
  from { transform: translateX(-10px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== 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; }
  .stats-grid { grid-template-columns: repeat(2, 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; }
  .highlight-card { padding: 20px; }
  .share-buttons { flex-direction: row; }
}
@media (max-width: 480px) {
  .quick-actions { grid-template-columns: 1fr; }
  .vacancy-summary { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .highlight-card { padding: 16px; }
  .highlight-card h3 { font-size: 18px; }
}
