/* Page-owned styles for Premium Poker Lounge */

.lounge-hero {
  position: relative;
  max-width: var(--container-wide);
  margin-inline: auto;
  background-color: var(--color-ink);
}

.lounge-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.lounge-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lounge-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 20, 26, 0.55) 0%, rgba(17, 20, 26, 0.25) 45%, rgba(17, 20, 26, 0) 70%);
  pointer-events: none;
}

.lounge-hero__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-16);
  padding: var(--space-48);
  color: var(--color-accent-ink);
  text-align: left;
}

.lounge-hero__content h1 {
  color: var(--color-accent-ink);
  max-width: 45ch;
  margin-block-end: 0;
}

.lounge-hero__content p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.9);
  margin-block-end: 0;
}

.lounge-hero__content .data-tag {
  align-self: flex-start;
  background-color: rgba(17, 20, 26, 0.7);
  color: var(--color-accent-ink);
  border-color: rgba(255, 255, 255, 0.4);
}

.lounge-difference {
  padding-block: var(--space-96);
}

.lounge-difference h2 {
  margin-block-end: var(--space-48);
}

.lounge-difference__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
}

.lounge-difference__card {
  background-color: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-0);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
  transition: border-color var(--transition-fast);
}

.lounge-difference__card:hover {
  border-inline-start: 1px solid var(--color-accent);
}

.lounge-difference__icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lounge-difference__card h3 {
  margin-block-end: 0;
}

.lounge-difference__card p {
  max-width: 45ch;
  margin-block-end: 0;
}

.lounge-stakes {
  padding-block: var(--space-96);
  background-color: var(--color-surface-muted);
}

.lounge-stakes__intro {
  max-width: var(--container-narrow);
  margin-block-end: var(--space-48);
}

.lounge-stakes__intro h2 {
  margin-block-end: var(--space-16);
}

.lounge-stakes__intro p {
  max-width: 60ch;
  margin-block-end: 0;
}

.lounge-stakes__table th,
.lounge-stakes__table td {
  border-inline-start: none;
}

.lounge-stakes__table tbody tr:hover td {
  border-inline-start: 1px solid var(--color-accent);
}

.lounge-stakes__stacked {
  margin-block-start: var(--space-16);
}

.lounge-tournaments {
  padding-block: var(--space-96);
}

.lounge-tournaments__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-24);
  align-items: start;
}

.lounge-tournaments__text h2 {
  margin-block-end: var(--space-16);
}

.lounge-tournaments__text h3 {
  margin-block-end: var(--space-12);
}

.lounge-tournaments__text p {
  max-width: 60ch;
  margin-block-end: 0;
}

.lounge-tournaments__list {
  background-color: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-0);
  padding: var(--space-24);
  min-width: 0;
}

.lounge-tournaments__list ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.lounge-tournaments__list li {
  max-width: 45ch;
  text-align: left;
  padding-inline-start: var(--space-16);
  position: relative;
}

.lounge-tournaments__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
}

.lounge-schedule {
  padding-block: var(--space-96);
  background-color: var(--color-surface-muted);
}

.lounge-schedule h2 {
  margin-block-end: var(--space-16);
}

.lounge-schedule__intro {
  max-width: var(--container-narrow);
  margin-block-end: var(--space-48);
}

.lounge-schedule__table tbody tr:hover td {
  border-inline-start: 1px solid var(--color-accent);
}

.lounge-schedule__stacked {
  margin-block-start: var(--space-16);
}

.lounge-access {
  padding-block: var(--space-96);
}

.lounge-access h2 {
  margin-block-end: var(--space-48);
}

.lounge-access__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
}

.lounge-access__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.lounge-access__icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lounge-access__item h3 {
  margin-block-end: 0;
}

.lounge-access__item p {
  max-width: 45ch;
  margin-block-end: 0;
}

.lounge-private {
  background-color: var(--color-ink);
  color: var(--color-accent-ink);
  padding-block: var(--space-96);
  text-align: center;
}

.lounge-private__inner {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}

.lounge-private h2,
.lounge-private h3 {
  color: var(--color-accent-ink);
  margin-block-end: 0;
}

.lounge-private p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.85);
  margin-block-end: 0;
}

.lounge-private ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.lounge-private li {
  color: rgba(255, 255, 255, 0.85);
}

.lounge-private__cta {
  margin-block-start: var(--space-16);
}

.lounge-book {
  padding-block: var(--space-96);
}

.lounge-book__card {
  max-width: var(--container-narrow);
  margin-inline: auto;
  background-color: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-0);
  padding: var(--space-32);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}

.lounge-book__card h2 {
  margin-block-end: 0;
}

.lounge-book__card p {
  max-width: 60ch;
  margin-block-end: 0;
}

.lounge-book__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-12);
  width: 100%;
}

.lounge-gallery {
  padding-block: var(--space-96);
  background-color: var(--color-surface-muted);
}

.lounge-gallery h2 {
  margin-block-end: var(--space-16);
}

.lounge-gallery__intro {
  max-width: var(--container-narrow);
  margin-block-end: var(--space-48);
}

.lounge-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
}

.lounge-gallery__figure {
  margin-block-end: 0;
  min-width: 0;
}

.lounge-gallery__figure img {
  width: 100%;
  height: auto;
  display: block;
  border: var(--border-default);
  border-radius: var(--radius-0);
}

.lounge-gallery__figure figcaption {
  margin-block-start: var(--space-8);
}

.lounge-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
}

.lounge-modal[hidden] {
  display: none;
}

.lounge-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 20, 26, 0.6);
}

.lounge-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--color-surface);
  border: var(--border-ink);
  border-radius: var(--radius-0);
  padding: var(--space-32);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.lounge-modal__close {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-ink);
  border-radius: var(--radius-2);
}

.lounge-modal__close:hover {
  background-color: var(--color-surface-muted);
}

.lounge-modal__panel h2 {
  margin-block-end: 0;
  padding-inline-end: var(--space-48);
}

.lounge-modal__panel p {
  margin-block-end: 0;
}

.lounge-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.lounge-modal__form .form-group {
  margin-block-end: 0;
}

@media (min-width: 768px) {
  .lounge-private__inner {
    padding-inline: var(--container-padding-desktop);
  }
}

@media (max-width: 1023px) {
  .lounge-hero__content {
    width: 60%;
    padding: var(--space-32);
  }

  .lounge-difference__grid,
  .lounge-access__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lounge-difference__card:last-child,
  .lounge-access__item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .lounge-hero {
    background-color: var(--color-ink);
  }

  .lounge-hero__media {
    aspect-ratio: 4 / 5;
  }

  .lounge-hero__overlay {
    background: linear-gradient(180deg, rgba(17, 20, 26, 0) 40%, rgba(17, 20, 26, 0.7) 100%);
  }

  .lounge-hero__content {
    position: static;
    width: 100%;
    height: auto;
    padding: var(--space-24);
    text-align: center;
    align-items: center;
    gap: var(--space-12);
  }

  .lounge-hero__content .data-tag {
    align-self: center;
  }

  .lounge-hero__content h1,
  .lounge-hero__content p {
    max-width: 100%;
  }

  .lounge-difference,
  .lounge-stakes,
  .lounge-tournaments,
  .lounge-schedule,
  .lounge-access,
  .lounge-private,
  .lounge-book,
  .lounge-gallery {
    padding-block: var(--space-64);
  }

  .lounge-difference__grid,
  .lounge-access__grid {
    grid-template-columns: 1fr;
  }

  .lounge-difference__card:last-child,
  .lounge-access__item:last-child {
    grid-column: auto;
  }

  .lounge-tournaments__layout {
    grid-template-columns: 1fr;
  }

  .lounge-tournaments__list li {
    text-align: left;
  }

  .lounge-gallery__grid {
    grid-template-columns: 1fr;
  }

  .lounge-book__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lounge-book__actions .btn {
    width: 100%;
  }

  .lounge-modal {
    padding: 0;
  }

  .lounge-modal__panel {
    max-width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    border: none;
    padding: var(--space-24);
  }
}
