/* 扑克桌选座布局 - 参考 depu-demo miniapp reservation 页，适配黑底白红主题 */

.table-page {
  padding: 0 12px 100px;
}

.booking-event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 16px;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
}

.booking-event-card span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.booking-event-card strong {
  font-size: 18px;
}

.booking-event-card em {
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-red);
}

.table-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.table-tabs span {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.table-tabs span.active {
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

.table-carousel {
  display: flex;
  gap: 14px;
  margin: 0 -12px;
  padding: 0 12px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.table-carousel::-webkit-scrollbar {
  display: none;
}

.booking-table-card {
  position: relative;
  flex: 0 0 calc(100% - 24px);
  min-height: 480px;
  padding: 16px;
  overflow: hidden;
  scroll-snap-align: center;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-table-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 114px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(231, 0, 18, 0.12), transparent 66%);
  filter: blur(14px);
  transform: translateX(-50%);
  pointer-events: none;
}

.table-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.table-card-head span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.table-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.table-card-head em {
  color: var(--accent-red);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.seat-map {
  position: relative;
  z-index: 1;
  height: 360px;
  margin-top: 6px;
}

.poker-table {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 210px;
  height: 120px;
  place-items: center;
  border: 4px solid rgba(231, 0, 18, 0.85);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 44%),
    radial-gradient(circle at 50% 64%, rgba(120, 0, 20, 0.5), transparent 55%),
    linear-gradient(155deg, #3a0a12, #120508 68%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%) perspective(400px) rotateX(5deg);
}

.poker-table::before {
  content: "";
  position: absolute;
  inset: 12px 20px;
  border: 1px solid rgba(231, 0, 18, 0.35);
  border-radius: 50%;
}

.seat-choice {
  position: absolute;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.seat-choice.selected {
  border-color: var(--accent-red);
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(231, 0, 18, 0.2);
}

.seat-choice.booked {
  border-color: rgba(0, 0, 0, 0.15);
  background: #e8e8e8;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.seat-1 { left: calc(50% - 25px); top: 8px; }
.seat-2 { right: 50px; top: 28px; }
.seat-3 { right: -6px; top: 98px; }
.seat-4 { right: 10px; top: 178px; }
.seat-5 { right: 58px; bottom: 48px; }
.seat-6 { left: calc(50% - 25px); bottom: 0; }
.seat-7 { left: 58px; bottom: 48px; }
.seat-8 { left: 10px; top: 178px; }
.seat-9 { left: -6px; top: 98px; }
.seat-10 { left: 50px; top: 28px; }

.seat-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.seat-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.seat-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.seat-legend .selected {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.seat-legend .booked {
  background: #ccc;
  border-color: #ccc;
}

.booking-summary {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px calc(14px + var(--safe-bottom));
  background: #fff;
  color: var(--text);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.booking-summary span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.booking-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.booking-summary .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
