/* style/poker.css */

/* Base styles for the poker page */
.page-poker {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: transparent; /* Body background is handled by shared.css (#0A0A0A) */
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-poker__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Main brand color for title */
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.page-poker__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* General Section Styles */
.page-poker__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-poker__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-poker p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #FFF6D6;
}

/* Buttons */
.page-poker__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
}

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

.page-poker__btn-primary,
.page-poker__btn-secondary,
.page-poker a[class*="button"],
.page-poker a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure text breaks within button */
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

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

.page-poker__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-poker__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

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

.page-poker__feature-card {
  background-color: #111111; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-poker__feature-icon {
  width: 200px; /* Adjusted to meet min 200x200px image requirement */
  height: 150px; /* Adjusted to meet min 200x200px image requirement */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-poker__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 10px;
}

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

.page-poker__game-type-card {
  background-color: #111111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
}

.page-poker__game-type-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-poker__game-type-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F2C14E;
  padding: 15px 20px 0;
}

.page-poker__game-type-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: #FFF6D6;
  flex-grow: 1;
}

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

.page-poker__guide-step {
  background-color: #111111;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12;
}

.page-poker__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
}

.page-poker__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 10px;
}

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

.page-poker__strategy-card {
  background-color: #111111;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-poker__strategy-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 10px;
}

/* 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 {
  background-color: #111111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
}

.page-poker__promo-image {
  width: 100%;
  height: 220px; /* Consistent height for promo images */
  object-fit: cover;
  display: block;
}

.page-poker__promo-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F2C14E;
  padding: 15px 20px 0;
}

.page-poker__promo-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 20px 15px;
  color: #FFF6D6;
  flex-grow: 1;
}

.page-poker__promo-card .page-poker__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  max-width: none; /* Override default max-width for full card width */
}

/* Responsible Gaming Section */
.page-poker__responsible-gaming-section p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-poker__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(242, 193, 78, 0.05); /* Slightly lighter background for question */
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-question h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E;
  margin: 0;
}

.page-poker__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFD36B;
  transition: transform 0.3s ease;
  line-height: 1; /* Ensure +/- is centered */
}

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

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

.page-poker__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-poker__cta-final-section p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-poker__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-poker__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-poker__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    padding: 0 15px; /* Add padding to container */
  }

  .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;
    padding: 12px 20px;
    font-size: 1rem;
    min-width: unset;
  }

  .page-poker__content-area {
    padding: 30px 15px;
  }

  .page-poker__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-poker p {
    font-size: 0.95rem;
  }

  .page-poker__feature-grid,
  .page-poker__game-type-grid,
  .page-poker__step-by-step-guide,
  .page-poker__strategy-grid,
  .page-poker__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-poker__feature-card,
  .page-poker__game-type-card,
  .page-poker__guide-step,
  .page-poker__strategy-card,
  .page-poker__promo-card {
    padding: 20px;
  }

  .page-poker__feature-icon {
    width: 150px; /* Adjust feature icon size for mobile */
    height: 112px; /* Maintain aspect ratio */
  }

  .page-poker__feature-title,
  .page-poker__game-type-card h3,
  .page-poker__step-title,
  .page-poker__strategy-title,
  .page-poker__promo-card h3 {
    font-size: 1.3rem;
  }

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

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

  .page-poker__faq-question {
    padding: 15px;
  }

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

  .page-poker__faq-answer {
    padding: 0 15px;
  }

  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 15px 15px 15px;
  }

  /* Force responsive images on mobile */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__hero-section,
  .page-poker__about-section,
  .page-poker__features-section,
  .page-poker__game-types-section,
  .page-poker__how-to-play-section,
  .page-poker__strategy-section,
  .page-poker__promotions-section,
  .page-poker__responsible-gaming-section,
  .page-poker__faq-section,
  .page-poker__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}