/* ------------------------------
   FONTS
------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ------------------------------
   LAYOUT
------------------------------*/
#job-board-layout {
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

/* ------------------------------
   FILTERS COLUMN
------------------------------*/
#filters-column {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-block {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.filter-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
}

.adzuna-filter-list {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
}

.adz-filter-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.adz-filter-link.active {
    color: #1c2252;
    font-weight: 700;
}

.count {
    color: #999;
    font-size: 12px;
}

/* ------------------------------
   KEYWORD BAR
------------------------------*/
.keyword-input-group {
    display: flex;
    gap: 5px;
    max-width: 100%;
    box-sizing: border-box;
}

.keyword-input-group input {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ------------------------------
   GLOBAL BUTTONS (EXCLUDING TABS)
------------------------------*/
.view-btn,
#keywordSearchBtn,
#pagination button,
#resetBtn {
    background: #1c2252 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
}

.view-btn:hover,
#keywordSearchBtn:hover,
#pagination button:hover,
#resetBtn:hover {
    opacity: 0.9;
}

/* ------------------------------
   JOB CARDS
------------------------------*/
.job-card {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.job-title a {
    color: #1c2252 !important;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.job-title a:hover {
    text-decoration: underline;
}

.job-meta-row {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.job-meta-row span {
    margin-right: 15px;
}

.job-badges-container {
    margin: 10px 0 12px 0;
}

.job-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 8px;
}

.salary-badge {
    background: #ecfdf5;
    color: #065f46;
}

.description {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ------------------------------
   PAGINATION
------------------------------*/
#pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#pagination button[disabled] {
    background: #d0d0d0 !important;
    color: #666 !important;
    cursor: not-allowed;
}

#pageSelector {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ------------------------------
   AUTOCOMPLETE
------------------------------*/
.autocomplete-list {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    position: absolute;
    width: calc(100% - 25px);
    display: none;
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-list li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.autocomplete-list li a:hover {
    background: #f1f5f9;
}

/* ------------------------------
   SKELETON LOADERS
------------------------------*/
.skeleton-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.skeleton-line {
    height: 12px;
    background: #eaeaea;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line.long  { width: 90%; }
.skeleton-line.mid   { width: 60%; }
.skeleton-line.short { width: 40%; }

/* ------------------------------
   CATEGORY TABS
------------------------------*/
#adzunaCategoryTabs {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* ✅ INACTIVE STATE */
#adzunaCategoryTabs .tab-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;

  background: #ffffff;
  color: #1c2252;
  border: 2px solid #1c2252;

  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  transition: all 0.25s ease;
}

/* ICONS */
#adzunaCategoryTabs .tab-button .icon img {
  width: 26px;
  height: 26px;
  filter: grayscale(100%) brightness(0.4);
  transition: all 0.25s ease;
}

/* HOVER */
#adzunaCategoryTabs .tab-button:hover {
  background: #f3f4f8;
}

/* ✅ ACTIVE STATES */
#adzunaCategoryTabs .tab-button[data-category="legal-jobs"].active {
  background: #1c2252 !important;
  color: #fff !important;
  border-color: #1c2252 !important;
}

#adzunaCategoryTabs .tab-button[data-category="accounting-finance-jobs"].active {
  background: #19baa6 !important;
  color: #fff !important;
  border-color: #19baa6 !important;
}

#adzunaCategoryTabs .tab-button[data-category="admin-jobs"].active {
  background: #e93add !important;
  color: #fff !important;
  border-color: #e93add !important;
}

/* ACTIVE ICONS */
#adzunaCategoryTabs .tab-button.active .icon img {
  filter: brightness(0) invert(1);
}

/* ------------------------------
   MOBILE
------------------------------*/
@media (max-width: 768px) {
  #adzunaCategoryTabs .tab-button {
    padding: 12px 16px;
    font-size: 14px;
  }

  #adzunaCategoryTabs .tab-button .icon img {
    width: 22px;
    height: 22px;
  }
}