/* ============================================================
   MEDC Invitational — Find Team / recruitment page
   ============================================================ */

.find-team-wrap {
  padding: 24px 0 48px;
  max-width: 960px;
  margin: 0 auto;
}

/* ---------- Hero / header ---------- */
.find-team-hero .cardPad {
  padding-bottom: 24px;
}

.find-team-hero__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(234, 240, 255, 0.98);
}

.find-team-hero__subtitle {
  font-size: 14px;
  margin: 0 0 20px;
}

.find-team-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.find-team-tab {
  font-weight: 600;
}

.find-team-tab.is-active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35) 0%, rgba(147, 51, 234, 0.2) 100%);
  border-color: rgba(96, 165, 250, 0.5);
  color: rgba(234, 240, 255, 0.98);
}

/* ---------- Filters ---------- */
.find-team-filters {
  margin-bottom: 16px;
}

.find-team-filters__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(183, 195, 230, 0.9);
  margin: 0 0 14px;
}

.find-team-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
}

.find-team-filter-group {
  flex: 0 1 auto;
  min-width: 120px;
}

.find-team-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(183, 195, 230, 0.8);
  margin-bottom: 6px;
}

.find-team-filter-input,
.find-team-filter-select {
  width: 100%;
  min-width: 140px;
  padding: 8px 12px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(234, 240, 255, 0.95);
}

.find-team-filter-input:focus,
.find-team-filter-select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
}

.find-team-filter-input {
  max-width: 200px;
}

.find-team-filter-actions {
  margin-left: auto;
}

/* ---------- Create listing CTA ---------- */
.find-team-create-wrap {
  margin-bottom: 24px;
}

/* ---------- Section ---------- */
.find-team-section {
  margin-bottom: 32px;
}

.find-team-section__title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(234, 240, 255, 0.98);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.find-team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ---------- Listing card ---------- */
.find-team-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 18, 35, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.find-team-card:hover {
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.find-team-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.find-team-card__title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(234, 240, 255, 0.98);
  margin: 0;
  line-height: 1.3;
}

.find-team-card__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.2);
  color: rgba(147, 197, 253, 0.95);
}

.find-team-card__badge--found,
.find-team-card__badge--full {
  background: rgba(34, 197, 94, 0.2);
  color: rgba(134, 239, 172, 0.95);
}

.find-team-card__meta {
  font-size: 13px;
  color: rgba(183, 195, 230, 0.9);
  margin-bottom: 10px;
  line-height: 1.5;
}

.find-team-card__meta span {
  display: inline-block;
  margin-right: 12px;
}

.find-team-card__bio {
  font-size: 13px;
  color: rgba(203, 213, 232, 0.85);
  margin-bottom: 12px;
  line-height: 1.5;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.find-team-card__contact {
  font-size: 12px;
  color: rgba(183, 195, 230, 0.8);
  margin-bottom: 14px;
}

.find-team-card__contact a {
  color: #93c5fd;
  text-decoration: none;
}

.find-team-card__contact a:hover {
  text-decoration: underline;
}

.find-team-card__posted {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 12px;
}

.find-team-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.find-team-card .btn--contact {
  font-size: 13px;
  padding: 8px 14px;
}

/* ---------- Empty state ---------- */
.find-team-empty .cardPad {
  padding: 24px;
  text-align: center;
}

.find-team-empty p {
  margin: 0 0 16px;
}

.find-team-empty-cta {
  margin: 0;
}

/* ---------- Modal ---------- */
.find-team-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.find-team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.find-team-modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.find-team-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.find-team-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: rgba(234, 240, 255, 0.98);
}

.find-team-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: rgba(183, 195, 230, 0.9);
  cursor: pointer;
  padding: 4px;
}

.find-team-modal__close:hover {
  color: rgba(234, 240, 255, 0.98);
}

.find-team-modal__hint {
  margin-bottom: 16px;
}

/* ---------- Form ---------- */
.find-team-form__group {
  margin-bottom: 14px;
}

.find-team-form__group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(183, 195, 230, 0.9);
  margin-bottom: 6px;
}

.find-team-form__group .required {
  color: #f87171;
}

.find-team-form__group input[type="text"],
.find-team-form__group input[type="number"],
.find-team-form__group select,
.find-team-form__group textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(234, 240, 255, 0.95);
}

.find-team-form__group input:focus,
.find-team-form__group select:focus,
.find-team-form__group textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
}

.find-team-form__group textarea {
  resize: vertical;
  min-height: 70px;
}

.find-team-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .find-team-filters__row {
    flex-direction: column;
    align-items: stretch;
  }
  .find-team-filter-group {
    min-width: 0;
  }
  .find-team-filter-input {
    max-width: none;
  }
  .find-team-filter-actions {
    margin-left: 0;
  }
  .find-team-cards {
    grid-template-columns: 1fr;
  }
}
