.event-detail {
  padding-top: 8px; /* Minimal space for fixed top bar */
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 768px;
  margin: 0 auto;
}

.event-detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-image-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
  background-color: #f5f5f5;
}

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

.event-info-card {
  background-color: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 24px;
}

.event-title {
  font-size: 32px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
  margin-bottom: 24px;
  line-height: 1.3;
}

.event-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.event-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-info-label {
  font-size: 16px;
  font-weight: 700;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-info-value {
  font-size: 20px;
  font-weight: 400;
  color: #000000; /* Text always stays black */
  line-height: 1.5;
}

.event-description {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--accent-color);
}

.event-description-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
  margin-bottom: 12px;
}

.event-description p {
  font-size: 18px;
  line-height: 1.6;
  color: #000000; /* Text always stays black */
  margin: 0;
}

/* TopBar styles are now in app/components/TopBar.css */

.back-button {
  font-size: 18px;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  padding: 12px 16px;
  background-color: transparent;
  color: #000000; /* Text always stays black */
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 24px;
  min-height: 44px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background-color: #f5f5f5;
}

.event-detail-meta {
  margin-bottom: 24px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
}

.event-detail-meta > div {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.event-detail-meta > div:last-child {
  margin-bottom: 0;
}

.event-detail-meta strong {
  font-weight: 700;
  color: #000000; /* Text always stays black */
}

.event-detail-description {
  margin-bottom: 32px;
}

.event-detail-description h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #000000; /* Text always stays black */
}

.event-detail-description p {
  font-size: 18px;
  line-height: 1.6;
  color: #000000; /* Text always stays black */
}

.event-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.action-button {
  flex: 1;
  min-width: 140px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  border-radius: 4px;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Join button uses accent color */
.action-button.join-button {
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--accent-color) !important;
}

.action-button.join-button:hover:not(:disabled) {
  opacity: 0.8;
  filter: brightness(0.9);
}

.action-button.join-button.joined {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.cancel-button {
  background-color: #ffffff;
  color: #000000; /* Text always stays black */
}

.cancel-button:hover {
  background-color: #f5f5f5;
}

.conflict-warning {
  padding: 20px;
  background-color: #fff3cd;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  margin-bottom: 24px;
}

.conflict-warning h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000000; /* Text always stays black */
}

.conflict-warning p {
  font-size: 18px;
  margin-bottom: 12px;
  color: #000000; /* Text always stays black */
}

.conflict-warning ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.conflict-warning li {
  font-size: 18px;
  margin-bottom: 8px;
  color: #000000; /* Text always stays black */
}

.conflict-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.conflict-actions .action-button {
  flex: 1;
  min-width: 120px;
}

.join-success {
  padding: 16px;
  background-color: #d4edda;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
}

.join-success p {
  font-size: 18px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
  margin: 0;
}

/* .contact-organizer-button styles are now in globals.css */

.contact-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.contact-form-modal {
  background-color: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.contact-form-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000000; /* Text always stays black */
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-close:hover {
  color: #666666;
}

.contact-form-modal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000000; /* Text always stays black */
}

.contact-form-submit {
  flex: 1;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 44px;
}

.contact-form-submit:hover:not(:disabled) {
  background-color: #333333;
}

.contact-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-cancel {
  flex: 1;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  background-color: #ffffff;
  color: #000000; /* Text always stays black */
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 44px;
}

.contact-form-cancel:hover {
  background-color: #f5f5f5;
}

.contact-success {
  padding: 16px;
  background-color: #d4edda;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  text-align: center;
}

.contact-success p {
  font-size: 18px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
  margin: 0;
}

.delete-event-button {
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border-color: #dc3545 !important;
}

.delete-event-button:hover {
  background-color: #c82333 !important;
  border-color: #bd2130 !important;
}

.delete-confirm-modal {
  background-color: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.delete-confirm-modal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #000000; /* Text always stays black */
}

.delete-confirm-modal p {
  font-size: 18px;
  line-height: 1.6;
  color: #000000; /* Text always stays black */
  margin-bottom: 24px;
}

.delete-confirm-actions {
  display: flex;
  gap: 12px;
}

.delete-confirm-button {
  flex: 1;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border: 2px solid #dc3545 !important;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 44px;
}

.delete-confirm-button:hover {
  background-color: #c82333 !important;
  border-color: #bd2130 !important;
}

.delete-cancel-button {
  flex: 1;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  background-color: #ffffff;
  color: #000000; /* Text always stays black */
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 44px;
}

.delete-cancel-button:hover {
  background-color: #f5f5f5;
}

/* Event posts section */
.event-posts-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px solid var(--accent-color);
}

.event-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.event-posts-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
  margin: 0;
}

/* Post card styling (same as community.css) - colorful and interesting */
.post-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.post-content {
  padding: 20px 24px;
}

.post-text {
  font-size: 18px;
  line-height: 1.7;
  color: #000000; /* Text always stays black */
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 2px solid #e8e8e8;
}

.post-author {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.post-author-name {
  font-size: 16px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
}

/* Like button - white background */
.post-like-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid var(--accent-color) !important;
  border-radius: 24px;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.post-like-button:hover:not(:disabled) {
  background-color: #f5f5f5 !important;
  transform: scale(1.05);
}

.post-like-button.liked {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  animation: heartBeat 0.5s ease;
}

.post-like-button.liked:hover:not(:disabled) {
  background-color: #f5f5f5 !important;
  transform: scale(1.05);
}

.like-icon {
  font-size: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.post-like-button:hover .like-icon {
  transform: scale(1.2);
}

.post-like-button.liked .like-icon {
  animation: pulse 0.5s ease;
}

.like-count {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.05);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Post Modal - matching community posts modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: #ffffff;
  padding: 32px;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
  margin-bottom: 20px;
}

.modal .close {
  color: #000000; /* Text always stays black */
  float: right;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .close:hover {
  color: #666666;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #000000; /* Text always stays black */
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  box-sizing: border-box;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-input textarea {
  min-height: 120px;
  resize: vertical;
}

