/* style/poker.css */

:root {
  --nustar-primary: #F2C14E;
  --nustar-secondary: #FFD36B;
  --nustar-bg-dark: #0A0A0A;
  --nustar-card-bg: #111111;
  --nustar-text-main: #FFF6D6;
  --nustar-border: #3A2A12;
  --nustar-glow: #FFD36B;
  --nustar-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--nustar-text-main); /* Default text color for the page */
  background-color: var(--nustar-bg-dark); /* Ensure dark background for the page content */
}

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

.page-poker__dark-bg {
  background-color: var(--nustar-bg-dark);
  color: var(--nustar-text-main);
}

.page-poker__card {
  background-color: var(--nustar-card-bg);
  color: var(--nustar-text-main);
  border: 1px solid var(--nustar-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-poker__card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-poker__section-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  color: var(--nustar-secondary);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-poker__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--nustar-text-main);
}

/* Buttons */
.page-poker__btn-primary,
.page-poker__btn-secondary,
.page-poker__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  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: var(--nustar-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #E8B020 100%);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

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

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

.page-poker__btn-tertiary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--nustar-text-main);
  border: 1px solid var(--nustar-border);
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 20px;
}

.page-poker__btn-tertiary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

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

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 600px;
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-poker__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-poker__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.page-poker__main-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--nustar-secondary);
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-poker__hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--nustar-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Info Section */
.page-poker__info-section {
  padding: 80px 0;
}

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

.page-poker__feature-title {
  font-size: 1.5rem;
  color: var(--nustar-secondary);
  margin-bottom: 10px;
}

/* Games Section */
.page-poker__games-section {
  padding: 80px 0;
}

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

.page-poker__game-title {
  font-size: 1.6rem;
  color: var(--nustar-secondary);
  margin-bottom: 10px;
}

.page-poker__game-card .page-poker__btn-tertiary {
  margin-top: 20px;
}

/* Promo Section */
.page-poker__promo-section {
  padding: 80px 0;
}

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

.page-poker__promo-title {
  font-size: 1.5rem;
  color: var(--nustar-secondary);
  margin-bottom: 10px;
}

/* Getting Started Section */
.page-poker__getting-started-section {
  padding: 80px 0;
}

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

.page-poker__step-item {
  position: relative;
  padding-top: 60px; /* Space for the number */
}

.page-poker__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nustar-btn-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
  border: 2px solid var(--nustar-primary);
}

.page-poker__step-title {
  font-size: 1.4rem;
  color: var(--nustar-secondary);
  margin-bottom: 10px;
}

.page-poker__step-item .page-poker__btn-tertiary {
  margin-top: 20px;
}

/* Tournaments Section */
.page-poker__tournaments-section {
  padding: 80px 0;
}

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

.page-poker__tournament-title {
  font-size: 1.5rem;
  color: var(--nustar-secondary);
  margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-poker__responsible-gaming-section {
  padding: 80px 0;
}

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

.page-poker__responsible-title {
  font-size: 1.5rem;
  color: var(--nustar-secondary);
  margin-bottom: 10px;
}

/* Mobile Section */
.page-poker__mobile-section {
  padding: 80px 0;
}

.page-poker__mobile-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-poker__mobile-text-block {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-poker__mobile-text-block p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-align: left;
}

.page-poker__mobile-text-block .page-poker__btn-primary,
.page-poker__mobile-text-block .page-poker__btn-secondary {
  margin-right: 15px;
  margin-bottom: 15px;
}

.page-poker__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

/* Partners Section */
.page-poker__partners-section {
  padding: 80px 0;
}

.page-poker__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 2x5 grid */
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  margin-top: 50px;
  align-items: center;
  justify-items: center;
}

.page-poker__partners-grid img {
   /* Fixed width */
   /* Fixed height */
  object-fit: contain;
  filter: grayscale(80%) brightness(1.5);
  transition: filter 0.3s ease;
}

.page-poker__partners-grid img:hover {
  filter: grayscale(0%) brightness(1);
}

/* FAQ Section */
.page-poker__faq-section {
  padding: 80px 0;
}

.page-poker__faq-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-poker__faq-item {
  background-color: var(--nustar-card-bg);
  border: 1px solid var(--nustar-border);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  padding: 0;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-title {
  font-size: 1.2rem;
  color: var(--nustar-text-main);
  margin: 0;
}

.page-poker__faq-toggle {
  font-size: 1.8rem;
  color: var(--nustar-secondary);
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

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

.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-item.active .page-poker__faq-toggle {
  transform: rotate(45deg);
}

/* Final CTA Section */
.page-poker__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__content-area {
    padding: 30px 15px;
  }
  .page-poker__section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
  .page-poker__text-block {
    font-size: 1rem;
  }
  .page-poker__partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .page-poker__hero-section {
    min-height: 500px;
  }
  .page-poker__main-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
  .page-poker__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }
  .page-poker__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__btn-primary,
  .page-poker__btn-secondary,
  .page-poker__btn-tertiary {
    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-group .page-poker__btn-primary,
  .page-poker__hero-cta-group .page-poker__btn-secondary {
    margin: 0 auto;
  }

  .page-poker__features-grid,
  .page-poker__game-cards-grid,
  .page-poker__promo-cards-grid,
  .page-poker__steps-grid,
  .page-poker__tournament-highlights,
  .page-poker__responsible-features-grid {
    grid-template-columns: 1fr;
  }

  .page-poker__mobile-content-wrapper {
    flex-direction: column-reverse;
  }

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

  .page-poker__mobile-text-block p {
    text-align: center;
  }
  
  .page-poker__mobile-text-block .page-poker__btn-primary,
  .page-poker__mobile-text-block .page-poker__btn-secondary {
    margin: 0 auto 15px auto;
  }

  .page-poker__partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-poker__partners-grid img {
    width: 100%;
    height: auto;
  }

  .page-poker img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__hero-section,
  .page-poker__info-section,
  .page-poker__games-section,
  .page-poker__promo-section,
  .page-poker__getting-started-section,
  .page-poker__tournaments-section,
  .page-poker__responsible-gaming-section,
  .page-poker__mobile-section,
  .page-poker__partners-section,
  .page-poker__faq-section,
  .page-poker__cta-final-section,
  .page-poker__hero-cta-group,
  .page-poker__mobile-text-block,
  .page-poker__mobile-image-wrapper,
  .page-poker__partners-grid,
  .page-poker__faq-list,
  .page-poker__cta-final-section .page-poker__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-poker__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-poker__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-poker__mobile-text-block .page-poker__btn-primary,
  .page-poker__mobile-text-block .page-poker__btn-secondary {
    width: calc(100% - 30px);
  }
  .page-poker__cta-final-section .page-poker__cta-group {
    flex-direction: column;
  }
  .page-poker__cta-final-section .page-poker__btn-primary,
  .page-poker__cta-final-section .page-poker__btn-secondary {
    margin: 0 auto;
  }
}