/* style/poker.css */

/* Base styles for the poker page */
.page-poker {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Body background color from shared.css */
}

/* Sections */
.page-poker__section {
  padding: 60px 20px;
  text-align: center;
}

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

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

/* Hero Section */
.page-poker__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 30px;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-poker__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-poker__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Clamp for responsive H1, avoids fixed large size */
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Brand color for main title */
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

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

/* General Titles and Text */
.page-poker__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 25px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-poker__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF6D6;
}

/* Buttons */
.page-poker__cta-button,
.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  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%);
  color: #111111; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

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

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

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

.page-poker__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

.page-poker__game-title {
  font-size: 1.6em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-poker__game-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF6D6;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

.page-poker__step-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(242, 193, 78, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #F2C14E;
}

.page-poker__step-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.page-poker__step-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-poker__step-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF6D6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Strategy List */
.page-poker__strategy-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-poker__strategy-list li {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.6;
  color: #FFF6D6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-poker__strategy-list li strong {
  color: #F2C14E;
}

/* Promotions */
.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: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-poker__promo-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-poker__promo-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF6D6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Mobile App Section */
.page-poker__app-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-poker__app-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-poker__app-content {
  text-align: center;
  max-width: 500px;
}

.page-poker__app-subtitle {
  font-size: 2em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-poker__app-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

.page-poker__faq-item {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: #F2C14E;
  font-weight: 600;
  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.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

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

.page-poker__faq-answer {
  max-height: 0; /* Initial collapsed state */
  overflow: hidden;
  padding: 0 25px; /* No padding when collapsed */
  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; /* Ensure content expands fully */
  padding: 15px 25px;
}

.page-poker__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-poker__app-download {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }
  .page-poker__app-content {
    text-align: left;
  }
  .page-poker__app-download .page-poker__app-image {
    order: 2; /* Image on right for desktop */
  }
}

@media (max-width: 768px) {
  .page-poker__section {
    padding: 40px 15px;
  }

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

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

  .page-poker__section-title {
    font-size: 2em;
  }

  .page-poker__text-block,
  .page-poker__hero-description,
  .page-poker__game-description,
  .page-poker__step-description,
  .page-poker__promo-description,
  .page-poker__app-description {
    font-size: 0.95em;
  }

  /* Images responsiveness */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-poker__hero-image-wrapper,
  .page-poker__game-grid,
  .page-poker__steps-grid,
  .page-poker__promo-grid,
  .page-poker__app-download,
  .page-poker__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Buttons responsiveness */
  .page-poker__cta-button,
  .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: 12px 20px;
  }
  
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }
  
  .page-poker__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-poker__faq-answer {
    padding: 0 20px;
  }
  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 10px 20px;
  }

  /* Specific adjustments for smaller elements */
  .page-poker__step-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  .page-poker__step-icon {
    width: 40px;
    height: 40px;
  }
}