/* style/poker.css */

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

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

.page-poker__section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size constraint */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color for titles */
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-poker__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

.page-poker__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, #0A0A0A 100%);
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-poker__main-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem); /* H1 font size constraint */
  font-weight: 800;
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-poker__hero-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #FFF6D6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Button styles */
.page-poker__btn-primary,
.page-poker__btn-secondary,
.page-poker__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  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%);
  color: #111111; /* Dark text on bright button */
  border: none;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-poker__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
  background: linear-gradient(180deg, #FFE082 0%, #E6B02A 100%);
}

.page-poker__btn-secondary {
  background: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-poker__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-poker__card-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  margin-top: 20px;
  box-shadow: 0 3px 10px rgba(255, 211, 107, 0.3);
}

.page-poker__card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 211, 107, 0.5);
}

/* General Section Styles */
.page-poker__about-section,
.page-poker__games-section,
.page-poker__how-to-start-section,
.page-poker__strategy-section,
.page-poker__promotions-section,
.page-poker__security-section,
.page-poker__faq-section,
.page-poker__cta-section {
  padding: 80px 0;
}

.page-poker__dark-section {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

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

.page-poker__card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

.page-poker__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-poker__feature-title,
.page-poker__game-title,
.page-poker__step-title,
.page-poker__promo-title,
.page-poker__security-subtitle,
.page-poker__strategy-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-poker__feature-description,
.page-poker__game-description,
.page-poker__step-description,
.page-poker__promo-description,
.page-poker__security-description,
.page-poker__strategy-text p,
.page-poker__strategy-text li {
  font-size: 1rem;
  color: #FFF6D6;
}

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

.page-poker__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #3A2A12;
}

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

/* Strategy Section */
.page-poker__strategy-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.page-poker__strategy-text {
  flex: 2;
  min-width: 300px;
  color: #FFF6D6;
}

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

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

.page-poker__strategy-text a {
  margin-top: 20px;
}

.page-poker__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__strategy-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12;
}

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

.page-poker__promo-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #3A2A12;
}

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

.page-poker__security-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

.page-poker__security-item a {
  color: #FFD36B; /* Link color */
  text-decoration: none;
}

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

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

.page-poker__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFD36B;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

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

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

.page-poker__faq-answer a {
  color: #FFD36B;
  text-decoration: none;
}

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

/* Call to Action Section */
.page-poker__cta-section {
  text-align: center;
  background-color: #111111;
  padding: 60px 0;
  border-top: 1px solid #3A2A12;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-content {
    padding: 0 40px;
  }
  .page-poker__strategy-content {
    flex-direction: column;
    align-items: center;
  }
  .page-poker__strategy-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-poker__container {
    padding: 0 15px;
  }
  .page-poker__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-poker__main-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }
  .page-poker__hero-section,
  .page-poker__about-section,
  .page-poker__games-section,
  .page-poker__how-to-start-section,
  .page-poker__strategy-section,
  .page-poker__promotions-section,
  .page-poker__security-section,
  .page-poker__faq-section,
  .page-poker__cta-section {
    padding: 40px 0;
  }

  /* Force responsive images and 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__hero-image-wrapper,
  .page-poker__strategy-image-wrapper,
  .page-poker__game-image,
  .page-poker__promo-image {
    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; /* Ensure small top padding */
  }

  /* Force responsive buttons */
  .page-poker__btn-primary,
  .page-poker__btn-secondary,
  .page-poker__card-button,
  .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__hero-cta-buttons,
  .page-poker__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px;
  }
  .page-poker__game-image,
  .page-poker__promo-image {
    height: auto; /* Allow auto height on mobile */
  }
}

@media (max-width: 480px) {
  .page-poker__section-intro {
    font-size: 1rem;
  }
  .page-poker__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-poker__faq-answer {
    padding: 0 20px;
  }
  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 10px 20px;
  }
  .page-poker__card {
    padding: 20px;
  }
}