/* Texas Hold’em page styles */

/* Hero */
.th-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-grafit);
}

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

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

.th-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.85));
}

.th-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.th-hero__eyebrow {
  margin-block-end: 0;
}

.th-hero__title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: var(--leading-h1);
  color: var(--color-kosc);
  margin-block-end: 0;
}

.th-hero__lead {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-kosc);
  margin-block-end: 0;
}

.th-hero__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--color-white-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.th-hero__details li {
  position: relative;
  padding-inline-start: var(--space-lg);
}

.th-hero__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-miedziany);
}

.th-hero__actions {
  margin-block-start: var(--space-sm);
}

.th-hero__cta {
  min-width: 220px;
}

/* Intro */
.th-intro {
  background-color: var(--color-grafit);
  color: var(--color-kosc);
}

.th-intro__container {
  max-width: 800px;
}

.th-intro__content {
  max-width: 70ch;
  text-align: left;
}

.th-intro__title {
  color: var(--color-kosc);
}

.th-intro__list {
  margin-block-start: var(--space-md);
}

/* Format */
.th-format {
  background-color: var(--color-kosc);
  color: var(--color-grafit);
}

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

.th-format__text {
  min-width: 0;
}

.th-format__title {
  color: var(--color-grafit);
}

.th-format__card {
  min-width: 0;
  background-color: var(--color-grafit);
  color: var(--color-kosc);
  border: var(--border-dark);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.th-format__card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.th-format__card-title {
  color: var(--color-kosc);
  margin-block-end: var(--space-md);
}

.th-format__schedule {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.th-format__schedule li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: baseline;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-white-muted);
}

.th-format__time {
  font-weight: 600;
  color: var(--color-miedziany);
  min-width: 60px;
}

/* Social */
.th-social {
  background-color: var(--color-kosc);
  color: var(--color-grafit);
}

.th-social__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  align-items: center;
}

.th-social__content {
  min-width: 0;
}

.th-social__title {
  color: var(--color-grafit);
}

.th-social__quote {
  margin-block: var(--space-lg);
  color: var(--color-ceglana);
}

.th-social__note {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: rgba(0, 0, 0, 0.55);
}

.th-social__media {
  min-width: 0;
  max-width: 500px;
  justify-self: center;
  width: 100%;
}

.th-social__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-slow);
}

.th-social__image:hover {
  transform: scale(1.03);
}

/* Fair play */
.th-fair {
  background-color: var(--color-grafit);
  color: var(--color-kosc);
}

.th-fair__container {
  max-width: 800px;
}

.th-fair__content {
  max-width: 70ch;
  text-align: left;
  border-inline-start: 3px solid var(--color-ceglana);
  padding-inline-start: var(--space-lg);
}

.th-fair__title {
  color: var(--color-kosc);
}

.th-fair__list {
  margin-block-start: var(--space-md);
}

.th-fair__regulation {
  margin-block-start: var(--space-md);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-white-muted);
}

.th-fair__regulation a {
  color: var(--color-miedziany);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.th-fair__regulation a:hover {
  color: var(--color-kosc);
}

/* Join */
.th-join {
  background-color: var(--color-kosc);
  color: var(--color-grafit);
}

.th-join__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.th-join__steps {
  min-width: 0;
}

.th-join__title {
  color: var(--color-grafit);
}

.th-join__list {
  margin-block-start: var(--space-md);
}

.th-join__contact {
  min-width: 0;
  background-color: var(--color-grafit);
  color: var(--color-kosc);
  border: var(--border-dark);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.th-join__contact-title {
  color: var(--color-kosc);
  margin-block-end: 0;
}

.th-join__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--color-white-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.th-join__address a {
  color: var(--color-miedziany);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.th-join__address a:hover {
  color: var(--color-kosc);
}

.th-join__cta {
  align-self: flex-start;
}

/* FAQ */
.th-faq {
  background-color: var(--color-grafit);
  color: var(--color-kosc);
}

.th-faq__container {
  max-width: 800px;
}

.th-faq__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.th-faq__title {
  color: var(--color-kosc);
  margin-block-end: 0;
}

.th-faq__lead {
  color: var(--color-white-muted);
  margin-block-end: 0;
}

.th-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.th-faq__item {
  border: var(--border-dark);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.th-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--leading-body);
  color: var(--color-kosc);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.th-faq__question:hover {
  color: var(--color-miedziany);
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.th-faq__icon::before,
.th-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base);
}

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

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

.th-faq__answer {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--color-white-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.th-faq__answer p {
  margin-block-end: 0;
}

/* CTA */
.th-cta {
  background-color: var(--color-petrol);
  color: var(--color-kosc);
}

.th-cta__container {
  max-width: 600px;
}

.th-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.th-cta__title {
  color: var(--color-kosc);
  margin-block-end: 0;
}

.th-cta__message {
  color: var(--color-kosc);
  margin-block-end: 0;
}

.th-cta__details {
  color: var(--color-white-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  margin-block-end: 0;
}

.th-cta__details a {
  color: var(--color-miedziany);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.th-cta__details a:hover {
  color: var(--color-kosc);
}

.th-cta__actions {
  margin-block-start: var(--space-sm);
}

.th-cta__button {
  min-width: 220px;
}

/* Responsive */
@media (max-width: 900px) {
  .th-format__grid,
  .th-social__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .th-social__media {
    max-width: 100%;
    justify-self: stretch;
  }

  .th-join__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .th-join__cta {
    align-self: stretch;
  }
}

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

  .th-hero__content {
    gap: var(--space-md);
  }

  .th-hero__title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .th-hero__cta,
  .th-cta__button {
    width: 100%;
  }

  .th-fair__content {
    border-inline-start: none;
    padding-inline-start: 0;
  }

  .th-faq__question {
    padding: var(--space-sm) var(--space-md);
  }

  .th-faq__answer {
    padding: 0 var(--space-md) var(--space-sm);
  }
}

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

  .th-hero__content {
    padding-block: var(--space-lg);
  }

  .th-hero__details {
    font-size: var(--text-small);
  }

  .th-format__schedule li {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .th-format__time {
    min-width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-social__image:hover,
  .th-format__card:hover {
    transform: none;
  }
}
