/* Pókerasztalok page styles */

.poker-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-surface-atmospheric);
}

.poker-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poker-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-48) var(--space-24);
  text-align: center;
  color: var(--color-text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  animation: poker-hero-fade 900ms ease-out both;
}

.poker-hero__title {
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-letter-spacing);
  font-weight: 600;
  margin-block-end: 0;
}

.poker-hero__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  margin-block-end: 0;
  max-width: 620px;
}

.poker-hero__note {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: var(--text-small-letter-spacing);
  color: rgba(242, 235, 221, 0.85);
  margin-block-end: 0;
  max-width: 560px;
}

@keyframes poker-hero-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.poker-connection__text {
  min-width: 0;
  max-width: 560px;
}

.poker-connection__text h2 {
  margin-block-end: var(--space-24);
}

.poker-connection__text p {
  margin-block-end: var(--space-16);
}

.poker-connection__text p:last-child {
  margin-block-end: 0;
}

.poker-connection__figure {
  margin-block-end: 0;
  min-width: 0;
  max-width: 480px;
  justify-self: end;
}

.poker-connection__image {
  width: 100%;
  height: auto;
  aspect-ratio: var(--aspect-ratio-inset);
  object-fit: cover;
  border-radius: var(--radius-image);
  border: 1px solid var(--color-border-light);
}

.poker-connection__figure figcaption {
  margin-block-start: var(--space-8);
}

.poker-atmosphere__header {
  max-width: 720px;
  margin-block-end: var(--space-48);
}

.poker-atmosphere__header h2 {
  margin-block-end: var(--space-16);
}

.poker-atmosphere__intro {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  color: rgba(242, 235, 221, 0.85);
  margin-block-end: 0;
}

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

.poker-atmosphere-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  text-align: center;
  padding: var(--space-32) var(--space-24);
}

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

.poker-atmosphere-card p {
  margin-block-end: 0;
  max-width: 280px;
  margin-inline: auto;
}

.poker-types__header {
  max-width: 720px;
  margin-block-end: var(--space-48);
}

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

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

.poker-type {
  min-width: 0;
  max-width: 520px;
  padding-inline-end: var(--space-24);
  border-inline-end: 1px solid var(--color-divider-light);
}

.poker-type:last-child {
  padding-inline-end: 0;
  border-inline-end: none;
}

.poker-type h3 {
  margin-block-end: var(--space-16);
}

.poker-type p {
  margin-block-end: var(--space-16);
}

.poker-type .list-content {
  margin-block-end: 0;
}

.poker-etiquette__header {
  max-width: 720px;
  margin-block-end: var(--space-48);
}

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

.poker-etiquette__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.poker-etiquette__list li {
  counter-increment: poker-etiquette-counter;
  position: relative;
  padding-inline-start: var(--space-48);
}

.poker-etiquette__list {
  counter-reset: poker-etiquette-counter;
}

.poker-etiquette__list li::before {
  content: counter(poker-etiquette-counter, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: 1;
  color: var(--color-warm-light);
  font-weight: 500;
}

.poker-etiquette__list h3 {
  margin-block-end: var(--space-8);
}

.poker-etiquette__list p {
  margin-block-end: 0;
  color: rgba(242, 235, 221, 0.85);
}

.poker-faq__header {
  max-width: 720px;
  margin-block-end: var(--space-48);
}

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

.poker-faq__accordion {
  border-block-start: 1px solid var(--color-divider-light);
}

.poker-faq__item {
  border-block-end: 1px solid var(--color-divider-light);
}

.poker-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-24) 0;
  background: none;
  border: none;
  text-align: start;
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
  min-height: 44px;
}

.poker-faq__trigger:hover {
  color: var(--color-warm-light);
}

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

.poker-faq__icon::before,
.poker-faq__icon::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 14px;
  height: 2px;
  background-color: var(--color-warm-light);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast);
}

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

.poker-faq__item.is-open .poker-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.poker-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-transform);
}

.poker-faq__item.is-open .poker-faq__panel {
  grid-template-rows: 1fr;
}

.poker-faq__answer {
  overflow: hidden;
  min-height: 0;
}

.poker-faq__answer p {
  margin-block-end: 0;
  padding-block-end: var(--space-24);
  max-width: 680px;
}

.poker-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-48);
  align-items: center;
}

.poker-contact__text {
  min-width: 0;
  max-width: 560px;
}

.poker-contact__text h2 {
  margin-block-end: var(--space-16);
}

.poker-contact__text p {
  margin-block-end: var(--space-24);
  color: rgba(242, 235, 221, 0.85);
}

.poker-contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.poker-contact__details a {
  color: var(--color-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(242, 235, 221, 0.4);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.poker-contact__details a:hover {
  color: var(--color-warm-light);
  text-decoration-color: var(--color-warm-light);
}

.poker-contact__details address {
  color: var(--color-text-on-dark);
}

.poker-contact__action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  justify-self: end;
}

.poker-contact__note {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: var(--text-small-letter-spacing);
  color: rgba(242, 235, 221, 0.7);
  margin-block-end: 0;
}

.poker-closing__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}

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

.poker-closing__quote {
  margin-block-end: 0;
  padding-inline-start: 0;
  border-inline-start: none;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  color: var(--color-muted-olive);
  max-width: 720px;
}

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

.poker-closing__support {
  margin-block-end: 0;
  color: rgba(242, 235, 221, 0.85);
  max-width: 620px;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .poker-connection__grid {
    gap: var(--space-32);
  }

  .poker-atmosphere__cards {
    gap: var(--space-16);
  }

  .poker-atmosphere-card {
    padding: var(--space-24) var(--space-16);
  }
}

@media (max-width: 1023px) {
  .poker-connection__grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .poker-connection__text {
    max-width: 720px;
  }

  .poker-connection__figure {
    max-width: 720px;
    justify-self: start;
  }

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

  .poker-atmosphere-card {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

  .poker-atmosphere-card p {
    max-width: 560px;
  }

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

  .poker-type {
    max-width: 720px;
    padding-inline-end: 0;
    border-inline-end: none;
    padding-block-end: var(--space-32);
    border-block-end: 1px solid var(--color-divider-light);
  }

  .poker-type:last-child {
    padding-block-end: 0;
    border-block-end: none;
  }

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

  .poker-contact__text {
    max-width: 720px;
  }

  .poker-contact__action {
    align-items: flex-start;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .poker-hero {
    min-height: 0;
    aspect-ratio: var(--aspect-ratio-hero-mobile);
  }

  .poker-hero__content {
    padding: var(--space-32) var(--space-24);
    gap: var(--space-12);
  }

  .poker-hero__title {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.25rem);
  }

  .poker-hero__lead {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .poker-hero__note {
    font-size: var(--text-caption-size);
    line-height: var(--text-caption-line-height);
  }

  .poker-connection__grid {
    gap: var(--space-24);
  }

  .poker-atmosphere__header,
  .poker-types__header,
  .poker-etiquette__header,
  .poker-faq__header {
    margin-block-end: var(--space-32);
  }

  .poker-etiquette__list li {
    padding-inline-start: var(--space-32);
  }

  .poker-etiquette__list li::before {
    font-size: var(--text-h4-size);
  }

  .poker-faq__trigger {
    font-size: var(--text-h4-size);
    line-height: var(--text-h4-line-height);
    letter-spacing: var(--text-h4-letter-spacing);
    padding: var(--space-16) 0;
  }

  .poker-contact__grid {
    gap: var(--space-24);
  }

  .poker-closing__quote {
    font-size: var(--text-h4-size);
    line-height: var(--text-h4-line-height);
    letter-spacing: var(--text-h4-letter-spacing);
  }
}

@media (max-width: 390px) {
  .poker-hero__content {
    padding: var(--space-24) var(--space-16);
  }

  .poker-atmosphere-card {
    padding: var(--space-24) var(--space-16);
  }

  .poker-faq__trigger {
    gap: var(--space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-hero__content {
    animation: none;
  }

  .poker-faq__panel {
    transition: none;
  }
}
