/* style/poker.css */

/* Root variables for consistent spacing */
:root {
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;
  --max-content-width: 1200px;
}

/* Page-specific styles for poker */
.page-poker {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding for the first section */
}

/* Fixed header spacing for the first content section */
.page-poker__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* Sections */
.page-poker__section {
  padding: var(--spacing-xl) 0;
  background-color: #0A0A0A; /* Background */
}

.page-poker__container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
}

/* Typography */
.page-poker__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.page-poker__hero-description {
  font-size: 1.15rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--spacing-lg);
  color: #FFF6D6;
}

.page-poker__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.page-poker__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  color: #FFF6D6;
}

.page-poker__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.page-poker__card-text {
  font-size: 0.95rem;
  color: #FFF6D6;
}

.page-poker__feature-title, .page-poker__faq-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD36B; /* Accent Color */
  margin-bottom: var(--spacing-sm);
}

.page-poker__list-item {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: var(--spacing-sm);
  list-style: disc inside;
}

.page-poker__list-item strong {
  color: #F2C14E;
}

/* Buttons */
.page-poker__cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.page-poker__cta-buttons--centered {
  text-align: center;
}

.page-poker__btn-primary,
.page-poker__btn-secondary,
.page-poker__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

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

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

.page-poker__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color border */
}

.page-poker__btn-secondary:hover {
  background: #F2C14E; /* Main Color */
  color: #111111; /* Card BG */
}

.page-poker__btn-text {
  background: none;
  color: #FFD36B; /* Glow */
  border: none;
  padding: 0;
  text-decoration: underline;
}

.page-poker__btn-text:hover {
  color: #F2C14E; /* Main Color */
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-bottom: var(--spacing-xl);
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-poker__hero-content {
  position: relative; /* Ensure content is above any background */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--spacing-md);
}

/* Feature Grid */
.page-poker__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  text-align: center;
}

.page-poker__feature-item {
  background-color: #111111; /* Card BG */
  padding: var(--spacing-md);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px; /* Ensure card has some height */
}

.page-poker__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: var(--spacing-md);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-poker__card {
  background-color: #111111; /* Card BG */
  padding: var(--spacing-md);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  min-height: 350px; /* Ensure card has some height */
}

.page-poker__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-poker__promo-card {
  min-height: 380px; /* Ensure card has some height */
}

/* Device Grid */
.page-poker__device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.page-poker__device-card {
  min-height: 400px; /* Ensure card has some height */
}

/* Security Features */
.page-poker__security-features {
  max-width: 800px;
  margin: var(--spacing-lg) auto 0;
  text-align: left;
}

.page-poker__feature-list {
  list-style: none;
  padding: 0;
}

.page-poker__feature-list .page-poker__list-item {
  background-color: #111111; /* Card BG */
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  border-left: 5px solid #F2C14E; /* Main Color */
  border-radius: 5px;
}

/* Steps Grid */
.page-poker__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.page-poker__step-card {
  text-align: center;
  min-height: 280px; /* Ensure card has some height */
}

.page-poker__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  background-color: #3A2A12; /* Border Color */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto var(--spacing-md);
}

/* FAQ Section */
.page-poker__faq-list {
  max-width: 800px;
  margin: var(--spacing-lg) auto 0;
}

.page-poker__faq-item {
  background-color: #111111; /* Card BG */
  margin-bottom: var(--spacing-sm);
  border-radius: 8px;
  overflow: hidden;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  cursor: pointer;
  color: #FFD36B; /* Glow */
  font-weight: bold;
  border-bottom: 1px solid #3A2A12; /* Border Color */
}

.page-poker__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect */
}

.page-poker__faq-toggle {
  font-size: 1.5rem;
  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 var(--spacing-md);
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-poker__faq-answer p {
  margin: 0;
  padding-top: 5px; /* Small top padding for text inside answer */
  padding-bottom: 5px;
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: var(--spacing-md) !important;
}

/* Final CTA Section */
.page-poker__cta-final {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-poker__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    min-height: 450px;
  }

  .page-poker__section {
    padding: var(--spacing-lg) 0;
  }

  .page-poker__hero-image-wrapper {
    margin-bottom: var(--spacing-md);
  }

  .page-poker__cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 0 15px;
  }

  .page-poker__btn-primary,
  .page-poker__btn-secondary,
  .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__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 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__feature-icon,
  .page-poker__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-poker__feature-item, .page-poker__game-card, .page-poker__promo-card, .page-poker__device-card, .page-poker__step-card {
    min-height: unset; /* Allow cards to adjust height */
  }

  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: var(--spacing-md) 15px !important; /* Adjust padding for mobile */
  }
}