/* style/poker.css */
.page-poker {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

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

/* Hero Section */
.page-poker__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-poker__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-poker__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-poker__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-poker__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-poker__button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-poker__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-poker__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* General Section Styling */
.page-poker__about-section, .page-poker__games-section, .page-poker__tournaments-section, .page-poker__strategy-section, .page-poker__cta-section, .page-poker__security-section {
  padding: 80px 0;
  text-align: center;
}

.page-poker__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  color: #000000;
}

.page-poker__section-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

/* Games Section */
.page-poker__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-poker__game-card img {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-poker__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-poker__button--small {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #FCBC45;
  color: #000000;
}

.page-poker__button--small:hover {
  background-color: #e0a030;
}

/* Tournaments Section */
.page-poker__tournaments-section {
  background-color: #f0f0f0;
}

.page-poker__tournament-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-poker__feature-item img {
  width: 100%;
  max-width: 200px; /* Max width for feature icons */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-poker__feature-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-poker__feature-description {
  font-size: 0.95em;
  color: #666666;
}

.page-poker__button--primary {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 50px;
}

.page-poker__button--primary:hover {
  background-color: #e0a030;
}

/* Strategy Section */
.page-poker__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 40px;
}

.page-poker__button--secondary:hover {
  background-color: #333333;
}

/* CTA Section */
.page-poker__cta-section {
  background: linear-gradient(135deg, #000000, #333333);
  color: #FFFFFF;
  padding: 100px 0;
}

.page-poker__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-poker__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-poker__button--register-cta {
  background-color: #FFFFFF;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-poker__button--register-cta:hover {
  background-color: #f0f0f0;
}

/* Security Section */
.page-poker__security-section {
  background-color: #f8f8f8;
}

.page-poker__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 40px;
}

.page-poker__button--learn-more:hover {
  background-color: #333333;
}

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

  .page-poker__section-title {
    font-size: 2.2em;
  }

  .page-poker__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-poker {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header height */
  }

  .page-poker__hero-section {
    padding: 60px 20px 30px;
  }

  .page-poker__hero-title {
    font-size: 2.2em;
  }

  .page-poker__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-poker__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-poker__button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
  }

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

  .page-poker__section-title {
    font-size: 1.8em;
  }

  .page-poker__section-text {
    font-size: 0.95em;
  }

  .page-poker__game-grid, .page-poker__tournament-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-poker__game-card, .page-poker__feature-item {
    padding: 25px;
  }

  .page-poker__game-card img, .page-poker__feature-item img {
    max-width: 100%; /* Ensure content images are responsive and not too small */
    height: auto;
  }

  .page-poker__cta-title {
    font-size: 2em;
  }

  .page-poker__cta-description {
    font-size: 1em;
  }

  /* Ensure all content images within .page-poker are responsive and do not overflow */
  .page-poker img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-poker__hero-title {
    font-size: 1.8em;
  }

  .page-poker__section-title {
    font-size: 1.6em;
  }

  .page-poker__cta-title {
    font-size: 1.8em;
  }
}