/* Page-owned styles for aíthousa-poker */

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

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

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

.poker-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(59, 42, 30, 0.85) 0%,
    rgba(59, 42, 30, 0.55) 40%,
    rgba(59, 42, 30, 0.25) 100%
  );
  z-index: 1;
}

.poker-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin-inline-start: 0;
  padding: var(--space-8) var(--page-padding-mobile);
  text-align: left;
}

.poker-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-letter-spacing);
  color: var(--color-parchment);
  margin-block-end: var(--space-4);
}

.poker-hero__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-parchment);
  margin-block-end: var(--space-6);
  max-width: 600px;
}

.poker-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.poker-hero__btn {
  min-width: 160px;
}

.poker-hero__btn--secondary {
  border-color: var(--color-parchment);
  color: var(--color-parchment);
}

.poker-hero__btn--secondary:hover {
  border-width: 2px;
  border-color: var(--color-saffron);
  color: var(--color-saffron);
}

/* Intro Section */
.poker-intro {
  background-color: var(--color-parchment);
  padding-block: var(--section-spacing-mobile);
}

.poker-intro__container {
  max-width: 1200px;
}

.poker-intro__content {
  max-width: 700px;
  text-align: left;
}

.poker-intro__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  margin-block-end: var(--space-4);
}

.poker-intro__subtitle {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  margin-block-start: var(--space-6);
  margin-block-end: var(--space-4);
}

.poker-intro__paragraph {
  margin-block-end: var(--space-4);
}

.poker-intro__divider {
  max-width: 1200px;
  margin-inline: auto;
  margin-block-start: var(--space-7);
  border: none;
  border-top: var(--border-thin);
}

/* Games Section */
.poker-games {
  background-color: var(--color-cream-light);
  padding-block: var(--section-spacing-mobile);
}

.poker-games__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  margin-block-end: var(--space-6);
}

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

.poker-game-card {
  background-color: var(--color-parchment);
  border: var(--border-thin);
  border-radius: var(--radius-small);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  transition: border-color var(--transition-fast);
}

.poker-game-card:hover {
  border-color: var(--color-cobalt);
}

.poker-game-card__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  margin-block-end: 0;
}

.poker-game-card__description {
  margin-block-end: 0;
}

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

.poker-game-card__list li {
  position: relative;
  padding-inline-start: var(--space-5);
  margin-block-end: 0;
}

.poker-game-card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
}

/* Rules Section */
.poker-rules {
  background-color: var(--color-parchment);
  padding-block: var(--section-spacing-mobile);
}

.poker-rules__container {
  max-width: 1200px;
}

.poker-rules__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  margin-block-end: var(--space-6);
}

.poker-rules__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

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

.poker-rules__subtitle {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  margin-block-end: var(--space-4);
}

.poker-rules__intro {
  margin-block-end: var(--space-4);
}

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

.poker-rules__list li {
  position: relative;
  padding-inline-start: var(--space-5);
  margin-block-end: 0;
}

.poker-rules__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-saffron);
}

/* Steps Section */
.poker-steps {
  background-color: var(--color-cream-light);
  padding-block: var(--section-spacing-mobile);
}

.poker-steps__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  margin-block-end: var(--space-6);
}

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

.poker-step-card {
  background-color: var(--color-parchment);
  border: var(--border-thin);
  border-radius: var(--radius-small);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.poker-step-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: 1;
  font-weight: 700;
  color: var(--color-cobalt);
}

.poker-step-card__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  margin-block-end: 0;
}

.poker-step-card__description {
  margin-block-end: 0;
}

.poker-step-card__description a {
  color: var(--color-cobalt);
}

/* FAQ Section */
.poker-faq {
  background-color: var(--color-parchment);
  padding-block: var(--section-spacing-mobile);
}

.poker-faq__container {
  max-width: 700px;
  margin-inline: auto;
}

.poker-faq__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  margin-block-end: var(--space-6);
  text-align: left;
}

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

.poker-faq__item {
  border-bottom: var(--border-thin);
}

.poker-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: 600;
  color: var(--color-walnut);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.poker-faq__question:hover {
  color: var(--color-cobalt);
}

.poker-faq__question:focus-visible {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 2px;
}

.poker-faq__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
  margin-inline-start: var(--space-4);
}

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

.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 250ms ease-out;
}

.poker-faq__answer p {
  padding-block-end: var(--space-4);
  margin-block-end: 0;
}

/* CTA Section */
.poker-cta {
  background-color: var(--color-walnut);
  color: var(--color-parchment);
  padding-block: var(--section-spacing-mobile);
}

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

.poker-cta__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  color: var(--color-parchment);
  margin-block-end: 0;
}

.poker-cta__text {
  margin-block-end: 0;
  max-width: 600px;
}

.poker-cta__link {
  color: var(--color-saffron);
}

.poker-cta__link:hover {
  color: var(--color-saffron);
}

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

.poker-cta__btn {
  min-width: 160px;
}

.poker-cta__btn--secondary {
  border-color: var(--color-parchment);
  color: var(--color-parchment);
}

.poker-cta__btn--secondary:hover {
  border-width: 2px;
  border-color: var(--color-saffron);
  color: var(--color-saffron);
}

/* Tablet breakpoint */
@media (min-width: 768px) {
  .poker-hero {
    min-height: 70vh;
  }

  .poker-hero__content {
    padding: var(--space-8) var(--page-padding-tablet);
  }

  .poker-intro,
  .poker-games,
  .poker-rules,
  .poker-steps,
  .poker-faq,
  .poker-cta {
    padding-block: var(--section-spacing-desktop);
  }

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

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

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

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .poker-hero__content {
    padding: var(--space-8) var(--page-padding-desktop);
  }

  .poker-hero__actions {
    flex-wrap: nowrap;
  }

  .poker-cta__actions {
    flex-wrap: nowrap;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .poker-hero {
    min-height: 80vh;
  }

  .poker-hero__content {
    padding: var(--space-5) var(--page-padding-mobile);
  }

  .poker-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .poker-hero__btn {
    width: 100%;
  }

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

  .poker-cta__btn {
    width: 100%;
  }
}
