/* Page-owned styles for /features/ */

.features-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--sand-50);
}

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

.features-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.features-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.2) 0%, rgba(28, 25, 23, 0.05) 55%, rgba(28, 25, 23, 0.25) 100%);
}

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

.features-hero__eyebrow {
  color: var(--white);
  background-color: rgba(28, 25, 23, 0.35);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-block-end: 0;
}

.features-hero__title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  max-width: 800px;
  margin-block-end: 0;
  text-shadow: 0 2px 12px rgba(28, 25, 23, 0.35);
}

.features-hero__subtitle {
  color: var(--white);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin-block-end: 0;
  text-shadow: 0 1px 8px rgba(28, 25, 23, 0.3);
}

.features-hero__cta {
  margin-block-start: var(--space-2);
}

.features-section {
  padding-block: var(--space-8);
}

.features-section--sand-50 {
  background-color: var(--sand-50);
}

.features-section--sand-100 {
  background-color: var(--sand-100);
}

/* Experience section */
.features-experience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.features-experience__text {
  max-width: 500px;
  min-width: 0;
}

.features-experience__text h2 {
  margin-block-end: var(--space-4);
}

.features-experience__text p {
  margin-block-end: var(--space-3);
}

.features-experience__list {
  margin-block-start: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.features-experience__list li {
  position: relative;
  padding-inline-start: var(--space-4);
  line-height: 1.6;
}

.features-experience__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--amber-600);
}

.features-experience__media {
  min-width: 0;
}

.features-experience__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Chip-based play section */
.features-chip-play {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.features-chip-play__intro {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.features-chip-play__intro h2 {
  margin-block-end: var(--space-4);
}

.features-chip-play__intro p {
  margin-block-end: 0;
}

.features-chip-play__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.features-chip-card {
  background-color: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.features-chip-card:hover {
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.14);
  transform: translateY(-4px);
}

.features-chip-card__icon {
  color: var(--amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--sand-100);
}

.features-chip-card h3 {
  margin-block-end: 0;
}

.features-chip-card p {
  margin-block-end: 0;
}

/* Tournaments section */
.features-tournaments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.features-tournaments__text {
  max-width: 500px;
  min-width: 0;
}

.features-tournaments__text h2 {
  margin-block-end: var(--space-4);
}

.features-tournaments__text p {
  margin-block-end: var(--space-3);
}

.features-tournaments__schedule {
  max-width: 400px;
  min-width: 0;
  background-color: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.features-tournaments__schedule h3 {
  margin-block-end: var(--space-4);
}

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

.features-tournaments__list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block-end: var(--space-3);
  border-bottom: 1px solid var(--stone-300);
}

.features-tournaments__list li:last-child {
  border-bottom: none;
  padding-block-end: 0;
}

.features-tournaments__format {
  font-weight: 600;
  font-family: var(--body-font);
  color: var(--ink-900);
}

.features-tournaments__detail {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-900);
  opacity: 0.8;
}

/* Tables section */
.features-tables {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.features-tables__intro {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.features-tables__intro h2 {
  margin-block-end: var(--space-4);
}

.features-tables__intro p {
  margin-block-end: 0;
}

.features-tables__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.features-table-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.features-table-card__media {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: calc(-1 * var(--space-4));
  margin-block-end: var(--space-3);
}

.features-table-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: transform var(--transition-slow);
}

.features-table-card:hover .features-table-card__image {
  transform: scale(1.04);
}

.features-table-card h3 {
  margin-block-end: 0;
}

.features-table-card p {
  margin-block-end: 0;
}

/* Amenities section */
.features-amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.features-amenities__text {
  max-width: 500px;
  min-width: 0;
}

.features-amenities__text h2 {
  margin-block-end: var(--space-4);
}

.features-amenities__text p {
  margin-block-end: var(--space-3);
}

.features-amenities__list {
  max-width: 400px;
  min-width: 0;
}

.features-amenities__list ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.features-amenities__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  line-height: 1.6;
}

.features-amenities__icon {
  flex-shrink: 0;
  color: var(--amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--sand-100);
}

/* Atmosphere section */
.features-atmosphere {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--sand-50);
}

.features-atmosphere__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.features-atmosphere__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.features-atmosphere__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.2) 0%, rgba(28, 25, 23, 0.05) 50%, rgba(28, 25, 23, 0.3) 100%);
}

.features-atmosphere__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-8);
}

.features-atmosphere__eyebrow {
  color: var(--white);
  background-color: rgba(28, 25, 23, 0.35);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-block-end: 0;
}

.features-atmosphere__content h2 {
  color: var(--white);
  margin-block-end: 0;
  text-shadow: 0 2px 12px rgba(28, 25, 23, 0.35);
}

.features-atmosphere__content p {
  color: var(--white);
  margin-block-end: 0;
  text-shadow: 0 1px 8px rgba(28, 25, 23, 0.3);
}

/* Upcoming events section */
.features-upcoming {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.features-upcoming__intro {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.features-upcoming__intro h2 {
  margin-block-end: var(--space-4);
}

.features-upcoming__intro p {
  margin-block-end: 0;
}

.features-upcoming__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.features-event-card {
  min-width: 0;
  background-color: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.features-event-card:hover {
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.14);
  transform: translateY(-4px);
}

.features-event-card h3 {
  margin-block-end: 0;
}

.features-event-card p {
  margin-block-end: 0;
}

.features-event-card__link {
  margin-block-start: auto;
  font-weight: 500;
}

/* CTA section */
.features-cta {
  background-color: var(--sand-100);
  padding-block: var(--space-8);
}

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

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

.features-cta__content p {
  margin-block-end: 0;
}

.features-cta__button {
  margin-block-start: var(--space-2);
  min-height: 44px;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .features-experience,
  .features-tournaments,
  .features-amenities {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .features-experience__text,
  .features-tournaments__text,
  .features-amenities__text,
  .features-tournaments__schedule,
  .features-amenities__list {
    max-width: 100%;
  }

  .features-experience__media {
    order: -1;
  }

  .features-chip-play__cards,
  .features-tables__grid,
  .features-upcoming__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-chip-card:last-child,
  .features-table-card:last-child,
  .features-event-card:last-child {
    grid-column: span 2;
  }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  .features-hero {
    min-height: 60vh;
  }

  .features-hero__content {
    padding-block: var(--space-7);
    gap: var(--space-3);
  }

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

  .features-hero__subtitle {
    font-size: 1rem;
  }

  .features-section {
    padding-block: var(--space-7);
  }

  .features-experience,
  .features-tournaments,
  .features-amenities {
    grid-template-columns: 1fr;
  }

  .features-experience__media {
    order: -1;
  }

  .features-chip-play__cards,
  .features-tables__grid,
  .features-upcoming__grid {
    grid-template-columns: 1fr;
  }

  .features-chip-card:last-child,
  .features-table-card:last-child,
  .features-event-card:last-child {
    grid-column: auto;
  }

  .features-atmosphere {
    min-height: 300px;
  }

  .features-atmosphere__content {
    padding-block: var(--space-7);
    gap: var(--space-3);
  }

  .features-atmosphere__content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .features-cta {
    padding-block: var(--space-7);
  }
}

@media (max-width: 479px) {
  .features-hero__title {
    font-size: 1.9rem;
  }

  .features-chip-card,
  .features-table-card,
  .features-event-card {
    padding: var(--space-4);
  }

  .features-table-card__media {
    margin: calc(-1 * var(--space-4));
    margin-block-end: var(--space-3);
  }
}
