/* style/poker.css */

/* Base styles for the poker page content */
.page-poker {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  padding-top: 0; /* Handled by body padding-top in shared.css */
}

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

.page-poker__section {
  padding: 60px 0;
  text-align: center;
}

.page-poker__dark-section {
  background-color: #0A0A0A; /* Ensure consistency with overall dark theme */
  color: #FFF6D6;
}

.page-poker__section-title {
  font-size: 2.8em;
  color: #F2C14E; /* Main color for titles */
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-poker__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding for the first section */
  background-color: #0A0A0A; /* Dark background for consistency */
}

.page-poker__hero-image {
  width: 100%;
  max-width: 1920px; /* Example max width */
  height: auto;
  object-fit: cover;
  display: block;
}

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

.page-poker__main-title {
  color: #FFD36B; /* Glow color for main title */
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

/* Call to Action Buttons */
.page-poker__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.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 {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Border color */
}

.page-poker__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A; /* Dark text on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

/* About Poker Section */
.page-poker__about-poker {
  background-color: #0A0A0A;
}

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

.page-poker__feature-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
}

.page-poker__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.3)); /* Subtle glow */
}

.page-poker__feature-title {
  font-size: 1.6em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-poker__feature-text {
  font-size: 1em;
  color: #FFF6D6;
}

/* How to Get Started Section */
.page-poker__get-started {
  background-color: #0A0A0A;
}

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

.page-poker__step-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__step-number {
  font-size: 3em;
  color: #F2C14E; /* Main color */
  font-weight: bold;
  margin-bottom: 15px;
  display: block;
}

.page-poker__step-title {
  font-size: 1.8em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-poker__step-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Featured Poker Games Section */
.page-poker__featured-games {
  background-color: #0A0A0A;
}

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

.page-poker__game-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
}

.page-poker__game-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-poker__game-card .page-poker__game-title {
  font-size: 1.8em;
  color: #FFD36B; /* Glow color */
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-poker__game-card .page-poker__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-poker__game-card .page-poker__game-title a:hover {
  text-decoration: underline;
  color: #F2C14E;
}

.page-poker__game-card .page-poker__game-text {
  font-size: 1em;
  color: #FFF6D6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-poker__game-card .page-poker__btn-primary {
  margin: 0 20px 20px;
}

/* Poker Tournaments Section */
.page-poker__tournaments {
  background-color: #0A0A0A;
}

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

.page-poker__tournament-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
}

.page-poker__tournament-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-poker__tournament-card .page-poker__tournament-title {
  font-size: 1.8em;
  color: #FFD36B; /* Glow color */
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-poker__tournament-card .page-poker__tournament-title a {
  color: inherit;
  text-decoration: none;
}

.page-poker__tournament-card .page-poker__tournament-title a:hover {
  text-decoration: underline;
  color: #F2C14E;
}

.page-poker__tournament-card .page-poker__tournament-text {
  font-size: 1em;
  color: #FFF6D6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-poker__tournament-card .page-poker__btn-secondary {
  margin: 0 20px 20px;
}

/* Strategy Tips Section */
.page-poker__strategy-tips {
  background-color: #0A0A0A;
}

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

.page-poker__tip-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
}

.page-poker__tip-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-poker__tip-card .page-poker__tip-title {
  font-size: 1.8em;
  color: #FFD36B; /* Glow color */
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-poker__tip-card .page-poker__tip-title a {
  color: inherit;
  text-decoration: none;
}

.page-poker__tip-card .page-poker__tip-title a:hover {
  text-decoration: underline;
  color: #F2C14E;
}

.page-poker__tip-card .page-poker__tip-text {
  font-size: 1em;
  color: #FFF6D6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-poker__faq {
  background-color: #0A0A0A;
}

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

.page-poker__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-poker__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.page-poker__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  color: #F2C14E; /* Main color */
  transition: transform 0.3s ease;
}

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

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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 value */
  padding: 20px;
  padding-top: 0;
}

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

/* Final Call to Action Section */
.page-poker__cta {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-poker__cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__section-title {
    font-size: 2.5em;
  }
  .page-poker__hero-content {
    margin-top: 20px;
  }
}

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

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

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

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

  .page-poker__hero-section {
    padding-top: 10px !important;
  }

  .page-poker__hero-content {
    margin: 20px auto;
    padding: 0 15px;
  }

  .page-poker__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

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

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    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__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-poker__feature-grid,
  .page-poker__step-grid,
  .page-poker__game-cards,
  .page-poker__tournament-cards,
  .page-poker__tip-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-poker__game-image,
  .page-poker__tournament-image,
  .page-poker__tip-image {
    height: 180px;
  }

  /* Mobile image responsiveness */
  .page-poker img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .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;
  }
}

@media (max-width: 480px) {
  .page-poker__section-title {
    font-size: 1.8em;
  }
  .page-poker__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-poker__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-poker__step-number {
    font-size: 2.5em;
  }
  .page-poker__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-poker__faq-toggle {
    font-size: 1.2em;
  }
}