/* Page-owned styles for Poker Gallery & Events */

.gallery-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-obsidian);
}

.gallery-hero-image {
  position: absolute;
  inset: 0;
  background-image: url('/public/media/poker-lounge-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  padding: var(--space-9) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.gallery-hero-content h1 {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  font-weight: var(--weight-display);
  color: var(--color-white-high);
  max-width: 60ch;
  margin-block-end: 0;
  position: relative;
  padding-block-end: var(--space-4);
}

.gallery-hero-content h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--color-gold-royal);
  margin: var(--space-4) auto 0;
}

.gallery-hero-lead {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--color-white-high);
  max-width: 60ch;
  margin-block-end: 0;
}

.gallery-hero-support {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin-block-end: 0;
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-block-start: var(--space-3);
}

.gallery-hero-actions .btn {
  min-width: 200px;
}

.gallery-showcase-intro,
.tournament-highlights-intro,
.event-calendar-intro,
.lounge-amenities-intro,
.event-highlights-gallery-intro,
.how-to-participate-intro,
.testimonials-intro {
  text-align: center;
  margin-block-end: var(--space-6);
}

.gallery-showcase-intro h2,
.tournament-highlights-intro h2,
.event-calendar-intro h2,
.lounge-amenities-intro h2,
.event-highlights-gallery-intro h2,
.how-to-participate-intro h2,
.testimonials-intro h2 {
  margin-block-end: var(--space-3);
}

.gallery-showcase-lead,
.tournament-highlights-lead,
.event-calendar-lead,
.lounge-amenities-lead,
.event-highlights-gallery-lead,
.how-to-participate-lead,
.testimonials-lead {
  max-width: 80ch;
  margin-inline: auto;
  margin-block-end: var(--space-3);
}

.gallery-showcase-support,
.event-calendar-support,
.event-highlights-gallery-support,
.testimonials-support {
  max-width: 80ch;
  margin-inline: auto;
  margin-block-end: 0;
}

.gallery-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 1200px;
  margin-inline: auto;
}

.gallery-showcase-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

.gallery-showcase-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.gallery-showcase-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border-gold);
  border-radius: var(--radius-small);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.gallery-showcase-card figcaption {
  margin-block-start: var(--space-3);
  text-align: center;
}

.tournament-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 1100px;
  margin-inline: auto;
}

.tournament-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

.tournament-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.tournament-icon {
  font-size: 2rem;
  color: var(--color-gold-royal);
  line-height: 1;
}

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

.tournament-card p {
  max-width: 60ch;
  margin-block-end: 0;
}

.tournament-link {
  align-self: flex-start;
  color: var(--color-gold-royal);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.tournament-link:hover {
  color: var(--color-copper);
  text-decoration: underline;
}

.event-calendar-container {
  max-width: 1000px;
}

.event-calendar-table-wrapper {
  overflow-x: auto;
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.event-calendar-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-slate-dark);
  margin-block-end: 0;
  border: none;
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.event-calendar-table th,
.event-calendar-table td {
  padding: var(--space-4);
  text-align: start;
  border-bottom: 1px solid var(--color-slate-mid);
}

.event-calendar-table th {
  font-family: var(--font-heading);
  font-weight: var(--weight-h3);
  color: var(--color-gold-royal);
  background-color: var(--color-slate-mid);
}

.event-calendar-table tbody tr:nth-child(even) {
  background-color: rgba(45, 45, 45, 0.5);
}

.event-calendar-table tbody tr:hover {
  background-color: var(--color-slate-mid);
}

.event-calendar-table tbody tr:last-child td {
  border-bottom: none;
}

.event-book-btn {
  min-width: 80px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-caption);
}

.friendly-competition-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  max-width: 1100px;
}

.friendly-competition-text {
  flex: 1 1 50%;
  min-width: 0;
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.friendly-competition-text h2 {
  margin-block-end: var(--space-3);
}

.friendly-competition-lead,
.friendly-competition-support,
.friendly-competition-note {
  max-width: 60ch;
  margin-block-end: var(--space-3);
}

.friendly-competition-note {
  color: var(--color-gold-royal);
  font-weight: 600;
  margin-block-end: 0;
}

.friendly-competition-image {
  flex: 1 1 50%;
  min-width: 0;
}

.friendly-competition-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.friendly-competition-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.lounge-amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 1200px;
  margin-inline: auto;
}

.amenity-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

.amenity-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.amenity-icon {
  font-size: 1.75rem;
  color: var(--color-gold-royal);
  line-height: 1;
}

.amenity-card h3 {
  font-size: var(--text-h4);
  margin-block-end: 0;
}

.amenity-card p {
  max-width: 50ch;
  margin-block-end: 0;
}

.event-highlights-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 900px;
  margin-inline: auto;
}

.event-highlight-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

.event-highlight-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.event-highlight-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border-gold);
  border-radius: var(--radius-small);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.event-highlight-card figcaption {
  margin-block-start: var(--space-3);
  text-align: center;
}

.how-to-participate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 1100px;
  margin-inline: auto;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

.step-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--weight-display);
  color: var(--color-gold-royal);
  line-height: 1;
}

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

.step-card p {
  max-width: 50ch;
  margin-block-end: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 1000px;
  margin-inline: auto;
}

.testimonial-card {
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  margin-block-end: 0;
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.testimonial-card p {
  max-width: 60ch;
  margin-block-end: var(--space-3);
}

.testimonial-card footer {
  color: var(--color-gold-royal);
  font-size: var(--text-caption);
  font-weight: 600;
}

.gallery-cta {
  background-color: var(--color-slate-dark);
  border-block: var(--border-gold);
}

.gallery-cta-container {
  max-width: 800px;
  margin-inline: auto;
  padding: var(--space-8) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.gallery-cta-container h2 {
  margin-block-end: 0;
}

.gallery-cta-message {
  max-width: 60ch;
  margin-block-end: 0;
}

.gallery-cta-support {
  max-width: 60ch;
  margin-block-end: 0;
}

.gallery-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-block-start: var(--space-3);
}

.gallery-cta-actions .btn {
  min-width: 180px;
}

.contact-location-container {
  max-width: 1000px;
}

.contact-location-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  background-color: var(--color-slate-dark);
  border: var(--border-gold);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.contact-location-info {
  flex: 1 1 50%;
  min-width: 0;
}

.contact-location-info h2 {
  margin-block-end: var(--space-3);
}

.contact-location-lead {
  max-width: 80ch;
  margin-block-end: var(--space-4);
}

.contact-location-details {
  font-style: normal;
}

.contact-location-details p {
  margin-block-end: var(--space-2);
}

@media (max-width: 1024px) {
  .gallery-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lounge-amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-to-participate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .friendly-competition-container {
    flex-direction: column;
  }

  .friendly-competition-text,
  .friendly-competition-image {
    flex: 1 1 100%;
  }
}

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

  .gallery-hero-content {
    padding: var(--space-7) var(--space-4);
  }

  .gallery-hero-content h1 {
    font-size: var(--text-h1);
  }

  .gallery-showcase-grid,
  .tournament-highlights-grid,
  .lounge-amenities-grid,
  .how-to-participate-grid,
  .testimonials-grid,
  .event-highlights-gallery-grid {
    grid-template-columns: 1fr;
  }

  .event-calendar-table-wrapper {
    overflow-x: auto;
  }

  .event-calendar-table {
    min-width: 600px;
  }

  .contact-location-card {
    flex-direction: column;
  }

  .contact-location-info {
    flex: 1 1 100%;
  }

  .gallery-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .gallery-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery-hero-content h1 {
    font-size: var(--text-display);
  }

  .gallery-hero-lead,
  .gallery-hero-support {
    font-size: var(--text-body);
  }

  .gallery-showcase-card,
  .tournament-card,
  .amenity-card,
  .step-card,
  .testimonial-card,
  .event-highlight-card {
    padding: var(--space-3);
  }

  .contact-location-card {
    padding: var(--space-4);
  }

  .gallery-cta-container {
    padding: var(--space-6) var(--space-3);
  }
}
