/* Poker page styles */

.poker-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-night);
}

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

.poker-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.poker-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.85) 0%, rgba(15, 26, 46, 0.55) 50%, rgba(15, 26, 46, 0.25) 100%);
  pointer-events: none;
}

.poker-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.poker-hero__title {
  color: var(--color-white);
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  margin: 0;
}

.poker-hero__divider {
  width: 64px;
  height: 3px;
  background-color: var(--color-red);
  margin-inline: auto;
}

.poker-hero__lead {
  color: var(--color-white);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
  max-width: 60ch;
}

.poker-hero__details,
.poker-hero__legal {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 60ch;
}

.poker-hero__legal {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

.poker-hero__scroll-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-red);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-none);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  min-height: 44px;
  margin-top: var(--space-sm);
}

.poker-hero__scroll-link:hover {
  background-color: #A93226;
  color: var(--color-white);
}

.poker-intro__container,
.poker-etiquette__container,
.poker-faq__container {
  max-width: 800px;
  margin-inline: auto;
}

.poker-intro__title,
.poker-etiquette__title,
.poker-faq__title,
.poker-strategy__title,
.poker-comparison__title,
.poker-explore__title,
.poker-variants__title,
.poker-atmosphere__title {
  margin-block-end: var(--space-xs);
}

.poker-intro__divider,
.poker-etiquette__divider,
.poker-faq__divider,
.poker-strategy__divider,
.poker-comparison__divider,
.poker-explore__divider,
.poker-variants__divider,
.poker-atmosphere__divider {
  width: 64px;
  height: 3px;
  background-color: var(--color-red);
  margin-block-end: var(--space-lg);
}

.poker-intro__lead {
  font-weight: 600;
  color: var(--color-navy);
}

.poker-intro__subtitle,
.poker-etiquette__subtitle,
.poker-strategy__subtitle,
.poker-atmosphere__subtitle {
  margin-block-start: var(--space-lg);
  margin-block-end: var(--space-sm);
}

.poker-intro__list,
.poker-etiquette__list,
.poker-strategy__list,
.poker-atmosphere__list {
  margin-block-end: var(--space-md);
}

.poker-intro__note,
.poker-etiquette__facts,
.poker-strategy__facts,
.poker-comparison__facts,
.poker-atmosphere__facts {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-muted);
}

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

.poker-variant-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.poker-variant-card__title {
  margin: 0;
}

.poker-variant-card__text,
.poker-variant-card__facts {
  margin: 0;
}

.poker-variant-card__list {
  margin: 0;
}

.poker-variant-card__facts {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-muted);
}

.poker-atmosphere__container {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-2xl);
  align-items: start;
}

.poker-atmosphere__text {
  min-width: 0;
}

.poker-atmosphere__media {
  min-width: 0;
}

.poker-atmosphere__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.poker-strategy {
  background-color: var(--color-night);
  color: var(--color-white);
}

.poker-strategy__container {
  max-width: 800px;
  margin-inline: auto;
}

.poker-strategy__title,
.poker-strategy__subtitle {
  color: var(--color-white);
}

.poker-strategy__text {
  color: rgba(255, 255, 255, 0.85);
}

.poker-strategy__list {
  color: rgba(255, 255, 255, 0.85);
}

.poker-strategy__list li {
  color: rgba(255, 255, 255, 0.85);
}

.poker-strategy__facts {
  color: rgba(255, 255, 255, 0.7);
}

.poker-comparison__table-wrapper {
  overflow-x: auto;
  margin-block: var(--space-lg);
}

.poker-comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.poker-comparison__table th,
.poker-comparison__table td {
  padding: var(--space-sm) var(--space-md);
  text-align: start;
  border-block-end: var(--border-thin);
  vertical-align: top;
}

.poker-comparison__table thead th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
}

.poker-comparison__table tbody th {
  background-color: rgba(27, 42, 74, 0.04);
  font-weight: 600;
  color: var(--color-navy);
}

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

.poker-faq__item {
  border: var(--border-thin);
  border-radius: var(--radius-card);
  background-color: var(--color-white);
  overflow: hidden;
}

.poker-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
  text-align: start;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.poker-faq__question:hover {
  background-color: rgba(27, 42, 74, 0.05);
}

.poker-faq__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
}

.poker-faq__icon::before,
.poker-faq__icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-red);
  transition: transform var(--transition-base);
}

.poker-faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.poker-faq__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.poker-faq__item.is-open .poker-faq__icon::after {
  transform: translateX(-50%) scaleY(0);
}

.poker-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease;
  background-color: var(--color-white);
}

.poker-faq__answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  margin: 0;
  color: var(--color-ink);
}

.poker-explore__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-block-start: var(--space-lg);
}

.poker-explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background-color: var(--color-white);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-navy);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-fast);
  min-width: 0;
}

.poker-explore-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  background-color: var(--color-sand);
  color: var(--color-navy);
}

.poker-explore-card__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-red);
}

.poker-explore-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
}

.poker-explore-card__text {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-muted);
}

@media (max-width: 1024px) {
  .poker-variants__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .poker-atmosphere__media {
    order: -1;
  }

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

@media (max-width: 768px) {
  .poker-hero {
    min-height: 300px;
  }

  .poker-hero__content {
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-sm);
  }

  .poker-hero__title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .poker-hero__lead {
    font-size: 1rem;
  }

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

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

  .poker-comparison__table-wrapper {
    margin-inline: calc(-1 * var(--space-sm));
    padding-inline: var(--space-sm);
  }

  .poker-faq__question {
    padding: var(--space-sm) var(--space-md);
  }

  .poker-faq__answer p {
    padding: 0 var(--space-md) var(--space-md);
  }
}

@media (max-width: 480px) {
  .poker-hero {
    min-height: 280px;
  }

  .poker-hero__title {
    font-size: 1.375rem;
  }

  .poker-hero__scroll-link {
    width: 100%;
  }

  .poker-explore-card {
    padding: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-hero__scroll-link,
  .poker-faq__question,
  .poker-faq__icon::before,
  .poker-faq__icon::after,
  .poker-faq__answer,
  .poker-explore-card {
    transition-duration: 0.01ms;
  }
}
