/* style/poker.css */
.page-poker {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #FFF6D6); /* Default text color from custom palette */
  background-color: var(--bg-color, #0A0A0A); /* Default background color from custom palette */
}

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

.page-poker__section {
  padding: 60px 0;
}

.page-poker__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF6D6);
  line-height: 1.2;
}

.page-poker__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-main-color, #FFF6D6);
  line-height: 1.6;
}

/* Color Contrast Classes */
.page-poker__dark-bg {
  background-color: var(--bg-color, #0A0A0A);
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-poker__text-main {
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__text-block h1,
.page-poker__text-block h2,
.page-poker__text-block h3 {
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__text-block p {
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__card {
  background-color: var(--card-bg-color, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #FFF6D6);
}

/* Buttons */
.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Ensure high contrast with gold gradient */
  border: none;
}

.page-poker__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  transform: translateY(-2px);
}

.page-poker__btn-secondary {
  background-color: transparent;
  color: var(--text-main-color, #FFF6D6);
  border: 2px solid var(--border-color, #3A2A12);
}

.page-poker__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--glow-color, #FFD36B);
  transform: translateY(-2px);
}

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

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-poker__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-poker__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size for H1 */
  margin-bottom: 15px;
  color: var(--text-main-color, #FFF6D6);
  letter-spacing: 1px;
  line-height: 1.1;
}

.page-poker__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-main-color, #FFF6D6);
}

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

.page-poker__cta-buttons--centered {
  margin-top: 40px;
}

/* Why Choose Section */
.page-poker__why-choose .page-poker__section-title,
.page-poker__why-choose .page-poker__section-description {
  color: #333333;
}

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

.page-poker__feature-card {
  text-align: center;
}

.page-poker__feature-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-height: 200px; /* Max height for feature images */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.page-poker__feature-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__feature-text {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-main-color, #FFF6D6);
}

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

.page-poker__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-poker__game-image {
  width: 100%;
  height: 250px; /* Fixed height for game images */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-poker__game-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__game-text {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-main-color, #FFF6D6);
  flex-grow: 1; /* Make text take available space */
  margin-bottom: 20px;
}

/* How To Start Section */
.page-poker__how-to-start .page-poker__section-title,
.page-poker__how-to-start .page-poker__section-description {
  color: #333333;
}

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

.page-poker__step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-poker__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--glow-color, #FFD36B);
  margin-bottom: 15px;
}

.page-poker__step-title {
  font-size: 1.7em;
  margin-bottom: 10px;
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__step-text {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-main-color, #FFF6D6);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-poker__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-poker__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-poker__promo-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__promo-text {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-main-color, #FFF6D6);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Secure & Fair Play Section */
.page-poker__secure-fair .page-poker__section-title,
.page-poker__secure-fair .page-poker__section-description {
  color: #333333;
}

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

.page-poker__security-item {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-poker__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

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

.page-poker__security-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

/* Mobile App Section */
.page-poker__app-showcase {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-poker__app-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  max-height: 600px;
}

.page-poker__app-features {
  width: 50%;
  text-align: left;
}

.page-poker__app-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__app-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-poker__app-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--text-main-color, #FFF6D6);
}

.page-poker__list-icon {
  color: var(--glow-color, #FFD36B);
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 10px;
}

/* FAQ Section */
.page-poker__faq-section .page-poker__section-title,
.page-poker__faq-section .page-poker__section-description {
  color: #333333;
}

.page-poker__faq-list {
  margin-top: 40px;
}

.page-poker__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg-color, #111111);
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main-color, #FFF6D6);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-poker__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1.1em;
}

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

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

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

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it expands */
  padding: 15px 20px;
}

.page-poker__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-main-color, #FFF6D6);
}

/* Final CTA Section */
.page-poker__cta-final {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

  .page-poker__hero-content {
    max-width: 700px;
  }

  .page-poker__app-showcase {
    flex-direction: column;
    gap: 30px;
  }

  .page-poker__app-image,
  .page-poker__app-features {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-poker__section {
    padding: 40px 0;
  }

  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure content is not hidden by fixed header */
    padding-bottom: 40px;
  }

  .page-poker__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-poker__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-poker__intro-text {
    font-size: 1em;
  }

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

  .page-poker__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-poker__section,
  .page-poker__card,
  .page-poker__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker__app-features {
    padding: 0;
  }

  .page-poker__app-subtitle {
    font-size: 1.5em;
  }

  .page-poker__faq-question,
  .page-poker__faq-question h3 {
    font-size: 1em;
  }

  .page-poker__faq-answer p {
    font-size: 0.9em;
  }

  .page-poker__security-item {
    padding: 15px;
  }

  .page-poker__security-title {
    font-size: 1.3em;
  }
}

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

  .page-poker__hero-content {
    padding: 0 10px;
  }

  .page-poker__intro-text {
    font-size: 0.9em;
  }

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    padding: 10px 20px;
  }

  .page-poker__game-image {
    height: 180px;
  }

  .page-poker__promo-image {
    height: 150px;
  }
}