/* ============================================================
   Club Detail — Landing Page
   ============================================================ */

/* Rich text body (Quill) ------------------------------------ */
.club-body.ql-editor {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  padding: 0;
}
.club-body.ql-editor p { margin-bottom: 1.4em; }
.club-body.ql-editor h1,
.club-body.ql-editor h2,
.club-body.ql-editor h3 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}
.club-body.ql-editor h2 { font-size: 1.45rem; }
.club-body.ql-editor h3 { font-size: 1.15rem; }
.club-body.ql-editor a { color: var(--club-primary, #ef4444); }
.club-body.ql-editor img {
  border-radius: 0.5rem;
  max-width: 100%;
  margin: 1.5rem 0;
}
.club-body.ql-editor blockquote {
  border-left: 3px solid var(--club-primary, #ef4444);
  padding: 0.5rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}

.club-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.club-back-link:hover { color: var(--text-primary); }

/* ============================================================
   Layout root
   ============================================================ */
.club-landing {
  margin-top: -4.5rem;
  --club-primary-rgb: var(--club-primary-rgb, 239, 68, 68);
  --club-secondary-rgb: var(--club-secondary-rgb, 96, 165, 250);
  background: var(--bg-page);
}

.club-section {
  position: relative;
  padding: 5rem 2rem;
}
.club-section--tight { padding: 3.5rem 2rem; }
.club-section__inner {
  max-width: 76rem;
  margin: 0 auto;
}
.club-section__header {
  text-align: center;
  margin-bottom: 3rem;
}
.club-section__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--club-primary, #ef4444);
  margin-bottom: 0.75rem;
}
.club-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.club-section__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   Hero — cinematic full-bleed
   ============================================================ */
.club-hero {
  position: relative;
  min-height: 62vh;
  padding: 4.5rem 2rem 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.club-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.club-hero__bg--fallback {
  background: linear-gradient(135deg,
    var(--club-primary, #ef4444) 0%,
    var(--club-secondary, #60a5fa) 100%);
}

.club-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center top,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(180deg,
      transparent 0%,
      rgba(var(--club-primary-rgb), 0.18) 60%,
      rgba(var(--club-primary-rgb), 0.45) 100%);
}

.club-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 50rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.club-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.club-hero__badge-emoji { font-size: 1rem; line-height: 1; }

.club-hero__logo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.1rem;
  object-fit: cover;
  background: #fff;
  padding: 0.45rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 14px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(var(--club-primary-rgb), 0.35);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.club-hero__logo:hover { transform: rotate(0deg) scale(1.03); }

.club-hero__brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.club-hero__brand-tag::before,
.club-hero__brand-tag::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.club-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.club-hero__title--placeholder { font-style: italic; opacity: 0.4; }

.club-hero__short {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.club-hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.club-hero__meta {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.6rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}
.club-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.club-hero__meta-item svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #fff;
  opacity: 0.9;
}
.club-hero__meta-sep {
  width: 1px;
  height: 0.95rem;
  background: rgba(255, 255, 255, 0.25);
}

/* Scroll cue */
.club-hero__scroll {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   CTAs
   ============================================================ */
.club-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}
.club-cta svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }

.club-cta--primary {
  background: var(--club-primary, #ef4444);
  color: var(--club-text-on-brand, #fff);
  box-shadow:
    0 8px 24px rgba(var(--club-primary-rgb), 0.45),
    0 2px 6px rgba(0, 0, 0, 0.2);
}
.club-cta--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 12px 28px rgba(var(--club-primary-rgb), 0.55),
    0 3px 8px rgba(0, 0, 0, 0.25);
}

.club-cta--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.club-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.club-cta--ghost {
  background: var(--bg-card-medium);
  color: var(--text-secondary);
  border-color: var(--border-normal);
  text-transform: uppercase;
  font-size: 0.75rem;
}
.club-cta--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong2);
}

.club-cta--member {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.35);
  cursor: default;
}
.club-cta--warning {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
  border-color: rgba(251, 191, 36, 0.35);
  cursor: default;
}
.club-cta--disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  cursor: not-allowed;
}

.club-cta__price-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0.5rem 0 0;
  width: 100%;
  letter-spacing: 0.03em;
}

/* ============================================================
   Stats band
   ============================================================ */
.club-stats {
  position: relative;
  background: var(--bg-page);
  padding: 1.5rem 2rem 2rem;
  z-index: 3;
  border-bottom: 1px solid var(--border-subtle);
}
.club-stats__grid {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}
.club-stat {
  position: relative;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: all 0.2s;
  overflow: hidden;
}
.club-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--club-primary, #ef4444),
    rgba(var(--club-primary-rgb), 0.4));
}
.club-stat:hover {
  border-color: rgba(var(--club-primary-rgb), 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--club-primary-rgb), 0.12);
}
.club-stat__icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  background: rgba(var(--club-primary-rgb), 0.1);
  color: var(--club-primary, #ef4444);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.club-stat__icon svg { width: 1rem; height: 1rem; }
.club-stat__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}
.club-stat__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}
.club-stat__value--free { color: #16a34a; }
.club-stat__value--muted { color: var(--text-secondary); font-weight: 500; }
.club-stat__suffix {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 0.25rem;
}

/* ============================================================
   About section
   ============================================================ */
.club-about {
  background: var(--bg-page);
  padding: 5rem 2rem;
}
.club-about__inner {
  max-width: 48rem;
  margin: 0 auto;
}
.club-about__header {
  margin-bottom: 2.5rem;
  text-align: left;
}
.club-about__empty {
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem 0;
}
.club-about__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* ============================================================
   Events grid
   ============================================================ */
.club-events {
  padding: 5rem 2rem;
  background:
    linear-gradient(180deg,
      var(--bg-page) 0%,
      rgba(var(--club-primary-rgb), 0.04) 50%,
      var(--bg-page) 100%);
}
.club-events__grid {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.club-event-card {
  position: relative;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-normal);
  border-radius: 0.85rem;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.club-event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--club-primary-rgb), 0.5);
  box-shadow: 0 14px 32px rgba(var(--club-primary-rgb), 0.2);
}
.club-event-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card-medium);
}
.club-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.club-event-card:hover .club-event-card__media img { transform: scale(1.05); }
.club-event-card__date {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--club-primary-rgb), 0.5);
}
.club-event-card__date-day {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.club-event-card__date-month {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--club-primary-rgb), 1);
  margin-top: 0.15rem;
}
.club-event-card__type {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--club-primary-rgb), 0.92);
  color: var(--club-text-on-brand, #fff);
}
.club-event-card__body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.club-event-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.club-event-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
}
.club-event-card__meta svg { width: 0.85rem; height: 0.85rem; flex-shrink: 0; color: var(--club-primary, #ef4444); }

/* ============================================================
   Admin members
   ============================================================ */
.club-admin-members {
  padding: 3rem 2rem;
  background: var(--bg-page);
}
.club-admin-members__inner {
  max-width: 48rem;
  margin: 0 auto;
}
.club-admin-members__panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-normal);
  border-radius: 0.75rem;
  overflow: hidden;
}
.club-admin-members__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(var(--club-primary-rgb), 0.04);
}
.club-admin-members__summary::-webkit-details-marker { display: none; }
.club-admin-members__summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--club-primary, #ef4444);
  transition: transform 0.2s;
}
.club-admin-members__panel[open] .club-admin-members__summary::after {
  transform: rotate(45deg);
}
.club-admin-members__list {
  display: flex;
  flex-direction: column;
}
.club-admin-members__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid var(--border-subtle);
}
.club-admin-members__name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.club-admin-members__remove {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--club-primary, #ef4444);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: 0.35rem;
  transition: all 0.15s;
}
.club-admin-members__remove:hover {
  background: rgba(var(--club-primary-rgb), 0.1);
  border-color: rgba(var(--club-primary-rgb), 0.3);
}
.club-admin-members__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ============================================================
   Other clubs
   ============================================================ */
.club-others {
  padding: 5rem 2rem 6rem;
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
}
.club-others__grid {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.club-other-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-normal);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
}
.club-other-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.club-other-card__logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(var(--club-primary-rgb), 0.08);
  border: 1px solid rgba(var(--club-primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--club-primary, #ef4444);
  overflow: hidden;
  flex-shrink: 0;
}
.club-other-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.club-other-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.club-other-card__brand {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .club-events__grid { grid-template-columns: repeat(2, 1fr); }
  .club-others__grid { grid-template-columns: repeat(2, 1fr); }
  .club-section { padding: 4rem 1.5rem; }
  .club-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 640px) {
  .club-hero {
    min-height: 70vh;
    padding: 5rem 1.25rem 5.5rem;
  }
  .club-hero__title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .club-hero__short { font-size: 0.95rem; }
  .club-hero__logo { width: 4.5rem; height: 4.5rem; border-radius: 0.9rem; padding: 0.35rem; }
  .club-hero__meta {
    padding: 0.55rem 1rem;
    gap: 0.85rem;
    bottom: 1rem;
    max-width: calc(100% - 1.5rem);
  }
  .club-hero__meta-item { font-size: 0.72rem; }
  .club-hero__meta-sep { display: none; }

  .club-stats { padding: 1.5rem 1.25rem 1.5rem; }
  .club-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .club-stat { padding: 1.15rem 1rem; }

  .club-about, .club-events, .club-others { padding: 3.5rem 1.25rem; }
  .club-section__title { font-size: 1.55rem; }
  .club-section__header { margin-bottom: 2rem; }

  .club-events__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .club-others__grid { grid-template-columns: 1fr; gap: 0.85rem; }

  .club-hero__ctas { flex-direction: column; width: 100%; }
  .club-hero__ctas .club-cta { width: 100%; }

  .club-cta { padding: 0.85rem 1.25rem; font-size: 0.78rem; }
}
