/* Shared layout for the audition + event detail pages (kept consistent). */

.detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.detail-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail-back {
  display: inline-block;
  color: #8e44ad;
  text-decoration: none;
  font-weight: 600;
}
.detail-back:hover { text-decoration: underline; }

.detail-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .detail-card { flex-direction: row; }
}

.detail-image { width: 100%; padding: 1.25rem; }
@media (min-width: 768px) {
  .detail-image { width: 40%; padding: 1.5rem; }
}
.detail-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-content { padding: 1.5rem; flex: 1; }

.detail-title {
  font-family: 'STIX Two Text', Georgia, serif;
  font-size: 1.9rem;
  margin: 0 0 0.4rem;
  color: #2c3e50;
}
.detail-org { font-size: 1.15rem; color: #6c757d; margin: 0 0 1rem; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.detail-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #95a5a6; /* default */
}
/* Payment */
.detail-tag.paid { background: #e74c3c; }
.detail-tag.unpaid, .detail-tag.free { background: #27ae60; }
/* Equity */
.detail-tag.equity { background: #2980b9; }
.detail-tag.nonequity { background: #7f8c8d; }
/* Audition type / event format */
.detail-tag.inperson { background: #2980b9; }
.detail-tag.virtual, .detail-tag.online { background: #16a085; }
.detail-tag.both, .detail-tag.hybrid { background: #8e44ad; }
/* Event types */
.detail-tag.workshopsclasses { background: #3498db; }
.detail-tag.networking { background: #e67e22; }
.detail-tag.auditionprep { background: #9b59b6; }
.detail-tag.panelsqa { background: #2ecc71; }
.detail-tag.communityevents { background: #f39c12; }
.detail-tag.technicaltheatre { background: #1abc9c; }
.detail-tag.youthprograms { background: #d35400; }
.detail-tag.professionaldevelopment { background: #c0392b; }

.detail-info { margin-bottom: 1.25rem; }
.detail-label { font-weight: 600; color: #555; margin: 0 0 0.2rem; }
.detail-info p:not(.detail-label) { margin: 0; white-space: pre-line; line-height: 1.6; }

.detail-contact {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.detail-contact p:not(.detail-label) { margin: 0; white-space: pre-line; line-height: 1.6; }

.detail-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.detail-buttons .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #8e44ad;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.2s;
  text-align: center;
}
.detail-buttons .btn:hover { background: #9b59b6; transform: translateY(-2px); }
.detail-buttons .btn-register { background: #f39c12; }
.detail-buttons .btn-register:hover { background: #e67e22; }

.donation-section {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.donation-section p { color: #555; margin-bottom: 0.75rem; }

.adsense-section { margin-top: 1.5rem; text-align: center; }

@media (max-width: 768px) {
  .detail-title { font-size: 1.5rem; }
  .detail-buttons { flex-direction: column; }
  .detail-buttons .btn { width: 100%; }
}
