/* =============================================
   Event Public Detail — shared styles for
   league + ladder public pages.
   Prefix: epd- (event-public-detail)
   ============================================= */

/* ── Hero ── */
.epd-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #163544) 100%);
  padding: 2.5rem 2rem 2rem;
  margin: -1.5rem -1.5rem 0;
  color: #fff;
  overflow: hidden;
}
.epd-hero--has-image {
  background-size: cover;
  background-position: center;
  min-height: 260px;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}
.epd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,64,81,0.85) 0%, rgba(29,64,81,0.95) 100%);
}
.epd-hero--has-image .epd-hero-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.2) 100%);
}
.epd-hero-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
}
.epd-back {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  text-decoration: none; margin-bottom: 0.75rem;
  transition: color 0.15s;
}
.epd-back:hover { color: #fff; }
.epd-title {
  font-size: 2rem; font-weight: 800; margin: 0 0 0.4rem;
  line-height: 1.2; color: #fff;
}
.epd-location {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.95rem; color: rgba(255,255,255,0.8); margin: 0;
}
.epd-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;
}
.epd-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  backdrop-filter: blur(4px);
}

/* ── Body layout ── */
.epd-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  max-width: 900px;
  margin: -1.5rem auto 0;
  padding: 2rem 2rem 3rem;
  position: relative; z-index: 2;
}

/* ── Cards ── */
.epd-card {
  background: var(--t-surface-elevated);
  border: 1px solid var(--t-border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.epd-card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--t-heading, var(--primary));
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--t-border);
}
.epd-desc {
  font-size: 0.9375rem; line-height: 1.65;
  color: var(--t-text); margin: 0;
  white-space: pre-line;
}

/* ── Detail rows ── */
.epd-details { display: flex; flex-direction: column; gap: 0.85rem; }
.epd-detail-row {
  display: flex; align-items: center; gap: 0.85rem;
}
.epd-detail-icon {
  color: var(--mint); flex-shrink: 0;
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--mint) 12%, var(--t-surface-elevated));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 7px;
}
.epd-detail-label {
  font-size: 0.78rem; color: var(--t-text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.epd-detail-value {
  font-size: 0.9375rem; font-weight: 600; color: var(--t-text);
}

/* ── Registration card ── */
.epd-reg-card { margin-bottom: 0; position: sticky; top: 1rem; }
.epd-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem;
}
.epd-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.epd-status-dot--open { background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.epd-status-dot--closed { background: var(--danger, #e74c3c); }
.epd-status-dot--upcoming { background: var(--warning, #f59e0b); }
.epd-status--open { color: var(--mint); }
.epd-status--closed { color: var(--t-text-muted); }
.epd-status--upcoming { color: var(--warning, #f59e0b); }

/* Capacity bar */
.epd-capacity { margin-bottom: 1rem; }
.epd-capacity-bar {
  height: 6px; border-radius: 99px;
  background: var(--t-surface); overflow: hidden;
  margin-bottom: 0.4rem;
}
.epd-capacity-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--mint), color-mix(in srgb, var(--mint) 70%, var(--primary)));
  transition: width 0.4s ease;
}
.epd-capacity-text {
  font-size: 0.85rem; color: var(--t-text-muted);
}

.epd-deadline {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--t-text-muted); margin-bottom: 1rem;
}

/* Price */
.epd-price { margin-bottom: 1rem; }
.epd-price-amount {
  font-size: 1.5rem; font-weight: 800; color: var(--t-text);
}
.epd-price-currency {
  font-size: 0.85rem; font-weight: 600; color: var(--t-text-muted); margin-left: 0.2rem;
}
.epd-price-free {
  font-size: 1.25rem; font-weight: 700; color: var(--mint);
}

/* CTA */
.epd-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.875rem 1.5rem;
  font-size: 1rem; font-weight: 700;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.epd-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Welcome message */
.epd-message {
  margin-top: 1rem; padding: 0.75rem 1rem;
  background: var(--t-surface);
  border-radius: 10px;
  font-size: 0.875rem; color: var(--t-text-muted);
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .epd-hero { padding: 2rem 1.25rem 1.5rem; margin: -1rem -1rem 0; }
  .epd-title { font-size: 1.5rem; }
  .epd-body {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 2rem;
  }
  .epd-sidebar { order: -1; }
  .epd-reg-card { position: static; }
}

@media (max-width: 480px) {
  .epd-hero { padding: 1.5rem 1rem 1.25rem; }
  .epd-title { font-size: 1.25rem; }
  .epd-body { padding: 1.25rem 0.75rem 2rem; }
  .epd-location { font-size: 0.85rem; }
  .epd-detail-icon { width: 30px; height: 30px; padding: 5px; }
}
