/* Pine Hearth House — Poker Club page styles */

#poker-club-main {
  --poker-section-gap: var(--space-7);
  --poker-card-gap: var(--space-5);
  --poker-grid-gap: var(--space-5);
  overflow-x: hidden;
}

#poker-club-main .poker-section-label {
  color: var(--brass-400);
  margin-block-end: var(--space-3);
}

#poker-club-main .poker-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-block-end: var(--space-6);
}

#poker-club-main .poker-section-header h2 {
  margin-block-end: 0;
}

#poker-club-main .poker-section-intro {
  max-width: 680px;
  color: var(--smoke-300);
  margin-block-end: 0;
}

/* Hero */
.poker-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-color: var(--pine-950);
  overflow: hidden;
}

.poker-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.poker-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 20, 0.82) 0%, rgba(15, 26, 20, 0.72) 55%, rgba(15, 26, 20, 0.9) 100%);
}

.poker-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-block: var(--space-8);
}

.poker-hero__content {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.poker-hero__eyebrow {
  color: var(--ember-300);
  margin-block-end: 0;
}

.poker-hero__content h1 {
  margin-block-end: 0;
  font-size: clamp(36px, 5vw, var(--text-h1));
}

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

.poker-hero__support {
  color: var(--smoke-300);
  margin-block-end: 0;
}

.poker-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: var(--space-3);
}

/* Lodge experience */
.section-lodge-experience {
  background-color: var(--pine-950);
}

.poker-lodge-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.poker-lodge-grid__text {
  grid-column: 1 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.poker-lodge-grid__text h2 {
  margin-block-end: 0;
}

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

.poker-amenity-list {
  list-style: none !important;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.poker-amenity-list li {
  position: relative;
  padding-inline-start: var(--space-6);
  color: var(--smoke-300);
}

.poker-amenity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ember-500);
}

.poker-lodge-grid__media {
  grid-column: 8 / span 5;
  min-width: 0;
  border-radius: var(--radius-2);
  overflow: hidden;
  border: var(--border-subtle);
  background-color: var(--pine-900);
}

.poker-lodge-grid__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  border: none;
  display: block;
}

/* Games and stakes */
.section-poker-games {
  background-color: var(--felt-700);
}

.section-poker-games .poker-section-header h2,
.section-poker-games .poker-section-intro {
  color: var(--smoke-100);
}

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

.poker-game-card {
  background-color: var(--pine-900);
  border: 1px solid var(--pine-800);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition-color), box-shadow var(--transition-shadow), transform var(--transition-transform);
}

.poker-game-card:hover {
  border-color: var(--border-ember-40);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.poker-game-card h3 {
  color: var(--brass-400);
  margin-block-end: 0;
  font-size: var(--text-h4);
}

.poker-game-card p {
  color: var(--smoke-100);
  margin-block-end: 0;
}

.poker-game-card ul {
  list-style: none !important;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.poker-game-card li {
  color: var(--smoke-300);
  font-size: var(--text-body-small);
}

/* Weekly schedule */
.section-poker-schedule {
  background-color: var(--felt-700);
}

.section-poker-schedule .poker-section-header h2,
.section-poker-schedule .poker-section-intro {
  color: var(--smoke-100);
}

.poker-schedule-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pine-800);
  border-radius: var(--radius-2);
  overflow: hidden;
  background-color: var(--pine-900);
}

.poker-schedule-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-block-end: 1px solid var(--pine-800);
  transition: background-color var(--transition-color);
}

.poker-schedule-row:last-child {
  border-block-end: none;
}

.poker-schedule-row:hover {
  background-color: var(--pine-800);
}

.poker-schedule-row--header {
  background-color: var(--pine-800);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brass-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-label);
}

.poker-schedule-row--header:hover {
  background-color: var(--pine-800);
}

.poker-schedule-row--featured {
  border-inline-start: 3px solid var(--ember-500);
}

.poker-schedule-day {
  color: var(--smoke-100);
  font-weight: 600;
}

.poker-schedule-row span {
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--smoke-300);
}

.poker-schedule-row--header span {
  color: var(--brass-400);
}

.poker-schedule-note {
  margin-block-start: var(--space-4);
  color: var(--smoke-300);
}

/* Membership */
.section-membership {
  background-color: var(--pine-950);
}

.poker-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.poker-membership-card {
  background-color: var(--pine-900);
  border: 1px solid var(--pine-800);
  border-radius: var(--radius-2);
  padding: var(--space-6);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.poker-membership-card h3 {
  color: var(--brass-400);
  margin-block-end: 0;
}

.poker-membership-card p {
  color: var(--smoke-100);
  margin-block-end: 0;
}

.poker-check-list {
  list-style: none !important;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.poker-check-list li {
  position: relative;
  padding-inline-start: var(--space-6);
  color: var(--smoke-300);
}

.poker-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--ember-500);
  font-weight: 700;
}

/* Tournaments */
.section-poker-tournaments {
  background-color: var(--felt-700);
}

.section-poker-tournaments .poker-section-header h2,
.section-poker-tournaments .poker-section-intro {
  color: var(--smoke-100);
}

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

.poker-event-card {
  background-color: var(--pine-900);
  border: 1px solid var(--pine-800);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition-color), box-shadow var(--transition-shadow), transform var(--transition-transform);
}

.poker-event-card:hover {
  border-color: var(--border-ember-40);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.poker-event-card h3 {
  color: var(--brass-400);
  margin-block-end: 0;
}

.poker-event-card p {
  color: var(--smoke-100);
  margin-block-end: 0;
}

.poker-event-card .poker-event-meta {
  color: var(--smoke-300);
  font-size: var(--text-body-small);
}

/* Rules and etiquette */
.section-poker-rules {
  background-color: var(--pine-950);
}

.poker-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  position: relative;
}

.poker-rules-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(201, 162, 75, 0.2);
  transform: translateX(-50%);
}

.poker-rules-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.poker-rules-column h3 {
  color: var(--brass-400);
  margin-block-end: 0;
}

.poker-rules-column p {
  color: var(--smoke-100);
  margin-block-end: 0;
}

.poker-rules-column ul {
  list-style: none !important;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.poker-rules-column li {
  position: relative;
  padding-inline-start: var(--space-6);
  color: var(--smoke-300);
}

.poker-rules-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ember-500);
}

/* FAQ */
.section-poker-faq {
  background-color: var(--pine-950);
}

.poker-faq-container {
  max-width: 800px;
}

.poker-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.poker-accordion__item {
  background-color: var(--felt-700);
  border: 1px solid var(--pine-800);
  border-radius: var(--radius-2);
  overflow: hidden;
}

.poker-accordion__item h3 {
  margin-block-end: 0;
}

.poker-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 48px;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  color: var(--brass-400);
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-color), background-color var(--transition-color);
}

.poker-accordion__trigger:hover {
  color: var(--ember-300);
  background-color: rgba(30, 49, 38, 0.4);
}

.poker-accordion__trigger[aria-expanded="true"] {
  color: var(--ember-300);
}

.poker-accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.poker-accordion__icon::before,
.poker-accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-transform);
}

.poker-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.poker-accordion__trigger[aria-expanded="true"] .poker-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.poker-accordion__panel {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--smoke-100);
}

.poker-accordion__panel p {
  margin-block-end: 0;
  color: var(--smoke-100);
}

/* CTA */
.section-poker-cta {
  background-color: var(--felt-700);
}

.poker-cta-container {
  display: flex;
  justify-content: center;
  padding-block: var(--space-8);
}

.poker-cta-content {
  width: 100%;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.poker-cta-content h2 {
  margin-block-end: 0;
  color: var(--smoke-100);
}

.poker-cta-content p {
  color: var(--smoke-100);
  margin-block-end: 0;
}

.poker-cta-content a {
  color: var(--ember-300);
}

.poker-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-block-start: var(--space-3);
}

/* Responsive */
@media (max-width: 1023px) {
  .poker-lodge-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .poker-lodge-grid__text {
    grid-column: 1 / span 6;
  }

  .poker-lodge-grid__media {
    grid-column: 1 / span 6;
  }

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

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

  .poker-events-grid .poker-event-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  #poker-club-main {
    --poker-section-gap: var(--space-6);
    --poker-card-gap: var(--space-4);
    --poker-grid-gap: var(--space-4);
  }

  .poker-hero {
    min-height: 78vh;
  }

  .poker-hero__container {
    justify-content: center;
    padding-block: var(--space-7);
  }

  .poker-hero__content {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .poker-hero__actions {
    justify-content: center;
    width: 100%;
  }

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

  .poker-lodge-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .poker-lodge-grid__text,
  .poker-lodge-grid__media {
    grid-column: auto;
  }

  .poker-lodge-grid__text {
    order: 2;
  }

  .poker-lodge-grid__media {
    order: 1;
  }

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

  .poker-schedule-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-4);
  }

  .poker-schedule-row--header {
    display: none;
  }

  .poker-schedule-row span::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brass-400);
    margin-block-end: var(--space-1);
  }

  .poker-schedule-row .poker-schedule-day::before {
    content: "Day";
  }

  .poker-schedule-row span:nth-child(2)::before {
    content: "Game";
  }

  .poker-schedule-row span:nth-child(3)::before {
    content: "Time";
  }

  .poker-schedule-row span:nth-child(4)::before {
    content: "Buy-in";
  }

  .poker-membership-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  .poker-events-grid .poker-event-card:last-child {
    grid-column: auto;
  }

  .poker-rules-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .poker-rules-grid::before {
    display: none;
  }

  .poker-cta-container {
    padding-block: var(--space-7);
  }

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

  .poker-cta-actions .btn {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .poker-hero__content {
    max-width: 480px;
  }
}
