/* ===== Poker page styles ===== */
#poker-main {
  --poker-gap-sm: 1rem;
  --poker-gap-md: 1.5rem;
  --poker-gap-lg: 2.5rem;
  --poker-gap-xl: 4rem;
  --poker-gap-2xl: 6rem;
  --poker-radius-card: 4px;
  --poker-border-gold: 1px solid var(--color-line-gold-subtle);
  --poker-border-burgundy: 1px solid var(--color-accent-burgundy);
  --poker-transition: 200ms ease-out;
}

/* Hero */
.poker-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-bg-bottle-green);
  overflow: hidden;
}

.poker-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.poker-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poker-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg-bottle-green) 0%, rgba(15, 42, 36, 0.7) 45%, rgba(15, 42, 36, 0.15) 100%);
}

.poker-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block-end: var(--poker-gap-xl);
}

.poker-hero__text {
  max-width: 600px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-sm);
}

.poker-hero__text h1 {
  margin-block-end: 0;
  color: var(--color-text-cream);
}

.poker-hero__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-text-cream);
  margin-block-end: 0;
}

.poker-hero__details {
  color: var(--color-text-cream-muted);
  margin-block-end: 0;
}

.poker-hero__cta {
  align-self: flex-start;
  margin-block-start: var(--poker-gap-sm);
}

/* Card Lounge */
.poker-lounge {
  background-color: var(--color-bg-dark-wood);
}

.poker-lounge__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--poker-gap-lg);
  align-items: start;
}

.poker-lounge__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-sm);
}

.poker-lounge__copy h2,
.poker-lounge__copy h3,
.poker-lounge__copy p,
.poker-lounge__copy ul {
  margin-block-end: 0;
}

.poker-lounge__copy h2 {
  color: var(--color-text-cream);
}

.poker-lounge__copy h3 {
  color: var(--color-text-cream);
  margin-block-start: var(--poker-gap-sm);
}

.poker-lounge__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-text-cream);
}

.poker-lounge__features {
  margin-block-start: var(--poker-gap-xs, 0.5rem);
}

.poker-lounge__summary {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-text-cream-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.poker-lounge__media {
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--poker-radius-card);
  border: var(--poker-border-gold);
}

.poker-lounge__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tables */
.poker-tables {
  background-color: var(--color-bg-bottle-green);
}

.poker-tables__heading {
  margin-block-end: var(--poker-gap-lg);
  color: var(--color-text-cream);
}

.poker-tables__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--poker-gap-md);
}

.poker-table-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-sm);
  background-color: var(--color-bg-dark-wood);
  border: var(--poker-border-burgundy);
  border-radius: var(--poker-radius-card);
  padding: var(--poker-gap-md);
}

.poker-table-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-accent-gold);
  display: block;
}

.poker-table-card h3 {
  margin-block-end: 0;
  color: var(--color-text-cream);
}

.poker-table-card p {
  margin-block-end: 0;
  color: var(--color-text-cream-muted);
}

.poker-table-card__list {
  margin-block-end: 0;
}

/* Games and Tournaments */
.poker-games {
  background-color: var(--color-bg-dark-wood);
}

.poker-games__heading {
  margin-block-end: var(--poker-gap-lg);
  color: var(--color-text-cream);
}

.poker-games__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--poker-gap-lg);
  align-items: start;
}

.poker-games__column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-sm);
}

.poker-games__column h3,
.poker-games__column p,
.poker-games__column ul {
  margin-block-end: 0;
}

.poker-games__column h3 {
  color: var(--color-text-cream);
}

.poker-games__column p {
  color: var(--color-text-cream-muted);
}

.poker-games__list,
.poker-games__tournament-list {
  margin-block-end: 0;
}

/* Etiquette */
.poker-etiquette {
  background-color: var(--color-bg-bottle-green);
}

.poker-etiquette__container {
  max-width: 720px;
  margin-inline: 0;
  padding-inline: var(--container-margin-desktop);
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-lg);
}

.poker-etiquette__container h2 {
  margin-block-end: 0;
  color: var(--color-text-cream);
}

.poker-etiquette__block {
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-sm);
}

.poker-etiquette__block h3,
.poker-etiquette__block p,
.poker-etiquette__block ul {
  margin-block-end: 0;
}

.poker-etiquette__block h3 {
  color: var(--color-text-cream);
}

.poker-etiquette__block p {
  color: var(--color-text-cream-muted);
}

/* Booking */
.poker-booking {
  background-color: var(--color-bg-light-cream);
  color: var(--color-text-on-light);
}

.poker-booking__container {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-md);
  text-align: center;
}

.poker-booking__container h2 {
  margin-block-end: 0;
  color: var(--color-text-on-light);
}

.poker-booking__intro {
  margin-block-end: 0;
  color: var(--color-text-on-light);
  opacity: 0.85;
}

.poker-booking__form {
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-sm);
  text-align: left;
}

.poker-booking__form .form-group {
  margin-block-end: 0;
}

.poker-booking__form label {
  color: var(--color-text-on-light);
}

.poker-booking__form input,
.poker-booking__form select,
.poker-booking__form textarea {
  background-color: var(--color-bg-dark-wood);
  color: var(--color-text-cream);
  border-color: var(--color-line-gold-subtle);
}

.poker-booking__form input:focus,
.poker-booking__form select:focus,
.poker-booking__form textarea:focus {
  border-color: var(--color-accent-gold);
}

.poker-booking__submit {
  margin-block-start: var(--poker-gap-sm);
}

/* FAQ */
.poker-faq {
  background-color: var(--color-bg-dark-wood);
}

.poker-faq__container {
  max-width: 800px;
  margin-inline: 0;
  padding-inline: var(--container-margin-desktop);
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-lg);
}

.poker-faq__container h2 {
  margin-block-end: 0;
  color: var(--color-text-cream);
}

.poker-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--poker-gap-sm);
}

.poker-faq__item {
  border: var(--poker-border-gold);
  border-radius: var(--poker-radius-card);
  background-color: var(--color-bg-bottle-green);
  padding: var(--poker-gap-sm);
}

.poker-faq__item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  color: var(--color-text-cream);
  padding: var(--poker-gap-sm);
  margin: calc(-1 * var(--poker-gap-sm));
  list-style: none;
  position: relative;
  transition: color var(--poker-transition);
}

.poker-faq__item summary::-webkit-details-marker {
  display: none;
}

.poker-faq__item summary::after {
  content: "+";
  position: absolute;
  right: var(--poker-gap-sm);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent-gold);
  transition: transform var(--poker-transition);
}

.poker-faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.poker-faq__item summary:hover,
.poker-faq__item summary:focus-visible {
  color: var(--color-accent-gold);
}

.poker-faq__answer {
  padding: var(--poker-gap-sm);
  color: var(--color-text-cream-muted);
}

.poker-faq__answer p {
  margin-block-end: 0;
}

/* Gallery */
.poker-gallery {
  background-color: var(--color-bg-bottle-green);
}

.poker-gallery__heading {
  margin-block-end: var(--poker-gap-md);
  color: var(--color-text-cream);
}

.poker-gallery__intro {
  max-width: 600px;
  margin-block-end: var(--poker-gap-lg);
  color: var(--color-text-cream-muted);
}

.poker-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--poker-gap-md);
}

.poker-gallery__item {
  margin-block-end: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--poker-radius-card);
  border: var(--poker-border-gold);
}

.poker-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poker-gallery__item--wide {
  grid-column: span 6;
  aspect-ratio: 3 / 2;
}

.poker-gallery__item--tall {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
}

.poker-gallery__item--square {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.poker-gallery__item figcaption {
  padding: var(--poker-gap-xs, 0.5rem) var(--poker-gap-sm);
  background-color: var(--color-bg-dark-wood);
  color: var(--color-text-cream-muted);
  margin-block-start: 0;
}

/* CTA */
.poker-cta {
  background-color: var(--color-bg-bottle-green);
  border-block-start: var(--poker-border-gold);
}

.poker-cta__container {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--poker-gap-md);
  text-align: center;
}

.poker-cta__container h2 {
  margin-block-end: 0;
  color: var(--color-text-cream);
}

.poker-cta__text {
  margin-block-end: 0;
  color: var(--color-text-cream-muted);
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
}

.poker-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--poker-gap-sm);
}

/* Responsive */
@media (max-width: 1023px) {
  .poker-lounge__grid {
    grid-template-columns: 1fr;
    gap: var(--poker-gap-md);
  }

  .poker-lounge__media {
    order: -1;
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .poker-tables__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-games__grid {
    grid-template-columns: 1fr;
    gap: var(--poker-gap-lg);
  }

  .poker-etiquette__container,
  .poker-faq__container {
    padding-inline: var(--container-margin-tablet);
    max-width: 100%;
  }

  .poker-gallery__item--wide {
    grid-column: span 6;
  }

  .poker-gallery__item--tall,
  .poker-gallery__item--square {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .poker-hero {
    min-height: auto;
    aspect-ratio: 4 / 5;
    align-items: flex-end;
  }

  .poker-hero__content {
    padding-block-end: var(--poker-gap-md);
  }

  .poker-hero__text {
    max-width: 100%;
    text-align: left;
    gap: var(--poker-gap-sm);
  }

  .poker-hero__cta {
    width: 100%;
    align-self: stretch;
  }

  .poker-lounge__grid {
    grid-template-columns: 1fr;
  }

  .poker-lounge__media {
    aspect-ratio: 4 / 5;
  }

  .poker-tables__grid {
    grid-template-columns: 1fr;
  }

  .poker-games__grid {
    grid-template-columns: 1fr;
  }

  .poker-etiquette__container,
  .poker-faq__container {
    padding-inline: var(--container-margin-mobile);
  }

  .poker-booking__container {
    padding-inline: var(--container-margin-mobile);
  }

  .poker-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--poker-gap-sm);
  }

  .poker-gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 3 / 2;
  }

  .poker-gallery__item--tall,
  .poker-gallery__item--square {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .poker-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .poker-cta__actions .btn {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .poker-tables__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-tables__grid .poker-table-card:last-child {
    grid-column: span 2;
  }
}
