/* style/poker.css */
:root {
  --betpk-primary-color: #F2C14E;
  --betpk-secondary-color: #FFD36B;
  --betpk-card-bg: #111111;
  --betpk-background: #0A0A0A;
  --betpk-text-main: #FFF6D6;
  --betpk-border-color: #3A2A12;
  --betpk-glow-color: #FFD36B;
  --betpk-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-poker {
  background-color: var(--betpk-background);
  color: var(--betpk-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-poker__section {
  padding: 60px 0;
  text-align: center;
}

.page-poker__section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--betpk-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-poker__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--betpk-text-main);
}

/* 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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-poker__btn-primary {
  background: var(--betpk-button-gradient);
  color: #ffffff; /* White text on dark/gradient button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-poker__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-poker__btn-secondary {
  background: transparent;
  color: var(--betpk-primary-color);
  border: 2px solid var(--betpk-primary-color);
}

.page-poker__btn-secondary:hover {
  background: var(--betpk-primary-color);
  color: #ffffff;
}

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

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body handles padding-top, only decorative top padding here */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

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

.page-poker__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-poker__main-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--betpk-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-poker__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--betpk-text-main);
}

/* Dark background elements */
.page-poker__dark-bg {
  background-color: var(--betpk-card-bg);
  color: var(--betpk-text-main);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--betpk-border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-poker__feature-card {
  text-align: center;
}

.page-poker__feature-icon {
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker__feature-title {
  font-size: 1.8rem;
  color: var(--betpk-primary-color);
  margin-bottom: 15px;
}

.page-poker__feature-text {
  font-size: 1rem;
  color: var(--betpk-text-main);
}

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

.page-poker__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-poker__game-title {
  font-size: 2rem;
  color: var(--betpk-primary-color);
  margin-bottom: 15px;
}

.page-poker__game-text {
  font-size: 1rem;
  color: var(--betpk-text-main);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-poker__step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__step-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker__step-title {
  font-size: 1.8rem;
  color: var(--betpk-primary-color);
  margin-bottom: 15px;
}

.page-poker__step-text {
  font-size: 1rem;
  color: var(--betpk-text-main);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Strategy & Tips Section */
.page-poker__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-poker__tip-card h3 {
  color: var(--betpk-primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-poker__tip-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-poker__tip-card li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--betpk-text-main);
  position: relative;
  padding-left: 20px;
}

.page-poker__tip-card li::before {
  content: '•';
  color: var(--betpk-secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Mobile App CTA Section */
.page-poker__mobile-app-cta .page-poker__container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px;
  text-align: left;
}

.page-poker__mobile-app-content {
  flex: 1;
}

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

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

/* Security & Fair Play Section */
.page-poker__security-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__security-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__security-title {
  font-size: 1.8rem;
  color: var(--betpk-primary-color);
  margin-bottom: 15px;
}

.page-poker__security-text {
  font-size: 1rem;
  color: var(--betpk-text-main);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-poker__faq-section {
  text-align: left;
}

.page-poker__faq-list {
  margin-top: 50px;
}

.page-poker__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--betpk-border-color);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-q-text {
  font-size: 1.2rem;
  color: var(--betpk-text-main);
  margin: 0;
  flex-grow: 1;
}

.page-poker__faq-toggle {
  font-size: 1.8rem;
  color: var(--betpk-secondary-color);
  font-weight: bold;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--betpk-card-bg);
  border-radius: 0 0 10px 10px;
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 30px;
}

.page-poker__faq-item.active .page-poker__faq-question {
  border-radius: 10px 10px 0 0;
}

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

.page-poker__faq-a-text {
  font-size: 1rem;
  color: var(--betpk-text-main);
  margin: 0;
}

/* Call to Action Section */
.page-poker__call-to-action .page-poker__container {
  padding: 60px 40px;
  border-radius: 15px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-poker__hero-content {
    padding: 0 40px;
  }
  .page-poker__mobile-app-cta .page-poker__container {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }
  .page-poker__mobile-app-image-wrapper {
    margin-top: 40px;
  }
}

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

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

  .page-poker__hero-section {
    padding-bottom: 40px;
  }

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

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

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

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

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  /* Images and their containers */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__game-card,
  .page-poker__feature-card,
  .page-poker__step-card,
  .page-poker__tip-card,
  .page-poker__security-item,
  .page-poker__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker__faq-question,
  .page-poker__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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

@media (max-width: 480px) {
  .page-poker__section-title {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }
  .page-poker__main-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }
  .page-poker__hero-description {
    font-size: 0.95rem;
  }
  .page-poker__feature-title,
  .page-poker__game-title,
  .page-poker__step-title,
  .page-poker__tip-card h3,
  .page-poker__security-title {
    font-size: 1.4rem;
  }
  .page-poker__faq-q-text {
    font-size: 1rem;
  }
}