/* style/poker.css */

/* Base styles for the poker page */
.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color on dark background */
  background-color: var(--background, #0A0A0A); /* Overall page background */
}

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

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

.page-poker__dark-bg {
  background-color: var(--background, #0A0A0A);
  color: var(--text-main, #FFF6D6);
}

.page-poker__light-bg {
  background-color: #f5f5f5;
  color: #333333; /* Dark text on light background for contrast */
}

.page-poker__main-title,
.page-poker__section-title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color, #F2C14E);
  line-height: 1.2;
  letter-spacing: 0.5px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-top: 20px;
}

.page-poker__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.page-poker__description,
.page-poker__section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
}

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

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers area without distortion */
}

.page-poker__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Pull content slightly over the image for visual flow, without covering text */
  background: rgba(10, 10, 10, 0.7); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  padding-bottom: 40px;
}

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

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

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright button for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-poker__btn-secondary:hover {
  background: var(--primary-color, #F2C14E);
  color: var(--background, #0A0A0A);
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-poker__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-poker__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-poker__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 15px;
}

.page-poker__feature-text {
  font-size: 1rem;
  color: #555555;
}

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

.page-poker__card {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-main, #FFF6D6);
  display: flex;
  flex-direction: column;
}

.page-poker__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-poker__card-title {
  font-size: 1.6rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-poker__card-text {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-poker__card .page-poker__btn-primary {
  margin: 0 auto;
}

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

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

.page-poker__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-poker__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color, #F2C14E);
  color: #111111;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-poker__step-title {
  font-size: 1.5rem;
  color: #333333;
  margin-bottom: 10px;
}

.page-poker__step-text {
  font-size: 1rem;
  color: #555555;
}

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

.page-poker__promo-card .page-poker__card-image {
  height: 220px;
}

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

.page-poker__security-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-main, #FFF6D6);
}

.page-poker__security-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-poker__security-title {
  font-size: 1.5rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-poker__security-text {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

/* Mobile App Section */
.page-poker__mobile-app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-poker__mobile-app-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-main, #FFF6D6);
}

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

.page-poker__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-poker__app-features li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 25px;
}

.page-poker__app-features li::before {
  content: '✔';
  color: var(--secondary-color, #FFD36B);
  position: absolute;
  left: 0;
  top: 0;
}

.page-poker__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-poker__mobile-app-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-poker__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 1.1rem;
}

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

.page-poker__faq-title {
  margin: 0;
  color: #333333;
}

.page-poker__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color, #F2C14E);
}

.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: #555555;
}

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

.page-poker__faq-answer p {
  margin: 0;
  text-align: left;
}

/* Contact Us Section */
.page-poker__contact-options {
  text-align: center;
  margin-top: 40px;
  color: var(--text-main, #FFF6D6);
}

.page-poker__contact-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.page-poker__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-poker__hero-content {
    margin-top: -50px;
  }
}

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

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

  .page-poker__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-poker__description,
  .page-poker__section-intro {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-poker__hero-content {
    padding: 15px;
    margin-top: -30px; /* Adjust for smaller screens */
  }

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

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

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

  .page-poker__feature-list,
  .page-poker__game-cards,
  .page-poker__steps,
  .page-poker__promo-grid,
  .page-poker__security-features {
    grid-template-columns: 1fr;
  }

  .page-poker__mobile-app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-poker__mobile-app-text,
  .page-poker__mobile-app-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-poker__mobile-app-image {
    max-width: 100%;
  }

  .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;
  }
}

@media (max-width: 480px) {
  .page-poker__hero-content {
    margin-top: -20px;
  }
  .page-poker__main-title {
    font-size: 2rem;
  }
  .page-poker__section-title {
    font-size: 1.8rem;
  }
  .page-poker__feature-title,
  .page-poker__card-title,
  .page-poker__step-title,
  .page-poker__security-title,
  .page-poker__faq-title {
    font-size: 1.3rem;
  }
  .page-poker__faq-question {
    font-size: 1rem;
  }
}