/* Poker Strategy & Tips page-owned styles */

#poker-strategy-tips-page {
  --pst-section-gap: var(--space-4xl);
  --pst-card-gap: var(--space-lg);
  --pst-text-measure: 65ch;
  --pst-text-measure-narrow: 600px;
  --pst-text-measure-wide: 720px;
}

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

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

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

.pst-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 15, 20, 0.8) 0%, rgba(10, 15, 20, 0) 40%);
}

.pst-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-3xl) var(--space-4xl);
}

.pst-hero__text {
  max-width: 720px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.pst-hero__text .eyebrow {
  margin-block-end: 0;
}

.pst-hero__text h1 {
  margin-block-end: 0;
  font-size: clamp(2.25rem, 4.5vw + 1rem, 3.5rem);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-tracking);
  font-weight: var(--text-display-weight);
  max-width: 720px;
}

.pst-hero__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-mist);
  max-width: 560px;
  margin-block-end: 0;
}

.pst-hero__text .btn {
  margin-block-start: var(--space-sm);
}

/* Shared section spacing */
.pst-section {
  padding-block: var(--pst-section-gap);
}

/* Live difference */
.pst-live-difference {
  background-color: var(--color-ink);
}

.pst-live-difference__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.pst-live-difference__text {
  min-width: 0;
}

.pst-live-difference__text p {
  max-width: var(--pst-text-measure);
}

.pst-live-difference__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pst-live-difference__card h3 {
  margin-block-end: 0;
}

.pst-brass-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pst-brass-list li {
  position: relative;
  padding-inline-start: var(--space-lg);
  color: var(--color-bone);
  margin: 0;
}

.pst-brass-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background-color: var(--color-brass);
}

/* Cash game */
.pst-cash-game {
  background-color: var(--color-deep-teal);
}

.pst-cash-game__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.pst-cash-game__text {
  min-width: 0;
  position: sticky;
  top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pst-cash-game__text h2,
.pst-cash-game__text h3 {
  margin-block-end: 0;
}

.pst-cash-game__text p {
  max-width: var(--pst-text-measure-narrow);
  margin-block-end: 0;
}

.pst-cash-game__media {
  min-width: 0;
}

.pst-cash-game__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-none);
}

/* Tournament */
.pst-tournament {
  background-color: var(--color-ink);
}

.pst-tournament__intro {
  max-width: var(--pst-text-measure-wide);
  margin-block-end: var(--space-2xl);
}

.pst-tournament__intro h2 {
  margin-block-end: var(--space-md);
}

.pst-tournament__intro p {
  max-width: var(--pst-text-measure-wide);
}

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

.pst-tournament__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pst-tournament__card h3 {
  margin-block-end: 0;
}

.pst-tournament__card p {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* Reading opponents */
.pst-reading {
  background-color: var(--color-deep-teal);
}

.pst-reading__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.pst-reading__text {
  min-width: 0;
}

.pst-reading__text p {
  max-width: var(--pst-text-measure);
}

.pst-reading__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pst-reading__card h3 {
  margin-block-end: 0;
}

/* Table image */
.pst-table-image {
  background-color: var(--color-ink);
}

.pst-table-image__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.pst-table-image__text {
  min-width: 0;
}

.pst-table-image__text p {
  max-width: var(--pst-text-measure-wide);
}

.pst-pull-quote {
  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-bone);
  border-inline-start: 2px solid var(--color-brass);
  padding-inline-start: var(--space-lg);
  margin: 0;
  max-width: 40%;
  justify-self: end;
}

.pst-pull-quote p {
  margin: 0;
}

/* Bankroll */
.pst-bankroll {
  background-color: var(--color-deep-teal);
}

.pst-bankroll__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.pst-bankroll__text {
  min-width: 0;
}

.pst-bankroll__text p {
  max-width: var(--pst-text-measure);
}

.pst-bankroll__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pst-bankroll__card h3 {
  margin-block-end: 0;
}

/* Mistakes */
.pst-mistakes {
  background-color: var(--color-ink);
}

.pst-mistakes__intro {
  max-width: var(--pst-text-measure-wide);
  margin-block-end: var(--space-2xl);
}

.pst-mistakes__intro h2 {
  margin-block-end: var(--space-md);
}

.pst-mistakes__intro p {
  max-width: var(--pst-text-measure-wide);
}

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

.pst-mistakes__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pst-mistakes__card h3 {
  margin-block-end: 0;
}

.pst-mistakes__card p {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* Practice */
.pst-practice {
  background-color: var(--color-deep-teal);
}

.pst-practice__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.pst-practice__text {
  min-width: 0;
}

.pst-practice__text p {
  max-width: var(--pst-text-measure);
}

.pst-practice__media {
  min-width: 0;
}

.pst-practice__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-none);
}

/* Final CTA */
.pst-final-cta {
  background-color: var(--color-deep-teal);
  padding-block: var(--space-4xl);
}

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

.pst-final-cta__content .eyebrow {
  margin-block-end: 0;
}

.pst-final-cta__content h2 {
  margin-block-end: 0;
}

.pst-final-cta__content p {
  margin-block-end: 0;
  color: var(--color-mist);
}

.pst-final-cta__content a {
  color: var(--color-brass);
  transition: color var(--transition-fast);
}

.pst-final-cta__content a:hover,
.pst-final-cta__content a:focus-visible {
  color: var(--color-brass-dim);
}

.pst-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-block-start: var(--space-sm);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1024px) {
  .pst-live-difference__grid,
  .pst-reading__grid,
  .pst-bankroll__grid,
  .pst-practice__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .pst-cash-game__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .pst-cash-game__text {
    position: static;
  }

  .pst-tournament__cards,
  .pst-mistakes__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pst-table-image__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .pst-pull-quote {
    max-width: 100%;
    justify-self: start;
  }
}

/* Mobile */
@media (max-width: 767px) {
  #poker-strategy-tips-page {
    --pst-section-gap: var(--space-3xl);
  }

  .pst-hero {
    min-height: 70vh;
  }

  .pst-hero__content {
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .pst-hero__text h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

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

  .pst-hero__text .btn {
    width: 100%;
  }

  .pst-cash-game__media img {
    aspect-ratio: 4 / 5;
  }

  .pst-practice__media img {
    aspect-ratio: 4 / 5;
  }

  .pst-tournament__cards,
  .pst-mistakes__cards {
    grid-template-columns: 1fr;
  }

  .pst-final-cta {
    padding-block: var(--space-3xl);
  }

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

  .pst-final-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
