/* Texas Hold'em Tournaments page styles */

/* Hero */
.tht-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-plum-deep);
}

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

.tht-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-arch);
}

.tht-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(42, 27, 36, 0.92) 0%, rgba(42, 27, 36, 0.65) 55%, rgba(42, 27, 36, 0.35) 100%);
}

.tht-hero__content {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 560px;
  margin-left: var(--space-xl);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.tht-hero__content h2 {
  font-size: var(--text-display);
  line-height: 1.05;
  max-width: 12ch;
  margin-block-end: 0;
}

.tht-hero__content p {
  max-width: 45ch;
  margin-block-end: 0;
  color: var(--color-champagne-soft);
}

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

.tht-hero__facts li {
  color: var(--color-champagne-soft);
  font-size: var(--text-small);
  padding-inline-start: var(--space-md);
  position: relative;
}

.tht-hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-rose-dusty);
}

/* Format cards */
.tht-format__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-block-start: var(--space-lg);
}

.tht-format-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
  min-width: 0;
}

.tht-format-card h4 {
  margin-block-end: 0;
}

.tht-format-card p {
  max-width: 35ch;
  margin-inline: auto;
  margin-block-end: 0;
}

.tht-format-card ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--text-small);
  color: rgba(247, 231, 206, 0.8);
}

/* Buy-in and starting stack */
.tht-buyin__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-xl);
  align-items: center;
  margin-block-start: var(--space-lg);
}

.tht-buyin__text {
  min-width: 0;
}

.tht-buyin__text h4 {
  margin-block-start: var(--space-md);
}

.tht-buyin__text h4:first-child {
  margin-block-start: 0;
}

.tht-buyin__text p,
.tht-buyin__text ul {
  max-width: 55ch;
}

.tht-buyin__media {
  min-width: 0;
  aspect-ratio: 4 / 3;
}

.tht-buyin__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blind levels */
.tht-blinds__intro {
  max-width: 60ch;
  margin-block-start: var(--space-lg);
}

.tht-blinds__table-wrap {
  margin-block-start: var(--space-lg);
  overflow-x: auto;
  border: var(--border-thin);
  border-radius: var(--radius-card);
  background-color: var(--color-plum-velvet);
}

.tht-blinds__table {
  min-width: 480px;
  margin-block-end: 0;
}

.tht-blinds__table th,
.tht-blinds__table td {
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.tht-blinds__table th:first-child,
.tht-blinds__table td:first-child {
  text-align: left;
}

.tht-blinds__table tbody tr:nth-child(even) {
  background-color: rgba(42, 27, 36, 0.35);
}

.tht-blinds__duration {
  margin-block-start: var(--space-xl);
  max-width: 60ch;
}

/* Final table */
.tht-final {
  background-color: var(--color-teal-midnight);
}

.tht-final__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.tht-final__text {
  min-width: 0;
}

.tht-final__text p,
.tht-final__text ul {
  max-width: 45ch;
}

.tht-final__media {
  min-width: 0;
  aspect-ratio: 16 / 9;
}

.tht-final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Etiquette */
.tht-etiquette__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-block-start: var(--space-lg);
}

.tht-etiquette__column {
  min-width: 0;
}

.tht-etiquette__column p,
.tht-etiquette__column ul {
  max-width: 50ch;
}

.tht-etiquette__list {
  list-style: none;
  padding-inline-start: 0;
}

.tht-etiquette__list li {
  padding-inline-start: var(--space-lg);
  position: relative;
  margin-block-end: var(--space-xs);
}

.tht-etiquette__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-rose-dusty);
  font-weight: 600;
}

/* Atmosphere */
.tht-atmosphere {
  background: radial-gradient(ellipse at center, rgba(74, 44, 58, 0.6) 0%, rgba(42, 27, 36, 0.95) 70%, var(--color-plum-deep) 100%);
}

.tht-atmosphere__inner {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.tht-atmosphere__inner p {
  max-width: 40ch;
  margin-block-end: 0;
}

.tht-atmosphere__inner ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: rgba(247, 231, 206, 0.8);
}

/* FAQ */
.tht-faq__container {
  max-width: 800px;
}

.tht-faq__list {
  margin-block-start: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tht-faq__item {
  border: var(--border-thin);
  border-radius: var(--radius-card);
  background-color: var(--color-plum-velvet);
  overflow: hidden;
}

.tht-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  color: var(--color-champagne-warm);
  font-weight: 600;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.tht-faq__trigger:hover {
  background-color: rgba(183, 110, 121, 0.08);
}

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

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

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

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

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

.tht-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding-inline: var(--space-md);
}

.tht-faq__panel p,
.tht-faq__panel ul {
  max-width: 55ch;
}

.tht-faq__panel > *:last-child {
  margin-block-end: var(--space-md);
}

/* Reservation */
.tht-reserve {
  background-color: var(--color-plum-velvet);
}

.tht-reserve__container {
  max-width: 600px;
}

.tht-reserve__container > p {
  max-width: 55ch;
}

.tht-reserve__form {
  margin-block-start: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tht-reserve__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.tht-reserve__row .form-field {
  min-width: 0;
  margin-block-end: 0;
}

.tht-reserve__age {
  margin-block-end: 0;
}

.tht-reserve__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-champagne-warm);
  cursor: pointer;
}

.tht-reserve__checkbox input {
  margin-block-start: 0.25em;
  accent-color: var(--color-rose-dusty);
}

.tht-reserve__success {
  color: var(--color-champagne-warm);
  background-color: rgba(183, 110, 121, 0.15);
  border: 1px solid var(--color-rose-dusty);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  margin-block-end: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .tht-hero__content {
    width: 60%;
    margin-left: var(--space-lg);
  }

  .tht-buyin__grid,
  .tht-final__grid {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .tht-hero {
    min-height: 80vh;
  }

  .tht-hero__content {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-lg) var(--space-sm);
    align-items: flex-start;
  }

  .tht-hero__content h2 {
    font-size: var(--text-h1);
  }

  .tht-format__grid {
    grid-template-columns: 1fr;
  }

  .tht-buyin__grid,
  .tht-final__grid {
    grid-template-columns: 1fr;
  }

  .tht-buyin__media,
  .tht-final__media {
    order: -1;
  }

  .tht-etiquette__grid {
    grid-template-columns: 1fr;
  }

  .tht-reserve__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tht-hero {
    min-height: 70vh;
  }

  .tht-hero__content {
    width: 100%;
    padding: var(--space-md) var(--space-sm);
  }

  .tht-hero__content h2 {
    font-size: var(--text-h2);
  }

  .tht-hero__facts {
    display: none;
  }

  .tht-atmosphere__inner {
    padding-inline: var(--space-sm);
  }

  .tht-faq__trigger {
    padding: var(--space-sm);
  }

  .tht-faq__panel {
    padding-inline: var(--space-sm);
  }
}
