/* style/poker.css */

:root {
  --poker-primary-color: #F2C14E;
  --poker-secondary-color: #FFD36B;
  --poker-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --poker-card-bg: #111111;
  --poker-background-bg: #0A0A0A;
  --poker-text-main: #FFF6D6;
  --poker-border-color: #3A2A12;
  --poker-glow-color: #FFD36B;
  --header-offset: 120px; /* Default for desktop, adjust as needed */
}

.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--poker-text-main); /* Light text on dark body background */
  background-color: var(--poker-background-bg);
}

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

.page-poker__section-title {
  font-size: 2.5em;
  color: var(--poker-primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-poker__sub-title {
  font-size: 1.8em;
  color: var(--poker-secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-poker__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--poker-text-main);
}

.page-poker__text-content .page-poker__section-text {
  text-align: left;
}

.page-poker__text-link {
  color: var(--poker-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-poker__text-link:hover {
  color: var(--poker-primary-color);
  text-decoration: underline;
}

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-poker__btn-primary {
  background: var(--poker-button-gradient);
  color: #ffffff; /* White text on button gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-poker__btn-secondary {
  background: transparent;
  color: var(--poker-primary-color); /* Primary color text on transparent background */
  border: 2px solid var(--poker-primary-color);
}

.page-poker__btn-secondary:hover {
  background: var(--poker-primary-color);
  color: #ffffff;
}

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

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background-color: var(--poker-background-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-poker__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.page-poker__main-title {
  color: var(--poker-primary-color);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
}

.page-poker__hero-description {
  font-size: 1.2em;
  color: var(--poker-text-main);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Introduction Section */
.page-poker__introduction-section,
.page-poker__security-section,
.page-poker__payment-section,
.page-poker__faq-section {
  padding: 80px 0;
  background-color: var(--poker-background-bg);
}

.page-poker__games-section,
.page-poker__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--poker-card-bg);
}

.page-poker__how-to-play-section {
  padding: 80px 0;
  background-color: var(--poker-background-bg);
}

.page-poker__promo-section,
.page-poker__mobile-section,
.page-poker__support-section {
  padding: 80px 0;
  background-color: var(--poker-card-bg);
}

.page-poker__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-poker__image-text-block .page-poker__content-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-poker__image-text-block .page-poker__text-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-poker__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-poker__feature-list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid var(--poker-primary-color);
  border-radius: 5px;
  color: var(--poker-text-main);
  font-size: 1.1em;
}

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

.page-poker__card {
  background-color: var(--poker-card-bg);
  border: 1px solid var(--poker-border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-poker__card-title {
  font-size: 1.5em;
  color: var(--poker-primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-poker__card-description {
  font-size: 1em;
  color: var(--poker-text-main);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-poker__card .page-poker__btn-primary {
  margin: 0 15px;
  width: calc(100% - 30px);
}

/* How to Play Section */
.page-poker__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__step-item {
  background-color: var(--poker-card-bg);
  border: 1px solid var(--poker-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__step-title {
  font-size: 1.6em;
  color: var(--poker-secondary-color);
  margin-bottom: 15px;
}

.page-poker__step-description {
  color: var(--poker-text-main);
  margin-bottom: 25px;
}

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

.page-poker__promo-card {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  border: 1px solid var(--poker-border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  color: var(--poker-text-main);
}

.page-poker__promo-card .page-poker__card-image {
  height: 180px;
}

.page-poker__promo-card .page-poker__card-title {
  color: var(--poker-secondary-color);
}

.page-poker__promo-card .page-poker__card-description {
  color: var(--poker-text-main);
}

/* Security Section */
.page-poker__feature-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-poker__feature-block {
  background-color: var(--poker-card-bg);
  border: 1px solid var(--poker-border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--poker-primary-color));
}

.page-poker__feature-title {
  font-size: 1.5em;
  color: var(--poker-primary-color);
  margin-bottom: 10px;
}

.page-poker__feature-description {
  color: var(--poker-text-main);
}

/* Mobile Section */
.page-poker__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-poker__mobile-section .page-poker__text-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-poker__mobile-section .page-poker__image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-poker__mobile-section .page-poker__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-poker__payment-item {
  background-color: var(--poker-card-bg);
  border: 1px solid var(--poker-border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__payment-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-poker__payment-title {
  font-size: 1.3em;
  color: var(--poker-secondary-color);
}

/* Support Section */
.page-poker__support-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-poker__faq-list {
  margin-top: 50px;
}

.page-poker__faq-item {
  background-color: var(--poker-card-bg);
  border: 1px solid var(--poker-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly lighter for contrast */
  color: var(--poker-text-main);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
  background-color: #222222;
}

.page-poker__faq-title {
  margin: 0;
  color: var(--poker-text-main);
  font-size: 1.1em;
}

.page-poker__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--poker-primary-color);
  transition: transform 0.3s ease;
}

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(45deg);
  color: var(--poker-secondary-color);
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: var(--poker-card-bg);
  color: var(--poker-text-main);
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

.page-poker__faq-answer p {
  margin-bottom: 0;
  padding-bottom: 0;
  text-align: left;
}

/* Colors for contrast safety */
.page-poker__dark-bg {
  color: var(--poker-text-main); /* Deep dark background */
}

.page-poker__medium-bg {
  color: var(--poker-text-main); /* Card background */
}

.page-poker__light-bg {
  color: #333333; /* For elements with lighter backgrounds */
  background: #ffffff;
}

.page-poker__text-contrast-fix {
  color: var(--poker-text-main); /* Ensure light text on darker brand colors */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-poker__section-title {
    font-size: 2em;
  }
  .page-poker__image-text-block {
    flex-direction: column;
  }
  .page-poker__mobile-section .page-poker__flex-container {
    flex-direction: column;
  }
  .page-poker__mobile-section .page-poker__image-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }
  .page-poker__hero-image-wrapper {
    max-height: 400px;
  }
  .page-poker__hero-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-poker__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-poker__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-poker__sub-title {
    font-size: 1.5em;
  }
  .page-poker__section-text {
    font-size: 1em;
  }
  .page-poker__cta-buttons,
  .page-poker__support-options {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }
  .page-poker__container {
    padding: 0 15px !important;
  }
  .page-poker__introduction-section,
  .page-poker__games-section,
  .page-poker__how-to-play-section,
  .page-poker__promo-section,
  .page-poker__security-section,
  .page-poker__mobile-section,
  .page-poker__payment-section,
  .page-poker__support-section,
  .page-poker__faq-section,
  .page-poker__cta-bottom-section {
    padding: 60px 0;
  }
  .page-poker img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__feature-block,
  .page-poker__payment-item,
  .page-poker__faq-item,
  .page-poker__cta-buttons,
  .page-poker__button-group,
  .page-poker__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-poker__cta-button,
  .page-poker__btn-primary,
  .page-poker__btn-secondary,
  .page-poker a[class*="button"],
  .page-poker a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-poker__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}