/* style/poker.css */

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

/* Sections */
.page-poker__hero-section,
.page-poker__why-choose-section,
.page-poker__games-overview-section,
.page-poker__getting-started-section,
.page-poker__strategies-section,
.page-poker__tournaments-section,
.page-poker__app-download-section,
.page-poker__faq-section,
.page-poker__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-poker__hero-section {
  padding-top: 10px; /* Minimal top padding, body handles --header-offset */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFF6D6;
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-poker__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
  box-sizing: border-box;
}

.page-poker__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-poker__subtitle {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

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

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

.page-poker__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-poker__section-description {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF6D6;
}

/* Background colors for sections */
.page-poker__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-poker__light-bg {
  background-color: #111111; /* Card BG color for lighter sections */
  color: #FFF6D6;
}

/* Cards */
.page-poker__card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
  text-align: center;
}

.page-poker__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px #FFD36B;
}

.page-poker__card-title {
  font-size: 1.5rem;
  color: #FFD36B;
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Buttons */
.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.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for golden button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px #FFD36B;
}

.page-poker__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111; /* Dark text for golden button */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px #F2C14E;
}

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

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

.page-poker__feature-icon {
  width: 200px; /* Enforce min size */
  height: 200px; /* Enforce min size */
  margin-bottom: 15px;
  object-fit: contain;
}

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

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

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

.page-poker__step-card .page-poker__btn-primary,
.page-poker__step-card .page-poker__btn-secondary {
  margin-top: 20px;
}

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

.page-poker__strategy-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

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

/* Tournaments section */
.page-poker__tournament-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-poker__tournament-feature {
  flex: 1 1 280px;
  max-width: 350px;
  text-align: center;
  color: #FFF6D6;
}

.page-poker__tournament-feature h4 {
  font-size: 1.3rem;
  color: #F2C14E;
  margin-top: 15px;
  margin-bottom: 10px;
}

/* App Download Section */
.page-poker__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page-poker__app-text {
  flex: 1;
}

.page-poker__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-poker__app-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

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

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

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2C14E;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  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 show all content */
  padding: 20px 30px;
}

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

/* Final CTA Section */
.page-poker__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-content {
    padding: 15px;
  }

  .page-poker__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-poker__subtitle {
    font-size: 1rem;
  }

  .page-poker__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-poker__app-download-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

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

  .page-poker__hero-section,
  .page-poker__why-choose-section,
  .page-poker__games-overview-section,
  .page-poker__getting-started-section,
  .page-poker__strategies-section,
  .page-poker__tournaments-section,
  .page-poker__app-download-section,
  .page-poker__faq-section,
  .page-poker__cta-section {
    padding: 40px 15px;
  }

  .page-poker__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    background: none; /* Remove background on mobile to avoid double layering */
    margin-top: 20px;
  }

  .page-poker__hero-image-wrapper {
    order: -1; /* Image first on mobile */
  }

  .page-poker__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-poker__subtitle {
    font-size: 0.95rem;
  }

  .page-poker__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-poker__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-poker__section-description {
    font-size: 1rem;
  }

  .page-poker__feature-card,
  .page-poker__game-type-card,
  .page-poker__step-card,
  .page-poker__strategy-item {
    padding: 20px;
  }

  .page-poker__feature-icon {
    width: 150px; 
    height: 150px; 
  }

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

  .page-poker__app-download-buttons {
    flex-direction: column;
  }

  .page-poker__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

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

  .page-poker img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .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__hero-section {
    padding-top: 10px !important;
  }
}