/*
  EVENT PROGRESS STYLES
  ======================
  Powers the "Event Progress" section on events.html -- goal bars for
  sponsors, dollars raised, and volunteers (overall + per-role), fed live
  from a published Google Sheet via assets/js/event-progress.js.
*/

.event-progress {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 0 24px;
  text-align: center;
}

.event-progress h2 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h3);
  font-weight: 400;
  color: var(--color-scheme5-foreground-heading);
  margin: 0 0 8px 0;
}

.event-progress__subtitle {
  font-family: var(--font-body);
  color: var(--color-scheme5-foreground);
  opacity: 0.75;
  margin: 0 0 32px 0;
}

.event-progress__loading,
.event-progress__error {
  font-family: var(--font-body);
  color: var(--color-scheme5-foreground);
  opacity: 0.7;
}

.event-progress__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

@media (max-width: 700px) {
  .event-progress__grid {
    grid-template-columns: 1fr;
  }
}

/* Lets the JS-rendered cards inside this wrapper act as direct grid
   items of .event-progress__grid, instead of being nested one level
   deeper -- so they line up evenly with the donate card next to them. */
.event-progress__dynamic-cards {
  display: contents;
}

.donate-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.donate-card__text {
  max-width: 460px;
}

.donate-card h3 {
  font-family: var(--font-primary);
  font-size: 2.1rem;
  font-weight: bold;
  color: #372345;
  margin: 0 0 8px 0;
}

.donate-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-scheme5-foreground);
  opacity: 0.85;
  line-height: 1.5;
  margin: 0;
}

.donate-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.donate-card__button {
  display: inline-block;
  background-color: #e6bc5c;
  color: #372345;
  font-family: var(--font-body);
  font-weight: bold;
  text-decoration: none;
  padding: 16px 44px;
  border-radius: 999px;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(230, 188, 92, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.donate-card__button:hover {
  background-color: #edc873;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 26px rgba(230, 188, 92, 0.7);
}

.donate-card__button--closed {
  background-color: #b0b0b0;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}

.donate-card__button--closed:hover {
  background-color: #b0b0b0;
  transform: none;
  box-shadow: none;
}

.donate-card__note {
  font-size: 0.72rem;
  opacity: 0.6;
  margin: 0;
  text-align: center;
  max-width: 380px;
}

@media (max-width: 700px) {
  .donate-card {
    grid-column: auto;
    flex-direction: column;
    text-align: center;
  }
}

.progress-card {
  background-color: var(--color-scheme5-background);
  border-radius: 12px;
  padding: 20px 22px;
}

.progress-card__label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-scheme5-foreground);
  margin: 0 0 6px 0;
}

.progress-card__numbers {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  color: var(--color-scheme5-foreground-heading);
  margin: 0 0 12px 0;
}

.progress-card__numbers span {
  font-size: 0.95rem;
  opacity: 0.6;
  font-family: var(--font-body);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(55, 35, 69, 0.12);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background-color: #553d66;
  transition: width 0.6s ease;
}

.progress-card__percent {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-scheme5-foreground);
  opacity: 0.7;
  margin: 6px 0 0 0;
  text-align: right;
}

.progress-card--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.progress-card--clickable:hover,
.progress-card--clickable:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(55, 35, 69, 0.15);
  outline: none;
}

.role-row--clickable {
  cursor: pointer;
  border-radius: 6px;
  padding: 4px;
  margin-left: -4px;
  margin-right: -4px;
  transition: background-color 0.15s ease;
}

.role-row--clickable:hover,
.role-row--clickable:focus {
  background-color: rgba(85, 61, 102, 0.08);
  outline: none;
}

/* Volunteer roles breakdown - smaller, stacked bars inside one card */
.progress-card--roles .role-row {
  margin-bottom: 14px;
}

.progress-card--roles .role-row:last-child {
  margin-bottom: 0;
}

.role-row__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-scheme5-foreground);
  margin-bottom: 4px;
}

.role-row .progress-bar-track {
  height: 6px;
}

/* Donation-closed popup modal */
.donation-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(55, 35, 69, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.donation-modal {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.donation-modal h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 400;
  color: #372345;
  margin: 0 0 12px 0;
}

.donation-modal p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #372345;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.donation-modal__button {
  display: inline-block;
  background-color: #372345;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: bold;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.donation-modal__button:hover {
  opacity: 0.85;
}

.donation-modal__close {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #372345;
  opacity: 0.6;
  cursor: pointer;
  text-decoration: underline;
}
