/* style/poker.css */

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

/* Base styles for the page-poker scope */
.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--phsky-text-main); /* Default text color for dark background */
  background-color: var(--phsky-background); /* Assume body background is dark */
}

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

.page-poker__section {
  padding: 60px 0;
  overflow: hidden; /* Ensure no horizontal scroll */
}

.page-poker__section-title {
  font-size: 2.5rem;
  color: var(--phsky-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-poker__sub-title {
  font-size: 1.8rem;
  color: var(--phsky-secondary);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-poker__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--phsky-text-main);
}

.page-poker__list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.page-poker a {
  color: var(--phsky-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-poker a:hover {
  color: var(--phsky-primary);
  text-decoration: underline;
}

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

.page-poker__btn-primary {
  background: var(--phsky-btn-gradient);
  color: #1a1a1a; /* Dark text on bright button for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-poker__btn-secondary:hover {
  background: var(--phsky-primary);
  color: #1a1a1a; /* Dark text on bright button for contrast */
}

/* Hero Section */
.page-poker__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop header offset */
  padding-bottom: 60px;
  background-color: var(--phsky-background);
  position: relative;
  overflow: hidden;
}

.page-poker__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and text */
}

.page-poker__hero-text-block {
  text-align: center;
  max-width: 900px;
}

.page-poker__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  color: var(--phsky-primary);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-poker__hero-description {
  font-size: 1.2rem;
  color: var(--phsky-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Introduction Section */
.page-poker__introduction-section {
  background-color: var(--phsky-background);
}

/* Games Section */
.page-poker__games-section {
  background-color: var(--phsky-card-bg); /* Darker background for contrast */
  padding-bottom: 80px;
}

.page-poker__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-poker__game-card {
  background-color: #1a1a1a; /* Slightly lighter than section background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--phsky-border);
  text-align: center;
}

.page-poker__game-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 15px;
  display: inline-block;
}

.page-poker__game-card-title {
  font-size: 1.5rem;
  color: var(--phsky-primary);
  margin-bottom: 15px;
}

.page-poker__game-card-description {
  color: var(--phsky-text-main);
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-poker__game-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-poker__game-list li {
  font-size: 1rem;
  color: var(--phsky-text-main);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-poker__game-list li::before {
  content: '•';
  color: var(--phsky-secondary);
  position: absolute;
  left: 0;
}

.page-poker__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  object-fit: cover;
}

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

/* Getting Started Section */
.page-poker__getting-started-section {
  background-color: var(--phsky-background);
}

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

.page-poker__step-card {
  background-color: var(--phsky-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--phsky-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__step-title {
  font-size: 1.5rem;
  color: var(--phsky-primary);
  margin-bottom: 15px;
}

.page-poker__step-description {
  color: var(--phsky-text-main);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-poker__step-card .page-poker__btn-primary,
.page-poker__step-card .page-poker__btn-secondary {
  margin-top: 20px;
}

.page-poker__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* Bonuses Section */
.page-poker__bonuses-section {
  background-color: var(--phsky-card-bg);
  padding-bottom: 80px;
}

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

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

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

.page-poker__promo-title {
  font-size: 1.5rem;
  color: var(--phsky-primary);
  margin-bottom: 15px;
}

.page-poker__promo-description {
  color: var(--phsky-text-main);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-poker__responsible-gaming-section {
  background-color: var(--phsky-background);
}

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

.page-poker__info-card {
  background-color: var(--phsky-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--phsky-border);
  text-align: center;
}

.page-poker__info-title {
  font-size: 1.5rem;
  color: var(--phsky-primary);
  margin-bottom: 15px;
}

.page-poker__info-description {
  color: var(--phsky-text-main);
  font-size: 1rem;
}

/* FAQ Section */
.page-poker__faq-section {
  background-color: var(--phsky-card-bg);
  padding-bottom: 80px;
}

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

.page-poker__faq-item {
  background-color: #1a1a1a;
  border: 1px solid var(--phsky-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--phsky-text-main);
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

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

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Use !important as per instructions */
  padding: 15px 25px; /* Expanded padding */
}

.page-poker__faq-answer p {
  margin-bottom: 15px;
  color: var(--phsky-text-main);
  font-size: 1rem;
}

/* Call to Action Section */
.page-poker__cta-section {
  background: var(--phsky-background);
  padding-bottom: 80px;
}

.page-poker__cta-container {
  text-align: center;
}

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

.page-poker__cta-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 10px;
  object-fit: cover;
}

/* Global Image Styles */
.page-poker img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__section-title {
    font-size: 2rem;
  }

  .page-poker__hero-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-poker__hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-poker__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }

  .page-poker__hero-content-wrapper {
    flex-direction: column;
    padding: 0 15px;
  }

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

  .page-poker__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-poker__hero-description {
    font-size: 1rem;
  }

  .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 15px;
    font-size: 1rem;
  }

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

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

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

  .page-poker__sub-title {
    font-size: 1.5rem;
  }

  .page-poker__text-block,
  .page-poker__list li,
  .page-poker__game-card-description,
  .page-poker__game-list li,
  .page-poker__step-description,
  .page-poker__promo-description,
  .page-poker__info-description,
  .page-poker__faq-question,
  .page-poker__faq-answer p {
    font-size: 1rem;
  }

  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__game-card,
  .page-poker__step-card,
  .page-poker__promo-card,
  .page-poker__info-card,
  .page-poker__faq-item,
  .page-poker__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker__game-categories,
  .page-poker__steps-grid,
  .page-poker__promo-grid,
  .page-poker__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no horizontal scroll for elements */
.page-poker__hero-section,
.page-poker__section,
.page-poker__container,
.page-poker__game-card,
.page-poker__step-card,
.page-poker__promo-card,
.page-poker__info-card,
.page-poker__faq-item {
  overflow-x: hidden;
}