/* Public event landing page styles */

.public-body {
  background: #f8f9fa;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111827;
}

.public-event {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.public-event__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0 0 0.75rem 0.75rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.public-event__header-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.public-event__logo {
  width: 52px;
  height: 52px;
  border-radius: 0.625rem;
  object-fit: cover;
  flex-shrink: 0;
}

.public-event__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.public-event__tagline {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0.125rem 0 0;
}

.public-event__header-right {
  text-align: right;
  flex-shrink: 0;
}

.public-event__dates {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.public-event__facility {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.125rem;
}

.public-event__banner {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 21 / 9;
  max-height: clamp(320px, 70vh, 820px);
}

.public-event__banner::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: var(--banner-src);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.05) brightness(0.88);
  transform: scale(1.08);
  z-index: 0;
}

.public-event__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.10) 100%);
}

.public-event__banner-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 720px) {
  .public-event__banner {
    aspect-ratio: auto;
    max-height: none;
    background: transparent;
  }
  .public-event__banner::before,
  .public-event__banner::after {
    display: none;
  }
  .public-event__banner-img {
    height: auto;
    object-fit: initial;
  }
}

.public-event__content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}

.public-event__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  order: 1;
}

.public-event__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  order: 2;
}

.public-event__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  padding: 1.5rem;
}

.public-event__card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin: 0 0 0.75rem;
}

.public-event__registration {
  position: sticky;
  top: 1rem;
}

.public-event__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.badge--green { background: #dcfce7; color: #166534; }
.badge--amber { background: #fef3c7; color: #92400e; }
.badge--red { background: #fee2e2; color: #991b1b; }
.badge--gray { background: #f3f4f6; color: #4b5563; }

.public-event__fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.875rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 0.625rem;
}

.public-event__fee-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
}

.public-event__fee-slots {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.125rem;
}

.public-event__fee-amount {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

.public-event__deadline {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.75rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.public-event__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.public-event__btn-register,
.public-event__btn-tickets {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.public-event__btn-register.btn-primary {
  background: #2563eb;
  color: #fff;
}

.public-event__btn-register.btn-primary:hover {
  background: #1d4ed8;
}

.public-event__btn-tickets.btn-secondary {
  background: #fff;
  border: 1.5px solid #2563eb;
  color: #2563eb;
}

.public-event__btn-tickets.btn-secondary:hover {
  background: #eff6ff;
}

.public-event__btn-register.btn-disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.public-event__cta-hint {
  font-size: 0.6875rem;
  color: #9ca3af;
  text-align: center;
  margin: 0.625rem 0 0;
}

.public-event__divisions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.public-event__divisions-list li {
  font-size: 0.8125rem;
  color: #374151;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.public-event__divisions-list li:last-child {
  border-bottom: none;
}

.public-event__description {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
}

.public-event__description p {
  margin: 0 0 0.75rem;
}

.public-event__description ul,
.public-event__description ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.public-event__schedule {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.public-event__schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

.public-event__schedule-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
}

.public-event__schedule-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.public-event__schedule-facility {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

.public-event__maps-link {
  color: #2563eb;
  text-decoration: none;
}

.public-event__maps-link:hover {
  text-decoration: underline;
}

.public-event__contact-link {
  color: #2563eb;
  text-decoration: none;
}

.public-event__contact-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .public-event__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-event__header-right {
    text-align: left;
  }

  .public-event__content {
    grid-template-columns: 1fr;
  }

  .public-event__sidebar {
    order: 1;
  }

  .public-event__main {
    order: 2;
  }

  .public-event__registration {
    position: static;
  }
}
