.event-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  background-color: #ffffff; /* Card backgrounds always stay white */
  margin-bottom: 16px;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.2s ease;
  min-height: 44px;
  overflow: hidden;
}

.event-card:hover {
  background-color: #f5f5f5;
}

.event-card-image-container {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.event-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card-header {
  margin-bottom: 12px;
  padding: 20px 20px 0 20px;
}

.event-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.event-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.event-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 16px;
  white-space: nowrap;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
}

.event-badge-community {
  background-color: #e8f4f8;
  color: #2c5f7d;
  border: 1px solid #b8d4e3;
}

.event-badge-public {
  background-color: #f0f0f0;
  color: #000000;
  border: 1px solid #d0d0d0;
}

.event-badge-friends {
  background-color: #fff4e6;
  color: #000000;
  border: 1px solid #ffd699;
}

.event-card-date {
  font-size: 18px;
  color: #000000;
  font-weight: 500;
}

.event-card-description {
  font-size: 18px;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 0 20px;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 20px 20px;
}

.event-card-location {
  font-size: 18px;
  color: #000000;
  font-weight: 500;
}

.event-card-stats {
  display: flex;
  gap: 16px;
  font-size: 18px;
  color: #000000;
}

.event-card-stats span {
  font-weight: 500;
}

.event-card-actions {
  padding: 0 20px 20px 20px;
  margin-top: 8px;
}

.join-event-button {
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  background-color: var(--accent-color);
  color: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.join-event-button:hover {
  background-color: #333333;
  border-color: #333333;
  color: #ffffff;
}

.going-button {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.going-button:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: #ffffff;
}

.submit-button {
  width: 100%;
  padding: 24px;
  font-size: 24px;
  font-weight: 700;
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--accent-color) !important;
  border-radius: 4px;
  cursor: pointer;
  min-height: 80px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  margin-top: 8px;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.submit-button:hover {
  opacity: 0.8;
  filter: brightness(0.9);
}


