/**
 * Hive Jobs – Shared UI components.
 *
 * Buttons, badges, links, notices, and honeypot.
 *
 * @package Hive\Jobs
 */

/* Badges */
.hive-jobs-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hive-jobs-badge--publish {
  background: #d4edda;
  color: #155724;
}

.hive-jobs-badge--pending {
  background: #fff3cd;
  color: #856404;
}

.hive-jobs-badge--draft {
  background: #e2e3e5;
  color: #383d41;
}

.hive-jobs-badge--expired {
  background: #f8d7da;
  color: #721c24;
}

.hive-jobs-badge--denied {
  background: #dc3232;
  color: #fff;
}

/* Breadcrumb */
.hive-jobs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hive-jobs-breadcrumb__link {
  color: #0073aa;
  text-decoration: none;
}

.hive-jobs-breadcrumb__link:hover {
  text-decoration: underline;
}

.hive-jobs-breadcrumb__separator {
  color: #999;
}

.hive-jobs-breadcrumb__current {
  color: #555;
}

/* Buttons */
.hive-jobs-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.hive-jobs-button--primary {
  background: #0073aa;
  color: #fff;
}

.hive-jobs-button--primary:hover {
  background: #005a87;
  color: #fff;
}

.hive-jobs-button--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hive-jobs-button--secondary {
  background: #f0f0f0;
  color: #1e1e1e;
  border: 1px solid #c0c0c0;
}

.hive-jobs-button--secondary:hover {
  background: #e0e0e0;
  color: #1e1e1e;
}

.hive-jobs-button--outline {
  background: transparent;
  color: #0073aa;
  border: 1px solid #0073aa;
}

.hive-jobs-button--outline:hover {
  background: #f0f7fc;
  color: #005a87;
  border-color: #005a87;
}

/* Links */
.hive-jobs-link {
  color: #0073aa;
  text-decoration: none;
}

.hive-jobs-link:hover {
  text-decoration: underline;
}

.hive-jobs-link--danger {
  color: #dc3545;
}

.hive-jobs-link--success {
  color: #28a745;
}

/* Notices */
.hive-jobs-notice {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hive-jobs-notice--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.hive-jobs-notice--info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.hive-jobs-notice--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Cascading location select overlays */
.hive-jobs-cascading-select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 8px;
  min-height: 30px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  line-height: 2;
  color: #2c3338;
  box-sizing: border-box;
  margin-top: 4px;
}

.hive-jobs-cascading-select:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.hive-jobs-cascading-select--readonly {
  background-color: #f0f0f1;
  color: #50575e;
  opacity: 0.8;
  cursor: not-allowed;
}

/* Honeypot — visually hidden */
.hive-jobs-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
