/* style/poker.css */

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

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

.page-poker__hero-section {
  position: relative;
  width: 100%;
  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; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-poker__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 40px; /* Spacing between image and content */
}

.page-poker__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-poker__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

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

.page-poker__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF6D6;
}

.page-poker__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-poker__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-poker__text-block {
  flex: 1;
  min-width: 300px;
}

.page-poker__image-content {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-poker__card {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-poker__game-card {
  background-color: #111111;
  color: #FFF6D6;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid #3A2A12;
}

.page-poker__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  color: #111111;
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

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

.page-poker__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-3px);
}

.page-poker__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-poker__numbered-list,
.page-poker__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-poker__numbered-list .page-poker__list-item {
  background-color: #111111;
  color: #FFF6D6;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #3A2A12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-poker__numbered-list .page-poker__list-item:last-child {
  margin-bottom: 0;
}

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

.page-poker__bullet-list .page-poker__list-item {
  background-color: transparent;
  color: #FFF6D6;
  padding: 10px 0;
  position: relative;
  padding-left: 25px;
}

.page-poker__bullet-list .page-poker__list-item::before {
  content: '•';
  color: #FFD36B;
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 1.2em;
}

.page-poker__image-right {
  order: 2;
}

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

.page-poker__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(45deg); /* Change + to X visually */
}

.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 show content */
  padding: 15px 20px;
}

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-poker__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-poker__main-title {
    font-size: 2rem;
  }

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

  .page-poker__section {
    padding: 40px 15px;
  }

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

  .page-poker__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-poker__content-wrapper {
    flex-direction: column;
  }

  .page-poker__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-poker__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-poker__card,
  .page-poker__game-card {
    padding: 20px;
  }

  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-poker__numbered-list .page-poker__list-item,
  .page-poker__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
  }

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

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

/* Global image responsiveness for content area */
.page-poker img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile image forced adaptation */
@media (max-width: 768px) {
  .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__hero-section {
    padding-top: 10px !important;
  }
}