/* style/poker.css */

/* Base styles for the page-poker scope */
.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background from custom colors */
  padding-top: 10px; /* Small top padding for the first content section, body handles header offset */
}

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

.page-poker__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border color from custom colors */
}

.page-poker__section:last-of-type {
  border-bottom: none;
}

.page-poker__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main brand color for titles */
  line-height: 1.2;
}

.page-poker__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Auxiliary brand color for sub-titles */
}

.page-poker__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-poker a {
  color: #FFD36B; /* Link color from auxiliary brand color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-poker a:hover {
  color: #F2C14E; /* Hover effect */
}

/* Buttons */
.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient from custom colors */
  color: #111111; /* Dark text on bright button for contrast */
  border: 2px solid transparent;
}

.page-poker__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6); /* Glow effect */
}

.page-poker__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Auxiliary color for secondary button text */
  border: 2px solid #FFD36B; /* Border from auxiliary color */
}

.page-poker__btn-secondary:hover {
  background: #FFD36B;
  color: #111111; /* Dark text on hover */
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
}

.page-poker__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 80px; /* Space below content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 40px; /* Space between image and content */
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  display: block;
}

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

.page-poker__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2C14E;
  line-height: 1.2;
}

.page-poker__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFF6D6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Image with text layout */
.page-poker__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-poker__image-text-layout:nth-child(even) {
  flex-direction: row-reverse;
}

.page-poker__content-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Min size for content images */
}

.page-poker__text-content {
  width: 50%;
}

/* Lists */
.page-poker__list,
.page-poker__numbered-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-poker__list li,
.page-poker__numbered-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #FFF6D6;
}

.page-poker__list li::before {
  content: '★'; /* Custom bullet point */
  color: #FFD36B;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-poker__numbered-list li {
  counter-increment: list-counter;
}

.page-poker__numbered-list li::before {
  content: counter(list-counter) ".";
  color: #FFD36B;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-poker__game-card {
  background-color: #111111; /* Card background from custom colors */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-poker__game-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-poker__game-description {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

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

.page-poker__promo-card {
  background-color: #111111;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__promo-title {
  font-size: 1.6em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-poker__promo-description {
  color: #FFF6D6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* App Download Section */
.page-poker__app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.page-poker__app-feature-item {
  background-color: #111111;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-poker__feature-icon {
  width: 60px; /* Specific size for icons */
  height: 60px; /* Specific size for icons */
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 60px; /* Ensure icons are not shrunk below 60px */
  min-height: 60px; /* Ensure icons are not shrunk below 60px */
}

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

.page-poker__feature-description {
  color: #FFF6D6;
}

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

.page-poker__download-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95em;
  color: #FFF6D6;
}

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

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

/* FAQ Section */
.page-poker__faq-list {
  margin-top: 40px;
}

.page-poker__faq-item {
  background-color: #111111;
  border-radius: 10px;
  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 30px;
  cursor: pointer;
  background-color: #111111;
  color: #F2C14E;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid #3A2A12;
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Ensure h3 inside is not too large */
}

.page-poker__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD36B;
  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 30px;
  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 content */
  padding: 20px 30px;
}

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

/* CTA Bottom Section */
.page-poker__cta-bottom {
  text-align: center;
  padding-bottom: 80px;
}

.page-poker__cta-bottom .page-poker__cta-buttons {
  margin-top: 40px;
}

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

/* Responsive design */
@media (max-width: 1024px) {
  .page-poker__hero-section {
    padding-bottom: 60px;
  }

  .page-poker__main-title {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
  }

  .page-poker__description {
    font-size: 1.1em;
  }

  .page-poker__section-title {
    font-size: 2.2em;
  }

  .page-poker__sub-title {
    font-size: 1.6em;
  }

  .page-poker__image-text-layout {
    flex-direction: column;
    text-align: center;
  }

  .page-poker__content-image,
  .page-poker__text-content {
    width: 100%;
  }
}

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

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

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

  .page-poker__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-poker__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

  .page-poker__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-poker__sub-title {
    font-size: 1.4em;
  }

  .page-poker__content-image {
    min-width: 200px; /* Ensure minimum size */
    height: auto;
  }

  .page-poker__game-grid,
  .page-poker__promo-grid,
  .page-poker__app-features,
  .page-poker__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-poker__game-image {
    height: 180px; /* Adjust height for mobile */
    min-width: 200px;
    min-height: 180px;
  }

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

  /* Forced mobile image and container responsiveness */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-poker__container,
  .page-poker__hero-section,
  .page-poker__section,
  .page-poker__game-card,
  .page-poker__promo-card,
  .page-poker__app-feature-item,
  .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__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-poker__feature-icon {
    min-width: 60px !important;
    min-height: 60px !important;
  }
}