/* style/poker.css */

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

.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: #F2C14E; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-poker__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-poker__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2); /* Glow */
}

.page-poker__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-poker__card-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-poker__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 15px #FFD36B; /* Glow */
}

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

.page-poker__btn-secondary:hover {
  background-color: #F2C14E; /* Primary color */
  color: #0A0A0A; /* Background */
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-poker__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-poker__cta-buttons--center {
  justify-content: center;
}

/* --- Hero Section --- */
.page-poker__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background-color: #0A0A0A; /* Ensure dark background */
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero 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; /* Ensure content is above image wrapper if z-index is used, though not overlapping */
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  z-index: 1; /* Ensure text is above any background elements */
  margin-top: -100px; /* Pull content up over the image slightly for visual flow */
  background-color: rgba(10, 10, 10, 0.8); /* Semi-transparent background for text on image */
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-poker__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Use clamp for H1 font size */
  color: #FFD36B; /* Auxiliary color for H1 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-poker__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Section Padding --- */
.page-poker__about-section,
.page-poker__why-choose-section,
.page-poker__game-types-section,
.page-poker__get-started-section,
.page-poker__promotions-section,
.page-poker__security-section,
.page-poker__mobile-app-section,
.page-poker__tournaments-section,
.page-poker__responsible-gaming-section,
.page-poker__support-section,
.page-poker__faq-section,
.page-poker__conclusion-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

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

.page-poker__game-icon {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 150px; /* Ensure minimum size, aspect ratio will adjust */
}

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

.page-poker__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 30px; /* Ensure space for button */
}

.page-poker__step-number {
  background-color: #F2C14E; /* Primary color */
  color: #0A0A0A;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

.page-poker__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* --- Mobile App Section Layout --- */
.page-poker__mobile-app-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.page-poker__mobile-app-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-poker__mobile-app-content .page-poker__section-title,
.page-poker__mobile-app-content .page-poker__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-poker__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__mobile-app-image {
  width: 100%;
  height: auto;
  max-height: 800px; /* Ensure it doesn't get too tall */
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

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

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

.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 30px;
  cursor: pointer;
  background-color: #111111;
  color: #FFD36B; /* Auxiliary color for questions */
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(45deg); /* Plus to Minus visual effect */
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px; /* Keep horizontal padding */
  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; /* Sufficient height for content */
  padding: 15px 30px 30px 30px; /* Adjust padding when open */
}

.page-poker__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
  text-align: left;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-poker__hero-content {
    margin-top: -50px;
    padding: 40px 20px;
  }
  .page-poker__main-title {
    font-size: clamp(2em, 4.5vw, 3em); /* Adjusted clamp for better scaling */
  }
  .page-poker__section-title {
    font-size: 2.2em;
  }
}

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

  /* --- Fixed Header Spacing for First Section (if not hero) --- */
  /* If body handles padding-top: var(--header-offset), then first section only needs small padding */
  .page-poker__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }

  .page-poker__hero-content {
    margin-top: -30px;
    padding: 30px 15px;
    width: calc(100% - 30px) !important; /* Ensure content container doesn't overflow */
  }

  .page-poker__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-poker__hero-description {
    font-size: 1.1em;
  }

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

  .page-poker__text-block {
    font-size: 1em;
  }

  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container */
  }

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

  .page-poker__container {
    padding: 0 15px;
  }

  /* --- Images Responsive --- */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of container */
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }

  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__hero-section,
  .page-poker__about-section,
  .page-poker__why-choose-section,
  .page-poker__game-types-section,
  .page-poker__get-started-section,
  .page-poker__promotions-section,
  .page-poker__security-section,
  .page-poker__mobile-app-section,
  .page-poker__tournaments-section,
  .page-poker__responsible-gaming-section,
  .page-poker__support-section,
  .page-poker__faq-section,
  .page-poker__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker__mobile-app-layout {
    flex-direction: column;
    text-align: center;
  }

  .page-poker__mobile-app-content .page-poker__section-title,
  .page-poker__mobile-app-content .page-poker__text-block {
    text-align: center;
  }

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

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

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

@media (max-width: 480px) {
  .page-poker__section-title {
    font-size: 1.6em;
  }
  .page-poker__card-title {
    font-size: 1.3em;
  }
  .page-poker__hero-content {
    margin-top: -20px;
  }
}