/* Community events calendar — /events listing (#102) */

.community-events-page {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
  width: 100%;
}

.community-events-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.community-events-page h1 {
  font-family: 'Source Serif Pro', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000;
}

.community-events-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000;
}

.community-events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.community-events-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #737373;
  padding: 0.5rem;
  width: 12.25rem;
  max-width: 100%;
}

.community-events-filter select {
  appearance: none;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--dark-text);
  cursor: pointer;
  flex: 1;
  min-width: 0;
  padding-right: 1rem;
}

.community-events-filter-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  pointer-events: none;
}

.community-events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.community-event-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  text-align: left;
}

.community-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

.community-event-when {
  font-weight: 700;
  color: var(--haiti-red);
}

.community-event-status {
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
}

.community-event-title {
  margin: 0 0 0.5rem;
  font-family: 'Source Serif Pro', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.community-event-title a {
  color: #000;
  text-decoration: none;
}

.community-event-title a:hover {
  color: var(--haiti-red);
}

.community-event-host,
.community-event-location {
  margin: 0 0 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #444;
}

.community-event-description {
  margin: 0.75rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
}

.community-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.community-event-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f5f5f5;
  color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.community-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.community-event-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--haiti-blue);
  text-decoration: none;
}

.community-event-link:hover {
  text-decoration: underline;
}

.community-event-tickets {
  color: var(--haiti-red);
}

.community-events-empty,
.community-events-error {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #444;
  padding: 2rem 0;
}

.community-events-page + .suggest-event-section {
  margin-top: 0;
}

@media (min-width: 768px) {
  .community-events-header {
    text-align: left;
  }

  .community-events-filters {
    justify-content: flex-start;
  }
}
