/* ============================================
   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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.btn-pill.btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  border-color: #5568d3;
}

.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 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px !important;
  margin-top: 12px !important;
  width: 100%;
  box-sizing: border-box;
}

/* 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 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    flex-shrink: 1 !important;
    box-sizing: border-box !important;
  }
  
  .job-card-option2 .actions-compact {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .job-card-option2 .actions-compact .btn-pill,
  .job-card-option2 .actions-compact .job-menu-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 1 !important;
  }
}

@media (max-width: 480px) {
  .job-card-option2 .actions-compact {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .chip-pill {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  
  .btn-pill {
    font-size: 0.8rem !important;
    padding: 10px 12px !important;
  }
}

/* NUCLEAR OPTION: Force mobile fix for all small screens */
@media (max-width: 768px) {
  .job-card,
  .job-card-compact,
  .job-card-option2 {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .jobs-container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  .actions-compact {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .actions-compact > *,
  .actions-compact .btn-pill,
  .actions-compact .job-menu-container,
  .actions-compact button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}
