/* ============================================
   JOB CARD REDESIGN - Compact & Professional
   ============================================ */

/* Override base card styles */
.job-card-option2 {
  padding: 16px !important;
}

.job-card-option2 .header-row {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  margin-bottom: 10px !important;
}

.job-card-option2 .left-section {
  gap: 12px !important;
  align-items: flex-start !important;
}

/* Smaller logo */
.job-card-option2 .company-logo-small {
  width: 48px !important;
  height: 48px !important;
}

.job-card-option2 .company-logo-placeholder {
  width: 48px !important;
  height: 48px !important;
}

/* Title and Match Score on same row */
.job-card-option2 .title-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.job-card-option2 .job-title-compact {
  flex: 1;
  white-space: normal !important;
  margin: 0 !important;
}

/* Match score inline with title */
.job-card-option2 .match-section-slick {
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0;
}

.job-card-option2 .match-inline {
  gap: 4px !important;
}

.job-card-option2 .match-value-slick {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.job-card-option2 .match-label-text-slick {
  font-size: 0.75rem !important;
  white-space: nowrap;
}

.job-card-option2 .match-bar-slick {
  display: none !important;
}

/* Compact pill chips */
.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  white-space: nowrap;
}

.chip-pill.work-type {
  background: #dbeafe;
  color: #1e40af;
}

.chip-pill.seniority {
  background: #fce7f3;
  color: #9f1239;
}

.chip-pill.source-chip {
  background: #f3f4f6;
  color: #6b7280;
}

.job-card-option2 .badges-compact {
  gap: 6px !important;
  margin-top: 8px !important;
}

.job-card-option2 .badge-mini {
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: none !important;
}

.job-card-option2 .badge-mini.work-type {
  background: #dbeafe !important;
  color: #1e40af !important;
}

.job-card-option2 .badge-mini.seniority {
  background: #fce7f3 !important;
  color: #9f1239 !important;
}

/* Compact pill buttons */
.btn-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-pill:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.btn-pill:active {
  transform: translateY(0);
}

.btn-pill.btn-primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.btn-pill.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-pill.btn-ai {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border-color: transparent;
}

.btn-pill.btn-ai:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-pill.saved,
.btn-pill.applied {
  background: white;
  color: #10b981;
  border-color: #10b981;
  cursor: default;
  font-weight: 600;
}

.btn-pill.saved:hover,
.btn-pill.applied:hover {
  background: white;
  transform: none;
  box-shadow: none;
}

.job-card-option2 .actions-compact {
  gap: 8px !important;
  flex-wrap: wrap;
  margin-top: 12px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .job-card-option2 .title-match-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .job-card-option2 .match-section-slick {
    align-self: flex-start;
  }
  
  .btn-pill {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
  
  .job-card-option2 .actions-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px !important;
  }
}

@media (max-width: 480px) {
  .job-card-option2 .actions-compact {
    grid-template-columns: 1fr;
  }
  
  .chip-pill {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
}
