/* ============================================
   Opportunities Page - Additional Styles
   Used in: org-opportunity/opportunities.blade.php
   Loaded alongside: opportunities.css
   ============================================ */

/* Best Match Alert Banner */
.best-match-alert {
  background: linear-gradient(135deg, #e8f4fd 0%, #dceefb 100%);
  border: 1px solid #b3d8f0;
  border-left: 4px solid #00568f;
  border-radius: 8px;
  margin-bottom: 16px;
  animation: slideDownFade 0.3s ease;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.best-match-alert-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.best-match-alert-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #00568f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  margin-top: 1px;
}

.best-match-alert-body {
  flex: 1;
  font-size: 13.5px;
  color: #2c3e50;
  line-height: 1.55;
}

.best-match-alert-body strong {
  color: #00568f;
}

.best-match-alert-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #00568f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.best-match-alert-link:hover {
  border-bottom-color: #00568f;
  color: #00568f;
}

.best-match-alert-link i {
  font-size: 11px;
  margin-left: 3px;
}

.best-match-alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #7a9ab8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  margin-top: 1px;
}

.best-match-alert-close:hover {
  color: #00568f;
  background: rgba(0, 86, 143, 0.08);
}

/* Disabled Best Match option styling */
#sortBy option:disabled {
  color: #aaa;
}

/* Force distance badge onto its own line in card header */
.card-location {
  flex-wrap: wrap;
  padding-right: 80px;
  word-break: break-word;
}

.card-location .distance-badge {
  width: 100%;
  margin-top: 2px;
}

.opportunity-card .detail-text { color: #1E1E1E; }
.opportunity-card .opportunity-description { color: #1E1E1E; }

/* ── Autosuggest Dropdown ── */
.search-keyword-wrapper {
  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
}

.search-keyword-wrapper .search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.autosuggest-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 1050;
  max-height: 320px;
  overflow-y: auto;
}

.autosuggest-section-header {
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6c757d;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.autosuggest-item {
  padding: 9px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1E1E1E;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.autosuggest-item:last-child {
  border-bottom: none;
}

.autosuggest-item:hover,
.autosuggest-item.active {
  background: #f0f7ff;
  color: #0066cc;
}

.autosuggest-item i {
  color: #aaa;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: 12px;
}

.autosuggest-item:hover i,
.autosuggest-item.active i {
  color: #0066cc;
}

.autosuggest-no-results {
  padding: 12px 14px;
  color: #6c757d;
  font-size: 13px;
  text-align: center;
}
