/* style/poker.css */
.page-poker {
  color: #ffffff; /* Default text color for dark background */
  background-color: #000000;
}

.page-poker__hero-section {
  padding-top: var(--header-offset, 120px);
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-poker__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Constrain content width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 20px;
}

.page-poker__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-poker__hero-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  max-width: 800px;
}

.page-poker__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-poker__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
  line-height: 1.6;
}

.page-poker__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-poker__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.page-poker__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-poker__button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-poker__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-poker__button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-poker__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-poker__section-title {
  font-size: 2.8em;
  color: #FCBC45;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-poker__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFFFFF;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-poker__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #E0E0E0;
  text-align: justify;
}

.page-poker__text-content--small {
  font-size: 0.95em;
  text-align: center;
}

.page-poker__login-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-poker__login-link:hover {
  text-decoration: underline;
}

.page-poker__about-section,
.page-poker__games-section,
.page-poker__strategy-section,
.page-poker__tournaments-section,
.page-poker__cta-section {
  padding: 60px 0;
}

.page-poker__features-grid,
.page-poker__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-poker__feature-card,
.page-poker__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-poker__feature-card:hover,
.page-poker__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-poker__card-title {
  font-size: 1.6em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-poker__card-description {
  font-size: 1em;
  color: #CCCCCC;
  line-height: 1.6;
  flex-grow: 1;
}

.page-poker__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it's a block element */
}

.page-poker__game-card .page-poker__button {
  margin-top: 20px;
  width: auto; /* Allow button to size based on content */
  align-self: center;
}

.page-poker__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-poker__strategy-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #FCBC45;
  padding: 25px;
  border-radius: 8px;
}

.page-poker__item-title {
  font-size: 1.4em;
  color: #FCBC45;
  margin-bottom: 10px;
}

.page-poker__item-description {
  font-size: 0.95em;
  color: #C0C0C0;
  line-height: 1.6;
}

.page-poker__tournament-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-poker__tournament-highlights {
  margin-top: 40px;
  text-align: center;
}

.page-poker__tournament-highlights .page-poker__item-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.page-poker__tournament-highlights .page-poker__item-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-poker__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-title {
    font-size: 3em;
  }
  .page-poker__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-poker__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px);
  }
  .page-poker__hero-title {
    font-size: 2.5em;
  }
  .page-poker__hero-description {
    font-size: 1.1em;
  }
  .page-poker__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__button {
    width: 100%;
    max-width: 300px;
  }
  .page-poker__section-title {
    font-size: 2em;
  }
  .page-poker__text-content {
    font-size: 1em;
  }
  .page-poker__game-image {
    height: 200px;
  }
  .page-poker__feature-card, .page-poker__game-card {
    padding: 20px;
  }
  /* Ensure content images do not overflow */
  .page-poker img {
    max-width: 100%;
    height: auto;
  }
  .page-poker__container {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .page-poker__hero-title {
    font-size: 2em;
  }
  .page-poker__hero-description {
    font-size: 0.95em;
  }
  .page-poker__section-title {
    font-size: 1.8em;
  }
  .page-poker__card-title {
    font-size: 1.4em;
  }
  .page-poker__item-title {
    font-size: 1.2em;
  }
  .page-poker__feature-card, .page-poker__game-card {
    padding: 15px;
  }
}