/* style/poker.css */

/* Custom properties for colors from the prompt */
:root {
  --poker-bg-color: #0A0A0A;
  --poker-card-bg: #111111;
  --poker-text-main: #FFF6D6;
  --poker-border-color: #3A2A12;
  --poker-glow-color: #FFD36B;
  --poker-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-poker {
  background-color: var(--poker-bg-color);
  color: var(--poker-text-main); /* Light text on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

.page-poker a {
  color: var(--poker-glow-color); /* Links stand out */
  text-decoration: none;
}

.page-poker a:hover {
  text-decoration: underline;
}

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

/* Hero Section */
.page-poker__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  background-color: var(--poker-bg-color);
  position: relative;
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Ensure image doesn't overflow */
  margin-bottom: 30px;
}

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

.page-poker__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-poker__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--poker-text-main);
  line-height: 1.2;
}

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

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

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
}

.page-poker__btn-primary {
  background: var(--poker-btn-gradient);
  color: #0A0A0A; /* Dark text for contrast on bright button */
  border: none;
}

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

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

.page-poker__btn-secondary:hover {
  background-color: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-poker__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--poker-text-main);
}

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

/* About Demo Section */
.page-poker__about-demo-section {
  padding: 60px 0;
  background-color: var(--poker-bg-color);
}

.page-poker__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-poker__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-poker__content-grid--reverse .page-poker__text-block {
  grid-area: text;
}

.page-poker__content-grid--reverse .page-poker__image-block {
  grid-area: image;
}

.page-poker__text-block p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--poker-text-main);
}

.page-poker__image-block {
  text-align: center;
}

.page-poker__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Benefits Section */
.page-poker__benefits-section {
  padding: 80px 0;
}

.page-poker__dark-section {
  background-color: var(--poker-card-bg); /* Darker background for contrast */
  color: var(--poker-text-main); /* Light text */
}

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

.page-poker__benefit-item {
  background-color: var(--poker-bg-color);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--poker-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-poker__benefit-item:hover {
  transform: translateY(-5px);
}

.page-poker__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--poker-glow-color);
}

.page-poker__benefit-item p {
  font-size: 1rem;
  color: var(--poker-text-main);
}

.page-poker__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

/* Game Types Section */
.page-poker__game-types-section {
  padding: 60px 0;
  background-color: var(--poker-bg-color);
}

.page-poker__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-poker__card {
  background-color: var(--poker-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--poker-border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  color: var(--poker-text-main);
}

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

.page-poker__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--poker-glow-color);
}

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

.page-poker__card-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background-color: var(--poker-glow-color);
  color: #0A0A0A; /* Dark text for contrast */
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-poker__card-link:hover {
  background-color: #FFDDAA;
  text-decoration: none;
}

/* Strategy Section (Reverse grid) */
.page-poker__strategy-section {
  padding: 60px 0;
}

/* Mobile Experience Section */
.page-poker__mobile-experience-section {
  padding: 60px 0;
  background-color: var(--poker-bg-color);
}

/* CTA Banner */
.page-poker__cta-banner {
  padding: 80px 20px;
  text-align: center;
}

.page-poker__banner-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--poker-text-main);
}

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

/* FAQ Section */
.page-poker__faq-section {
  padding: 60px 0;
  background-color: var(--poker-bg-color);
}

.page-poker__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-poker__faq-item {
  background-color: var(--poker-card-bg);
  border: 1px solid var(--poker-border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: var(--poker-card-bg);
  color: var(--poker-text-main);
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.1);
}

.page-poker__faq-question h3 {
  margin: 0;
  color: var(--poker-text-main);
  font-size: 1.2rem;
  font-weight: 600;
}

.page-poker__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--poker-glow-color);
}

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

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--poker-text-main);
  font-size: 1rem;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-poker__content-grid {
    grid-template-columns: 1fr;
  }
  .page-poker__content-grid--reverse {
    grid-template-areas: unset; /* Reset grid area for stacking */
  }
  .page-poker__content-grid--reverse .page-poker__text-block,
  .page-poker__content-grid--reverse .page-poker__image-block {
    grid-area: unset;
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* Ensure small top padding, body handles header offset */
  }

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

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

  .page-poker__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 for smaller screens */
  }

  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-poker__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 30px;
  }

  .page-poker__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-poker__about-demo-section,
  .page-poker__benefits-section,
  .page-poker__game-types-section,
  .page-poker__strategy-section,
  .page-poker__mobile-experience-section,
  .page-poker__faq-section {
    padding: 40px 0;
  }

  .page-poker__benefits-list {
    grid-template-columns: 1fr;
  }

  .page-poker__card {
    padding: 20px;
  }

  .page-poker__card-title {
    font-size: 1.2rem;
  }

  .page-poker__card p {
    font-size: 0.95rem;
  }

  .page-poker__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-poker__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-poker__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-poker__faq-question h3 {
    font-size: 1.1rem;
  }

  .page-poker__faq-answer {
    padding: 0 20px;
  }

  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-poker__hero-section {
    padding-bottom: 30px;
  }
  .page-poker__main-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }
  .page-poker__banner-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
}