/* YellowPin job listing — grid & list browse pages */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

.yp-job-listing-page {
  --yp-jl-bg: #f7f9fd;
  --yp-jl-surface: #ffffff;
  --yp-jl-primary: #fabc57;
  --yp-jl-primary-container: #f8c04d;
  --yp-jl-on-primary-container: #6e4f00;
  --yp-jl-text: #1c2136;
  --yp-jl-muted: #64748b;
  --yp-jl-variant: #4f4535;
  --yp-jl-border: #e6e8ec;
  --yp-jl-outline: #d3c5af;
  --yp-jl-accent: #fff7e6;
  --yp-jl-success: #22c55e;
  --yp-jl-dark: #181c1f;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--yp-jl-bg);
  color: var(--yp-jl-dark);
}

.yp-job-listing-page h1,
.yp-job-listing-page h2,
.yp-job-listing-page h3,
.yp-job-listing-page .yp-jl-font-display {
  font-family: "Montserrat", system-ui, sans-serif;
}

.yp-jl-main {
  /*background: linear-gradient(135deg, #ffffff 0%, #fff9e6 50%, #ffffff 100%);*/
}

/* Hero */
.yp-jl-hero {
  /*max-width: 1280px;*/
  margin: 0 auto;
  padding: 32px 16px;
    text-align: center;
    background: linear-gradient(135deg, #ffd451 0%, #ffeaa6 50%, #ffdf81 100%);
}

@media (min-width: 768px) {
  .yp-jl-hero {
    padding: 32px 40px;
  }
}

.yp-jl-hero-badge {
  display: inline-block;
  background: var(--yp-jl-accent);
  color: #FF9800;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.yp-jl-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--yp-jl-text);
  line-height: 1.15;
  margin: 0 0 16px;
  /*max-width: 48rem;*/
}

@media (min-width: 768px) {
  .yp-jl-hero-title {
    font-size: 48px;
    line-height: 1.1;
  }
}

.yp-jl-hero-copy {
  font-size: 18px;
  line-height: 1.55;
  color: #000;
  margin: 0 0 24px;
  /*max-width: 42rem;*/
}

.yp-jl-search-form {
  max-width: 56rem;
  margin:0 auto;
}

.yp-jl-search-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--yp-jl-surface);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--yp-jl-outline);
  box-shadow: 0 1px 3px rgba(28, 33, 54, 0.06);
}

@media (min-width: 576px) {
  .yp-jl-search-bar {
    flex-direction: row;
    align-items: center;
  }
}

.yp-jl-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 0;
}

.yp-jl-search-field i {
  color: var(--yp-jl-outline);
  font-size: 18px;
}

.yp-jl-search-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  box-shadow: none;
}

.yp-jl-search-field input:focus {
  outline: none;
  box-shadow: none;
}

.yp-jl-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffc45c;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.yp-jl-search-btn:hover {
  opacity: 0.92;
}

/* Board layout */
.yp-jl-board {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

@media (min-width: 768px) {
  .yp-jl-board {
    padding: 0 40px 56px;
  }
}

.yp-jl-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .yp-jl-board-grid {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  }
}

.yp-jl-alert-wrap {
  margin-bottom: 24px;
}

/* Filters */
.yp-jl-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.yp-jl-filters-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--yp-jl-dark);
  margin: 0;
}

.yp-jl-filters-head p {
  font-size: 14px;
  color: var(--yp-jl-muted);
  margin: 4px 0 0;
}

.yp-jl-clear-filters {
  background: none;
  border: none;
  color: var(--yp-jl-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.yp-jl-clear-filters:hover {
  text-decoration: underline;
}

.yp-jl-filter-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yp-jl-filter-panel {
  background: var(--yp-jl-surface);
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(28, 33, 54, 0.06);
  overflow: hidden;
}

.yp-jl-filter-panel.is-active {
  background: var(--yp-jl-accent);
  border-color: rgba(250, 188, 87, 0.28);
}

.yp-jl-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.yp-jl-filter-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yp-jl-dark);
}

.yp-jl-filter-panel.is-active .yp-jl-filter-toggle-left {
  color: var(--yp-jl-primary);
  font-weight: 700;
}

.yp-jl-filter-toggle-left i {
  color: var(--yp-jl-primary);
  width: 20px;
  text-align: center;
}

.yp-jl-filter-chevron {
  color: var(--yp-jl-outline);
  transition: transform 0.2s ease;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-chevron {
  transform: rotate(180deg);
}

.yp-jl-filter-body {
  display: none;
  padding: 0 16px 16px;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-body {
  display: block;
}

.yp-jl-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yp-jl-filter-list li {
  margin-bottom: 8px;
}

.yp-jl-filter-list li:last-child {
  margin-bottom: 0;
}

.yp-jl-filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--yp-jl-dark);
  cursor: pointer;
  margin: 0;
}

.yp-jl-filter-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--yp-jl-primary);
}

.yp-jl-filter-list span.count {
  margin-left: auto;
  font-size: 12px;
  color: var(--yp-jl-muted);
}

/* Results header */
.yp-jl-results-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 576px) {
  .yp-jl-results-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.yp-jl-results-head h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--yp-jl-text);
  margin: 0;
}

.yp-jl-results-count {
  font-size: 14px;
  color: var(--yp-jl-muted);
  margin: 4px 0 0;
}

.yp-jl-results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.yp-jl-view-toggle {
  display: flex;
  background: #eceef2;
  border-radius: 12px;
  padding: 4px;
}

.yp-jl-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--yp-jl-variant);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: default;
}

.yp-jl-view-btn.is-active {
  background: var(--yp-jl-dark);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.yp-jl-view-btn:not(.is-active):hover {
  color: var(--yp-jl-dark);
}

.yp-jl-sort select {
  border: 1px solid var(--yp-jl-outline);
  border-radius: 12px;
  padding: 8px 36px 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background: var(--yp-jl-surface);
  color: var(--yp-jl-dark);
  min-width: 160px;
}

.yp-jl-sort select:focus {
  border-color: var(--yp-jl-primary-container);
  box-shadow: 0 0 0 2px rgba(248, 192, 77, 0.35);
  outline: none;
}

/* Job cards grid */
.yp-jl-jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .yp-jl-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.yp-jl-jobs-grid--list {
  grid-template-columns: 1fr;
}

.yp-jl-job-card {
  background: var(--yp-jl-surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.yp-jl-job-card:hover {
  border-color: var(--yp-jl-primary-container);
  text-decoration: none;
  color: inherit;
}

.yp-jl-job-card--list {
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}

@media (max-width: 575px) {
  .yp-jl-job-card--list {
    flex-direction: column;
  }
}

.yp-jl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.yp-jl-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f2f4f8;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yp-jl-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yp-jl-card-body {
  flex: 1;
  min-width: 0;
}

.yp-jl-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--yp-jl-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.yp-jl-job-card:hover .yp-jl-card-body h3 {
  color: var(--yp-jl-primary);
}

.yp-jl-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.yp-jl-card-company {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin: 0;
}

.yp-jl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.yp-jl-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
}

.yp-jl-tag--primary {
  /*background: var(--yp-jl-accent);*/
  /*color: var(--yp-jl-primary);*/
    background: #eceef2;
    color: var(--yp-jl-variant);
    
}

.yp-jl-tag--muted {
  background: #eceef2;
  color: var(--yp-jl-variant);
}

.yp-jl-tag--urgent {
  background: var(--yp-jl-success);
  color: #fff;
}

.yp-jl-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #eceef2;
  margin-top: auto;
}

.yp-jl-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--yp-jl-muted);
  min-width: 0;
}

.yp-jl-card-meta i {
  flex-shrink: 0;
  font-size: 16px;
}

.yp-jl-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yp-jl-card-time {
  font-size: 12px;
  color: var(--yp-jl-muted);
  flex-shrink: 0;
}

.yp-jl-loading,
.yp-jl-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--yp-jl-muted);
  font-size: 16px;
}

.yp-jl-card-summary {
  font-size: 14px;
  color: var(--yp-jl-muted);
  line-height: 1.45;
  margin: 8px 0 0;
}

.yp-jl-job-card--list .yp-jl-card-foot {
  border-top: none;
  padding-top: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-top: 0;
  min-width: 120px;
  flex-shrink: 0;
}

.yp-jl-job-card--list .yp-jl-card-tags {
  margin-top: 8px;
}

.yp-jl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.yp-jl-pagination > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.yp-jl-page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--yp-jl-outline);
  background: var(--yp-jl-surface);
  color: var(--yp-jl-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.yp-jl-page-btn:hover:not(.is-disabled):not(.is-active) {
  background: #eceef2;
}

.yp-jl-page-btn.is-active {
  background: var(--yp-jl-primary);
  color: #fff;
  border-color: var(--yp-jl-primary);
}

.yp-jl-page-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.yp-jl-page-ellipsis {
  padding: 0 4px;
  color: var(--yp-jl-muted);
}
