/* ============================
   OPPORTUNITY HUB STYLES
   ============================ */

.opp-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
}

.opp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.opp-header h2 {
  color: var(--maroon);
  font-size: 24px;
}

.opp-subtitle {
  color: #666;
  font-size: 14px;
  margin: 4px 0 0 0;
}

/* CATEGORY TABS */
.opp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.opp-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--border-input);
  border-radius: 20px;
  background: var(--bg-cream);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.opp-tab:hover {
  border-color: var(--gold);
}

.opp-tab.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: white;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
}

.major-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 600;
}

.major-filter-label input[type="checkbox"] {
  accent-color: var(--maroon);
  width: 16px;
  height: 16px;
}

.major-filter-label input[type="checkbox"]:disabled + span {
  color: var(--text-faint);
  font-weight: 400;
}

/* FEATURED HANDSHAKE CARD */
.featured-card {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.featured-card h3 {
  color: var(--maroon);
  font-size: 18px;
  margin-bottom: 6px;
}

.featured-desc {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.5;
}

.featured-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.search-chip {
  padding: 5px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color 0.15s, background 0.15s;
}

.search-chip:hover {
  border-color: var(--gold);
  background: var(--bg-cream);
}

.featured-action {
  margin-top: 2px;
}

.featured-card .disclaimer-text {
  margin: 8px 0 0;
}

.inline-link {
  color: var(--maroon);
  font-weight: 600;
}

.inline-link:hover {
  text-decoration: underline;
}

/* RESOURCE LIST */
.opp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.loading-text,
.no-results {
  text-align: center;
  color: #888;
  padding: 40px 0;
  font-size: 15px;
}

/* RESOURCE CARD */
.opp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.opp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.opp-card-body {
  flex: 1;
}

.opp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 6px 0;
  font-family: 'Quicksand', sans-serif;
}

.opp-card-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.opp-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.opp-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.opp-tag-source {
  background: #f0ebe3;
  color: var(--text-muted);
}

.opp-tag-login {
  background: var(--warning-bg);
  color: var(--warning);
}

.opp-tag-majors {
  background: #e8f0ff;
  color: #4a6a9a;
}

.opp-card-action {
  flex-shrink: 0;
  align-self: center;
}

.opp-visit-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.opp-visit-btn:hover {
  background: var(--gold-dark);
}

.opp-disclaimer {
  margin-top: 22px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .opp-container {
    padding: 18px 14px;
  }

  .opp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .opp-card {
    flex-direction: column;
  }

  .opp-card-action {
    align-self: flex-start;
  }
}
