/* Volunteer "file cabinet" opportunity layout */

.volunteer-cabinet-intro {
  max-width: 54rem;
}

.volunteer-opportunities-status {
  margin-top: 1.5rem;
}

.volunteer-cabinet {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.volunteer-cabinet-group {
  display: grid;
  gap: 1rem;
}

.volunteer-cabinet-group-heading {
  padding: 0 0.25rem;
}

.volunteer-cabinet-group-heading .eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  line-height: 1;
  color: #fff;
}

.volunteer-cabinet-group[data-opportunity-group="encouragement"]
  .volunteer-cabinet-group-heading .eyebrow {
  background: #8f3540;
}

.volunteer-cabinet-group[data-opportunity-group="practical"]
  .volunteer-cabinet-group-heading .eyebrow {
  background: #72806b;
}

.volunteer-cabinet-group[data-opportunity-group="events-admin"]
  .volunteer-cabinet-group-heading .eyebrow {
  background: #74749a;
}

.volunteer-cabinet-group-heading h3 {
  margin: 0;
}

.volunteer-cabinet-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.volunteer-opportunity-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.volunteer-opportunity-copy {
  padding-bottom: 1rem;
}

.volunteer-opportunity-copy h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.volunteer-opportunity-copy p {
  margin-bottom: 0;
}

.volunteer-shift-list {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.volunteer-shift-empty {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.72;
}

.volunteer-shift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
}

.volunteer-shift-row.is-registered {
  border-width: 2px;
  border-color: #72806b;
  background: rgba(114, 128, 107, 0.09);
}

.volunteer-shift-details {
  min-width: 0;
}

.volunteer-shift-details p {
  margin: 0;
}

.volunteer-shift-registered-badge {
  display: inline-block;
  margin-bottom: 0.4rem !important;
  padding: 0.26rem 0.52rem;
  border-radius: 999px;
  background: #72806b;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.volunteer-shift-event {
  font-weight: 700;
}

.volunteer-shift-label {
  margin-top: 0.15rem !important;
}

.volunteer-shift-date {
  margin-top: 0.35rem !important;
}

.volunteer-shift-signup {
  flex: 0 0 auto;
}

.volunteer-shift-registered-action {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  color: #4e5a49;
  background: rgba(114, 128, 107, 0.16);
}

@media (max-width: 800px) {
  .volunteer-cabinet {
    gap: 2rem;
  }

  .volunteer-cabinet-cards {
    grid-template-columns: 1fr;
  }

  .volunteer-shift-row {
    align-items: stretch;
    flex-direction: column;
  }

  .volunteer-shift-signup,
  .volunteer-shift-registered-action {
    width: 100%;
    text-align: center;
  }
}

/* Volunteer shift capacity states */
.volunteer-shift-row.capacity-unlimited {
  border-left: 4px solid #4f8a60;
}

.volunteer-shift-row.capacity-limited {
  border-left: 4px solid #5f89a6;
}

.volunteer-shift-row.capacity-nearly-full {
  border-left: 4px solid #c28a28;
  background: #fffaf0;
}

.volunteer-shift-row.capacity-full {
  border-left: 4px solid #a13d49;
  background: #fff6f7;
}

.volunteer-capacity-message {
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
}

.capacity-unlimited .volunteer-capacity-message {
  color: #27633d;
  background: #e5f3e9;
}

.capacity-limited .volunteer-capacity-message {
  color: #315b78;
  background: #e6f0f7;
}

.capacity-nearly-full .volunteer-capacity-message {
  color: #7b510f;
  background: #fff0c9;
}

.capacity-full .volunteer-capacity-message {
  color: #842f39;
  background: #f7dfe2;
}
