/* ========================================
   EXPIRED JOB BADGE (Single Job Page)
   ======================================== */

.pcr-expired-job-badge {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border-left: 5px solid #ffc107;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 0 0 30px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pcr-badge-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.pcr-badge-content {
  flex: 1;
}

.pcr-badge-content strong {
  display: block;
  font-size: 18px;
  color: #856404;
  margin-bottom: 8px;
  font-weight: 600;
}

.pcr-badge-content p {
  margin: 0;
  color: #856404;
  font-size: 14px;
  line-height: 1.6;
}
/* ========================================
   SEARCH
   ======================================== */

ul.multiselect {
    list-style: none;
    padding: 0;
}
ul.multiselect li.disabled {
    display: none;
}

/* ========================================
   EXPIRED JOB IN LISTINGS
   ======================================== */

/* Only apply opacity/styling to LISTING items, not single job pages */
.wpsearchresults .pcr-expired-job,
.jobflexitem.pcr-expired-job {
  opacity: 0.7;
  position: relative;
}

/* Hover state for expired jobs in listings only */
.wpsearchresults .pcr-expired-job:hover,
.jobflexitem.pcr-expired-job:hover {
  opacity: 0.85;
}

/* Hover state for expired jobs */
.wpsearchresults .pcr-expired-job:hover {
  opacity: 0.85;
}

/* For grid/card layouts */
.wpsearchresults .pcr-expired-job {
  border: 2px solid #ffc107;
}

/* For list layouts */
.pcr-job-link.pcr-expired-job {
  background: rgba(255, 243, 205, 0.2);
}

/* ========================================
   TABLE/ROW BASED RESULTS
   ======================================== */

tr.pcr-expired-job {
  background-color: rgba(255, 243, 205, 0.3) !important;
}

tr.pcr-expired-job td {
  color: #856404;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .pcr-expired-job-badge {
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }

  .pcr-badge-icon {
    font-size: 24px;
  }

  .pcr-badge-content strong {
    font-size: 16px;
  }

  .pcr-expired-job::after {
    top: 5px;
    right: 5px;
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Ensure sufficient color contrast */
.pcr-expired-job-badge {
  color: #000;
}

/* Screen reader text for expired status */
.pcr-expired-job .sr-only,
.pcr-expired-job .screen-reader-text {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Focus states for keyboard navigation */
.pcr-job-link.pcr-expired-job:focus {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .pcr-expired-job-badge {
    border: 2px solid #000;
    background: #fff;
    page-break-inside: avoid;
  }

  .pcr-expired-job::after {
    color: #000;
    border: 1px solid #000;
  }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
  .pcr-expired-job-badge {
    background: linear-gradient(135deg, #3d3519 0%, #4d4520 100%);
    border-left-color: #ffc107;
  }

  .pcr-badge-content strong,
  .pcr-badge-content p {
    color: #ffd54f;
  }

  .wpsearchresults .pcr-expired-job {
    opacity: 0.6;
  }
}

/* PCRecruiter Pagination - Structural Styles Only */

/* Layout container */
.pcr-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

/* Result count info */
.pagination-info {
  text-align: center;
}

/* Button container */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Page numbers wrapper - structural only */
.pcr-page-numbers {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* Ellipsis - prevent selection */
.pagination-ellipsis {
  user-select: none;
}

/* RESPONSIVE: Hide page numbers on mobile */
@media (max-width: 768px) {
  .pcr-page-numbers {
    display: none !important;
  }

  .pagination-controls {
    gap: 12px;
  }
}

/* RESPONSIVE: Show only current page on tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .pcr-page-numbers .pcr-page-btn:not(.active) {
    display: none;
  }

  .pcr-page-numbers .pcr-page-btn.active {
    display: inline-flex;
  }

  .pcr-page-numbers .pagination-ellipsis {
    display: none;
  }
}

/* Attribution link */
.pcr-attribution {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 2.5em;
  padding-top: 1em;
}

.pcr-attribution a.pcr-link {
  color: inherit;
  text-decoration: underline;
}

.pcr-attribution a.pcr-link:hover {
  color: #333;
}
/* ========================================
   PAGINATION DEFAULT STYLES
   ======================================== */
/* All pagination buttons */
.btn-pagination {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-pagination:hover {
  background: #f5f5f5;
  border-color: #999;
}

.btn-pagination:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9f9f9;
}

/* Previous/Next buttons - distinct styling */
.pcr-prev-btn,
.pcr-next-btn {
  font-weight: 600;
  background: #f8f9fa;
  border-color: #adb5bd;
}

.pcr-prev-btn:hover,
.pcr-next-btn:hover {
  background: #e9ecef;
  border-color: #6c757d;
}

/* Page number buttons */
.pcr-page-btn {
  min-width: 40px;
  text-align: center;
}

/* Active/current page - fixed contrast */
.pcr-page-btn.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  font-weight: 600;
  cursor: default;
}

.pcr-page-btn.active:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
}

/* Result count text */
.pagination-info {
  color: #666;
  font-size: 14px;
}

/* Ellipsis */
.pagination-ellipsis {
  color: #999;
  padding: 0 4px;
}

/* ========================================
   LOGOS
   ======================================== */
.positionlogo,
.companylogo {
  display: block;
  height: 50px;
  width: 50px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
/* ========================================
   LOGOS
   ======================================== */
#pcrbox .social-widget {
  display: flex;
  gap: 5px;
  max-width: 265px;
}

#pcrbox .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  padding: 0;
  margin: 0;
  line-height: 1;
}

#pcrbox .social-icon:hover {
  background-color: #ddd;
}

#pcrbox .social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
