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

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

/* 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;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
  color: #FFF6D6;
}

.page-poker__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 50vh; /* Adjust height as needed */
  min-height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-poker__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(17, 17, 17, 0.7); /* Card BG with transparency */
  border-radius: 8px;
  margin-top: -100px; /* Pull content slightly over image for visual appeal */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-poker__main-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #FFF6D6);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-poker__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main, #FFF6D6);
}

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

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Ensuring contrast on yellow/gold gradient */
  border: none;
}

.page-poker__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 0 15px var(--glow, #FFD36B);
}

.page-poker__btn-secondary {
  background: transparent;
  color: var(--text-main, #FFF6D6);
  border: 2px solid var(--border, #3A2A12);
}

.page-poker__btn-secondary:hover {
  background: var(--border, #3A2A12);
  color: #FFF6D6;
  box-shadow: 0 0 15px var(--glow, #FFD36B);
}

/* General Section Styles */
.page-poker__section {
  padding: 60px 0;
  text-align: center;
}

.page-poker__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color, #F2C14E);
}

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

.page-poker__card {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  color: var(--text-main, #FFF6D6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow, #FFD36B);
}

/* Why Choose Us Section */
.page-poker__why-choose-us-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-poker__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--glow, #FFD36B));
}

.page-poker__feature-title {
  font-size: 1.4em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-poker__feature-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

/* Game Selection Section */
.page-poker__game-selection-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-poker__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-poker__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

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

.page-poker__game-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

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

/* Strategy Section */
.page-poker__strategy-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-poker__strategy-item {
  text-align: left;
}

.page-poker__strategy-title {
  font-size: 1.3em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-poker__strategy-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

/* Tournaments Section */
.page-poker__tournaments-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-poker__tournament-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-poker__tournament-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

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

.page-poker__tournament-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

/* Promotions Section */
.page-poker__promotions-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-poker__promo-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__promo-title {
  font-size: 1.4em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-poker__promo-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
}

/* Mobile Section */
.page-poker__mobile-section {
  background-color: var(--background, #0A0A0A);
}

.page-poker__mobile-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

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

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

.page-poker__mobile-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-poker__mobile-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: var(--text-main, #FFF6D6);
}

.page-poker__mobile-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-poker__mobile-features li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--primary-color, #F2C14E);
}

/* Responsible Gambling Section */
.page-poker__responsible-gambling-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-poker__responsible-card {
  text-align: left;
}

.page-poker__responsible-title {
  font-size: 1.4em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 10px;
}

.page-poker__responsible-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

/* FAQ Section */
.page-poker__faq-section {
  background-color: var(--background, #0A0A0A);
}

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

.page-poker__faq-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--primary-color, #F2C14E);
  font-weight: bold;
  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: var(--text-main, #FFF6D6);
}

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color, #F2C14E);
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main, #FFF6D6);
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to ensure content is shown */
  padding: 15px 25px;
}

.page-poker__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Final CTA Section */
.page-poker__cta-final-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  color: #000000; /* Dark text for light background */
  padding: 80px 0;
}

.page-poker__cta-final-section .page-poker__section-title,
.page-poker__cta-final-section .page-poker__section-description {
  color: #000000; /* Dark text for this section */
}

.page-poker__cta-final-section .page-poker__btn-primary {
  background: #0A0A0A;
  color: #FFF6D6;
}

.page-poker__cta-final-section .page-poker__btn-primary:hover {
  background: #111111;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.page-poker__cta-final-section .page-poker__btn-secondary {
  background: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.page-poker__cta-final-section .page-poker__btn-secondary:hover {
  background: #000000;
  color: #FFF6D6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__main-title {
    font-size: 2.5em;
  }
  .page-poker__section-title {
    font-size: 2em;
  }
  .page-poker__mobile-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-poker__mobile-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-poker__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
  }
  .page-poker__hero-content {
    padding: 20px;
    margin-top: -50px;
  }
  .page-poker__main-title {
    font-size: 2em;
  }
  .page-poker__hero-description {
    font-size: 1em;
  }
  .page-poker__section {
    padding: 40px 0;
  }
  .page-poker__section-title {
    font-size: 1.8em;
  }
  .page-poker__section-description {
    font-size: 0.95em;
  }
  .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-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile image responsiveness */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !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__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-wrap: wrap !important;
    gap: 10px;
  }
  .page-poker__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-poker__main-title {
    font-size: 1.7em;
  }
  .page-poker__section-title {
    font-size: 1.5em;
  }
  .page-poker__hero-content {
    margin-top: -30px;
  }
}