/* style/poker.css */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
  --border-color-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-poker {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Based on body background #0a0a0a (dark) */
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

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

/* Hero Section */
.page-poker__hero-section {
  background: linear-gradient(135deg, var(--primary-color), #000000);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.page-poker__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-poker__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-poker__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-poker__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-poker__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-poker__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-poker__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
  padding-top: 40px;
}

.page-poker__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-poker__dark-section {
  background-color: var(--primary-color);
  padding: 60px 0;
  color: var(--text-light);
}

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

/* Features Section (Poker Variants) */
.page-poker__features-section {
  padding: 80px 0;
}

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

.page-poker__feature-card {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-poker__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-poker__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-poker__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page-poker__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-poker__card-button:hover {
  background: #e6c200;
}

/* Advantages Section */
.page-poker__advantages-section {
  padding: 80px 0;
}

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

.page-poker__advantage-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-poker__advantage-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--secondary-color)); /* Safe filter for visual effect, not color change */
}

.page-poker__advantage-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-poker__advantage-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Guide Section */
.page-poker__guide-section {
  padding: 80px 0;
}

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

.page-poker__guide-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  transition: box-shadow 0.3s ease;
}

.page-poker__guide-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-poker__guide-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-poker__guide-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Promotions Section */
.page-poker__promotions-section {
  padding: 80px 0;
}

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

.page-poker__promotion-card {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-poker__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-poker__promotion-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

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

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

.page-poker__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  color: var(--text-light);
  border-radius: 8px;
}

.page-poker__faq-item.active .page-poker__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.page-poker__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-poker__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-poker__faq-item.active .page-poker__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #e0e0e0;
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-poker__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Blog Section */
.page-poker__blog-section {
  padding: 80px 0;
}

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

.page-poker__blog-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-poker__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-poker__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-poker__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-poker__blog-item-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin: 20px 25px 10px;
  line-height: 1.4;
}

.page-poker__blog-item-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin: 0 25px 15px;
  flex-grow: 1;
}

.page-poker__blog-item-date {
  font-size: 0.85em;
  color: #999999;
  margin: 0 25px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__main-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-poker {
    padding-top: 100px !important; /* Adjust for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-poker__hero-section,
  .page-poker__features-section,
  .page-poker__advantages-section,
  .page-poker__guide-section,
  .page-poker__promotions-section,
  .page-poker__faq-section,
  .page-poker__blog-section {
    padding: 40px 0;
  }

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

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

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

  .page-poker__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Ensure full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-poker__section-title {
    font-size: 1.8em;
    padding-top: 20px;
  }

  .page-poker__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-poker__feature-grid,
  .page-poker__advantage-list,
  .page-poker__guide-content,
  .page-poker__promotion-grid,
  .page-poker__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-poker__feature-card,
  .page-poker__advantage-item,
  .page-poker__guide-item,
  .page-poker__promotion-card,
  .page-poker__blog-item {
    padding: 20px;
  }

  .page-poker__card-title,
  .page-poker__advantage-title,
  .page-poker__guide-title {
    font-size: 1.3em;
  }

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

  .page-poker__faq-question h3 {
    font-size: 1.1em;
  }

  .page-poker__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }

  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 15px 20px !important;
  }

  .page-poker__blog-image {
    height: 180px;
  }

  .page-poker__blog-item-title {
    font-size: 1.2em;
    margin: 15px 20px 8px;
  }

  .page-poker__blog-item-excerpt,
  .page-poker__blog-item-date {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Image and Video responsiveness (general rules for all images/videos) */
  .page-poker img, .page-poker video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-poker__container, .page-poker__section, .page-poker__card, .page-poker__cta-buttons, .page-poker__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-poker__feature-image, .page-poker__advantage-icon, .page-poker__promotion-image, .page-poker__blog-image {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}