/* style/poker.css */

/* Base styles for the poker page */
.page-poker {
  color: #FFF6D6; /* Text Main for dark background */
  background-color: #0A0A0A; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-poker__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.2;
}

.page-poker__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #FFF6D6;
  text-align: center;
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
}

.page-poker__hero-description,
.page-poker__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF6D6;
  text-align: center;
}

/* Sections */
.page-poker__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  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;
  display: block;
  object-fit: cover;
}

.page-poker__hero-content {
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-poker__dark-section {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
}

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

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

.page-poker__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-poker__btn-secondary {
  background: transparent;
  color: #FFF6D6; /* Text Main */
  border: 2px solid #F2C14E; /* Main Brand Color */
}

.page-poker__btn-secondary:hover {
  background-color: #F2C14E; /* Main Brand Color */
  color: #111111;
}

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

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

.page-poker__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-poker__feature-heading,
.page-poker__step-heading,
.page-poker__game-heading,
.page-poker__promo-heading {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Main Brand Color */
}

.page-poker__feature-text,
.page-poker__step-text,
.page-poker__game-text,
.page-poker__promo-text {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
  flex-grow: 1;
}

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

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

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

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

.page-poker__strategy-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Border */
}

.page-poker__strategy-heading {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow */
}

.page-poker__strategy-text {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
}

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

.page-poker__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-poker__responsible-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-poker__responsible-image {
  flex: 1 1 300px;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-poker__responsible-text-block {
  flex: 2 1 400px;
  color: #FFF6D6;
}

.page-poker__responsible-subheading {
  font-size: 1.3em;
  font-weight: bold;
  color: #F2C14E; /* Main Brand Color */
  margin-top: 20px;
  margin-bottom: 10px;
}

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

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

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-heading {
  font-size: 1.15em;
  margin: 0;
  color: #FFF6D6;
}

.page-poker__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Main Brand Color */
}

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

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

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

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

/* Call to action at the bottom */
.page-poker__cta-bottom-section {
  text-align: center;
  padding: 60px 20px;
}

.page-poker__cta-bottom-section .page-poker__section-title {
  margin-bottom: 20px;
}

.page-poker__cta-bottom-section .page-poker__text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker__keyword {
  color: #FFD36B; /* Highlight keywords */
  font-weight: bold;
}

/* Global image responsiveness */
.page-poker img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-poker__container {
    padding: 20px 15px !important;
  }

  .page-poker__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-poker__hero-content {
    padding: 30px 15px;
  }

  .page-poker__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-poker__feature-grid,
  .page-poker__steps-grid,
  .page-poker__game-grid,
  .page-poker__strategy-grid,
  .page-poker__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-poker__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-poker__responsible-image {
    max-width: 100%;
  }

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

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

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

  /* Ensure all images are responsive */
  .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;
  }

  /* Specific overrides for padding on mobile if needed */
  .page-poker__hero-section,
  .page-poker__why-choose-section,
  .page-poker__getting-started-section,
  .page-poker__games-section,
  .page-poker__strategy-section,
  .page-poker__promotions-section,
  .page-poker__responsible-gaming-section,
  .page-poker__faq-section,
  .page-poker__cta-bottom-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-poker__hero-section {
    padding-top: 10px !important;
  }

  .page-poker p,
  .page-poker li {
    font-size: 15px;
  }
}

/* Color Contrast Fixes (if needed) */
/* Example: if a specific background makes text unreadable, apply a fix */
/* .page-poker__contrast-fix { background: #ffffff !important; color: #333333 !important; } */