/* style/poker.css */

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

.page-poker__section {
  padding: 60px 20px;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-poker__section:last-of-type {
  border-bottom: none;
}

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

.page-poker__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD36B; /* Glow color for titles */
  line-height: 1.2;
}

.page-poker h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #F2C14E; /* Main color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-poker p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.page-poker ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-poker li {
  margin-bottom: 10px;
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-poker__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
  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 {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-poker__hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 30px;
  color: #FFD36B; /* Glow */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

.page-poker__btn-secondary:hover {
  background-color: #FFD36B;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 211, 107, 0.2);
}

/* Text block sections */
.page-poker__text-block {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
}

.page-poker__dark-section {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

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

.page-poker__feature-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border */
}

.page-poker__feature-item h3 {
  color: #F2C14E; /* Main color */
  margin-top: 0;
}

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

.page-poker__step-item {
  background-color: #0A0A0A; /* Background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
}

.page-poker__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-poker__step-item h3 {
  color: #FFD36B; /* Glow */
  margin-top: 0;
}

.page-poker__step-item .page-poker__btn-primary,
.page-poker__step-item .page-poker__btn-secondary {
  margin-top: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-poker__game-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12; /* Border */
  text-align: center;
}

.page-poker__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-poker__game-card-title {
  color: #F2C14E; /* Main color */
  margin: 15px 10px 10px;
  font-size: 1.3rem;
}

.page-poker__game-card p {
  padding: 0 15px 20px;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Full width image */
.page-poker__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px 0;
}

/* Mobile Gaming Section */
.page-poker__mobile-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-poker__mobile-image {
  width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.page-poker__mobile-text {
  width: 50%;
}

.page-poker__download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Payment Methods */
.page-poker__payment-details {
  margin-top: 40px;
}

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

.page-poker__news-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease;
}

.page-poker__news-card:hover {
  transform: translateY(-5px);
}

.page-poker__news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-poker__news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-poker__news-card-title {
  color: #F2C14E; /* Main color */
  margin: 15px 15px 10px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.page-poker__news-card-date {
  font-size: 0.85rem;
  color: #FFD36B; /* Glow color */
  margin: 0 15px 10px;
}

.page-poker__news-card-excerpt {
  font-size: 0.95rem;
  margin: 0 15px 20px;
}

.page-poker__view-all {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-poker__faq-item {
  background-color: #0A0A0A; /* Background */
  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;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  font-weight: 600;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
  padding-top: 0;
}

/* Partners Section */
.page-poker__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.page-poker__partner-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 127px; /* Fixed height for partner images */
  width: 167px; /* Fixed width for partner images */
  box-sizing: border-box;
}

.page-poker__partner-item img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Join Us Section */
.page-poker__join-us {
  text-align: center;
}

.page-poker__join-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-section {
    min-height: 500px;
  }
}

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

  .page-poker__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Ensure small padding on mobile */
  }

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

  .page-poker__hero-cta-buttons,
  .page-poker__download-buttons,
  .page-poker__view-all,
  .page-poker__join-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-poker__mobile-image,
  .page-poker__mobile-text {
    width: 100%;
  }

  /* Ensure all images are responsive and do not overflow */
  .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__partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .page-poker__partner-item {
    width: 100px; /* Adjust for smaller screens */
    height: 76px; /* Maintain aspect ratio (167/127 = 1.31 -> 100/76) */
  }
}

@media (max-width: 480px) {
  .page-poker__main-title {
    font-size: 2rem;
  }

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

  .page-poker__partner-item {
    width: 80px;
    height: 61px;
  }
}