/* Page-owned styles for Live Poker page */

.live-poker-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 60vh;
  background-color: var(--color-soft-cream);
  overflow: hidden;
}

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

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

.live-poker-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 42, 46, 0.55) 0%, rgba(31, 42, 46, 0.25) 45%, rgba(31, 42, 46, 0.05) 100%);
  pointer-events: none;
}

.live-poker-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  max-width: 31.25rem;
  padding: var(--space-3xl) var(--container-padding-mobile);
  color: var(--color-white);
  margin-inline: auto;
}

.live-poker-hero__overline {
  color: var(--color-terracotta);
}

.live-poker-hero__title {
  color: var(--color-white);
  margin-block-end: 0;
  max-width: 12ch;
}

.live-poker-hero__lead {
  color: var(--color-white);
  margin-block-end: 0;
  max-width: 32ch;
}

.live-poker-hero__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-block-start: var(--space-sm);
}

.live-poker-hero__fact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  letter-spacing: var(--text-body-small-letter-spacing);
}

.live-poker-hero__fact-icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-sage-green);
  position: relative;
}

.live-poker-hero__fact-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-white);
  border-radius: 50%;
}

.live-poker-hero__fact-icon--clock::after {
  width: 0.75rem;
  height: 0.75rem;
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  box-sizing: border-box;
}

.live-poker-hero__fact-icon--people::after {
  width: 0.75rem;
  height: 0.75rem;
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 50% 50% 0 0;
  box-sizing: border-box;
  top: 35%;
}

.live-poker-section {
  padding-block: var(--space-3xl);
}

.live-poker-section__header {
  margin-block-end: var(--space-2xl);
}

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

.live-poker-section__header p:not(.overline) {
  margin-block-start: var(--space-md);
  max-width: 45rem;
}

/* Why section */
.live-poker-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
}

.live-poker-why__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  transition: border-color var(--transition-fast);
}

.live-poker-why__card:hover {
  border-color: var(--color-natural-oak);
}

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

.live-poker-why__card p {
  margin-block-end: 0;
  max-width: 22rem;
}

.live-poker-why__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-sage-green);
  position: relative;
  flex: 0 0 auto;
}

.live-poker-why__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  background-color: var(--color-white);
  border-radius: 50%;
}

.live-poker-why__icon--window::after {
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 0;
}

.live-poker-why__icon--people::after {
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 50% 50% 0 0;
  top: 35%;
}

/* Games section */
.live-poker-games__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 50rem;
}

.live-poker-games__item {
  border-inline-start: 4px solid var(--color-terracotta);
  padding-inline-start: var(--space-lg);
  padding-block: var(--space-sm);
  min-width: 0;
}

.live-poker-games__item h3 {
  margin-block-end: var(--space-xs);
}

.live-poker-games__item p {
  margin-block-end: 0;
  max-width: 37.5rem;
}

/* Flow section */
.live-poker-flow__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3xl);
}

.live-poker-flow__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  min-width: 0;
}

.live-poker-flow__step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  min-width: 0;
}

.live-poker-flow__number {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--color-sage-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: var(--text-body-size);
}

.live-poker-flow__step > div {
  min-width: 0;
}

.live-poker-flow__step h3 {
  margin-block-end: var(--space-xs);
}

.live-poker-flow__step p {
  margin-block-end: 0;
  max-width: 31.25rem;
}

/* Rules section */
.live-poker-rules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3xl);
}

.live-poker-rules__block {
  background-color: var(--color-cream-deep);
  border: 1px solid var(--color-oak-border);
  border-radius: var(--radius-medium);
  padding: var(--space-xl);
  min-width: 0;
}

.live-poker-rules__block h3 {
  margin-block-end: var(--space-md);
}

.live-poker-rules__block p {
  margin-block-end: var(--space-md);
  max-width: 31.25rem;
}

.live-poker-rules__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-inline-start: var(--space-lg);
  list-style: disc;
}

.live-poker-rules__list li {
  max-width: 31.25rem;
}

/* Gallery section */
.live-poker-gallery__intro {
  max-width: 45rem;
}

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

.live-poker-gallery__item {
  min-width: 0;
  margin-block-end: 0;
}

.live-poker-gallery__frame {
  position: relative;
  border-radius: var(--radius-medium);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-cream-deep);
}

.live-poker-gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.live-poker-gallery__item figcaption {
  margin-block-start: var(--space-xs);
  color: var(--color-slate-blue);
}

@media (hover: hover) and (pointer: fine) {
  .live-poker-gallery__item:hover .live-poker-gallery__frame img {
    transform: scale(1.03);
  }
}

/* FAQ section */
.live-poker-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 50rem;
  margin-inline: auto;
}

.live-poker-faq__item {
  border-block-end: 1px solid var(--color-oak-border);
  min-width: 0;
}

.live-poker-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  min-height: 3.5rem;
  padding: var(--space-md) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: 500;
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-ink);
  text-align: start;
  transition: background-color var(--transition-fast);
}

.live-poker-faq__question:hover {
  background-color: var(--color-cream-deep);
}

.live-poker-faq__icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.live-poker-faq__icon::before,
.live-poker-faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-slate-blue);
  transition: transform var(--transition-medium);
}

.live-poker-faq__icon::before {
  width: 1rem;
  height: 2px;
}

.live-poker-faq__icon::after {
  width: 2px;
  height: 1rem;
}

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

.live-poker-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.live-poker-faq__answer p {
  padding-block-end: var(--space-md);
  margin-block-end: 0;
  max-width: 43.75rem;
}

/* Info section */
.live-poker-info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
}

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

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

.live-poker-info__card p {
  margin-block-end: 0;
  max-width: 18.75rem;
}

.live-poker-info__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-inline-start: var(--space-lg);
  list-style: disc;
}

.live-poker-info__list li {
  max-width: 18.75rem;
}

.live-poker-info__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-sage-green);
  position: relative;
  flex: 0 0 auto;
}

.live-poker-info__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  background-color: var(--color-white);
  border-radius: 50%;
}

.live-poker-info__icon--clock::after {
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 50%;
}

.live-poker-info__icon--map::after {
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.live-poker-info__icon--phone::after {
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 50%;
}

/* CTA section */
.live-poker-cta {
  background-color: var(--color-sage-green);
  color: var(--color-white);
  padding-block: var(--space-4xl);
}

.live-poker-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

.live-poker-cta__content h2 {
  color: var(--color-white);
  margin-block-end: 0;
}

.live-poker-cta__content p {
  margin-block-end: 0;
  max-width: 37.5rem;
}

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

.live-poker-cta__actions .btn {
  min-width: 10rem;
}

/* Tablet */
@media (max-width: 64rem) {
  .live-poker-hero {
    min-height: 50vh;
  }

  .live-poker-hero__content {
    max-width: 28rem;
    padding: var(--space-2xl) var(--container-padding-tablet);
  }

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

  .live-poker-why__card:last-child {
    grid-column: 1 / -1;
  }

  .live-poker-info__card:last-child {
    grid-column: 1 / -1;
  }

  .live-poker-flow__grid,
  .live-poker-rules__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

/* Mobile */
@media (max-width: 48rem) {
  .live-poker-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .live-poker-hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
  }

  .live-poker-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 42, 46, 0.35) 0%, rgba(31, 42, 46, 0.15) 100%);
  }

  .live-poker-hero__content {
    position: relative;
    max-width: none;
    padding: var(--space-xl) var(--container-padding-mobile);
    color: var(--color-ink);
  }

  .live-poker-hero__title {
    color: var(--color-ink);
    max-width: none;
  }

  .live-poker-hero__lead {
    color: var(--color-ink);
    max-width: none;
  }

  .live-poker-hero__fact {
    color: var(--color-ink);
  }

  .live-poker-hero__fact-icon {
    background-color: var(--color-sage-green);
  }

  .live-poker-section {
    padding-block: var(--space-2xl);
  }

  .live-poker-section__header {
    margin-block-end: var(--space-xl);
  }

  .live-poker-why__grid,
  .live-poker-info__grid,
  .live-poker-gallery__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .live-poker-why__card:last-child,
  .live-poker-info__card:last-child {
    grid-column: auto;
  }

  .live-poker-flow__grid {
    gap: var(--space-xl);
  }

  .live-poker-flow__column {
    gap: var(--space-xl);
  }

  .live-poker-rules__grid {
    gap: var(--space-lg);
  }

  .live-poker-rules__block {
    padding: var(--space-lg);
  }

  .live-poker-faq__list {
    max-width: none;
  }

  .live-poker-cta {
    padding-block: var(--space-3xl);
  }

  .live-poker-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .live-poker-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-poker-faq__answer {
    transition: none;
  }

  .live-poker-gallery__frame img {
    transition: none;
  }
}
