/* Events Detail Page — Mobile First */

.evt-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.evt-detail-back {
  display: inline-block;
  color: var(--accent, #155dfc);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.evt-detail-back:hover {
  text-decoration: underline;
}

/* Layout: stacked on mobile, side-by-side on desktop */
.evt-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 769px) {
  .evt-detail-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Left: Image */
.evt-detail-image-wrap {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
}

.evt-detail-image {
  width: 100%;
  display: block;
  border-radius: 8px;
}

@media (min-width: 769px) {
  .evt-detail-image-wrap {
    width: 384px;
    position: sticky;
    top: 24px;
  }

  .evt-detail-image {
    width: 384px;
    height: auto;
    max-height: 512px;
    object-fit: cover;
  }
}

/* Right: Content */
.evt-detail-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Info Card */
.evt-detail-card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.evt-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #101828;
  margin: 0 0 24px;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .evt-detail-title {
    font-size: 1.875rem;
  }
}

/* When / Location sections */
.evt-detail-section {
  margin-bottom: 16px;
}

.evt-detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  font-style: italic;
  color: #101828;
  line-height: 20px;
  margin-bottom: 4px;
}

.evt-detail-value {
  font-size: 1rem;
  line-height: 1.5;
  color: #364153;
}

/* Button Row */
.evt-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.evt-detail-actions .evt-btn-rsvp,
.evt-detail-actions .evt-btn-cal {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  line-height: 24px;
}

.evt-detail-actions .evt-btn-cal {
  background: #000;
  color: #fff;
  border-color: #000;
}

.evt-detail-actions .evt-btn-cal:hover {
  opacity: 0.9;
  background: #000;
}

/* Description Card */
.evt-detail-body {
  font-size: 1rem;
  line-height: 1.5;
  color: #364153;
}

.evt-detail-body p {
  margin-bottom: 16px;
}

.evt-detail-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.evt-detail-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.evt-detail-body ul,
.evt-detail-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.evt-detail-body li {
  margin-bottom: 6px;
}

.evt-detail-body a {
  color: var(--accent, #155dfc);
  text-decoration: underline;
}

.evt-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

.evt-detail-body blockquote {
  border-left: 4px solid #d1d5dc;
  padding-left: 20px;
  margin: 16px 0;
  color: #364153;
}

/* Footer */
.evt-detail-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Not Found */
.evt-not-found {
  text-align: center;
  padding: 60px 0;
}

.evt-not-found h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.evt-not-found p {
  color: var(--foreground);
  opacity: 0.6;
  margin-bottom: 16px;
}

/* Mobile stacked buttons */
@media (max-width: 480px) {
  .evt-detail-actions {
    flex-direction: column;
  }
}
