/* style/poker.css */

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

.page-poker {
  background-color: var(--okbet-background);
  color: var(--okbet-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-poker__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--okbet-primary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-poker__section-description {
  font-size: 1.1em;
  color: var(--okbet-text-main);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-poker__btn-primary {
  background: var(--okbet-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.3);
}

.page-poker__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.5);
}

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

.page-poker__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.page-poker__btn-small {
  padding: 8px 20px;
  font-size: 0.95em;
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top offset, 10px for small decorative padding */
  background-color: var(--okbet-background);
  overflow: hidden;
}

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

.page-poker__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
  text-align: center;
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2; /* Ensure text is above image if any overlap occurs */
}

.page-poker__main-title {
  font-size: clamp(2.5em, 5vw, 4em);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.page-poker__hero-description {
  font-size: 1.2em;
  color: var(--okbet-text-main);
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* About Section */
.page-poker__about-section {
  padding: 80px 0;
  background-color: var(--okbet-card-bg);
}

.page-poker__dark-section {
  background-color: var(--okbet-card-bg);
  color: var(--okbet-text-main);
}

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

.page-poker__feature-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--okbet-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.page-poker__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-poker__feature-text {
  font-size: 1em;
  color: var(--okbet-text-main);
}

/* Games Section */
.page-poker__games-section {
  padding: 80px 0;
  background-color: var(--okbet-background);
}

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

.page-poker__game-card {
  background-color: var(--okbet-card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--okbet-border);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-poker__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

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

.page-poker__game-title {
  font-size: 1.6em;
  color: var(--okbet-primary);
  margin: 20px 15px 10px;
}

.page-poker__game-text {
  font-size: 0.95em;
  color: var(--okbet-text-main);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-poker__game-link {
  display: block;
  background: var(--okbet-button-gradient);
  color: #ffffff;
  padding: 12px 15px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-top: 1px solid var(--okbet-border);
}

.page-poker__game-link:hover {
  filter: brightness(1.1);
}

/* How to Play Section */
.page-poker__how-to-play-section {
  padding: 80px 0;
}

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

.page-poker__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--okbet-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.page-poker__step-text {
  font-size: 1em;
  color: var(--okbet-text-main);
  margin-bottom: 25px;
}

/* Promotions Section */
.page-poker__promotions-section {
  padding: 80px 0;
  background-color: var(--okbet-background);
}

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

.page-poker__promo-card {
  background-color: var(--okbet-card-bg);
  border: 1px solid var(--okbet-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-poker__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

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

.page-poker__promo-title {
  font-size: 1.6em;
  color: var(--okbet-primary);
  margin: 20px 15px 10px;
}

.page-poker__promo-text {
  font-size: 0.95em;
  color: var(--okbet-text-main);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-poker__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* Mobile App Section */
.page-poker__mobile-app-section {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__mobile-app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.page-poker__mobile-text-content {
  flex: 1;
  text-align: left;
}

.page-poker__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-poker__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 200px;
}

/* Security Section */
.page-poker__security-section {
  padding: 80px 0;
  background-color: var(--okbet-background);
}

.page-poker__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-poker__security-item {
  background-color: var(--okbet-card-bg);
  border: 1px solid var(--okbet-border);
  border-radius: 8px;
  padding: 25px;
  font-size: 1.05em;
  color: var(--okbet-text-main);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-poker__security-item strong {
  color: var(--okbet-primary);
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
}

/* Support Section */
.page-poker__support-section {
  padding: 80px 0;
}

.page-poker__support-options {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsible Gaming Section */
.page-poker__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--okbet-background);
  text-align: center;
}

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

.page-poker__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker__faq-item {
  background-color: var(--okbet-card-bg);
  border: 1px solid var(--okbet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--okbet-primary);
  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-toggle {
  font-size: 1.5em;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--okbet-text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-poker__section-title {
    font-size: 2.2em;
  }
  .page-poker__hero-content {
    margin-top: 20px;
  }
  .page-poker__main-title {
    font-size: clamp(2em, 6vw, 3.5em);
  }
  .page-poker__hero-description {
    font-size: 1.1em;
  }
  .page-poker__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-poker__mobile-text-content {
    text-align: center;
  }
  .page-poker__mobile-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-poker__container {
    padding: 0 15px;
  }
  .page-poker__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-poker__main-title {
    font-size: clamp(1.8em, 8vw, 2.8em);
  }
  .page-poker__hero-description {
    font-size: 1em;
  }
  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-poker__btn-small {
    padding: 10px 15px;
  }

  .page-poker__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-poker__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-poker__about-section,
  .page-poker__games-section,
  .page-poker__how-to-play-section,
  .page-poker__promotions-section,
  .page-poker__mobile-app-section,
  .page-poker__security-section,
  .page-poker__support-section,
  .page-poker__responsible-gaming-section,
  .page-poker__faq-section {
    padding: 40px 0;
  }
  .page-poker__features-grid,
  .page-poker__game-types-grid,
  .page-poker__steps-grid,
  .page-poker__promo-cards,
  .page-poker__security-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-poker__feature-icon {
    width: 150px;
    height: 150px;
  }
  .page-poker__feature-title,
  .page-poker__game-title,
  .page-poker__step-title,
  .page-poker__promo-title {
    font-size: 1.4em;
  }
  .page-poker__mobile-image {
    min-width: 250px;
    width: 80%;
  }
  .page-poker__support-options {
    flex-direction: column;
  }
  .page-poker__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-poker__faq-answer {
    padding: 0 20px;
  }
  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image and container overrides */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-poker__hero-image {
    max-height: 400px !important;
  }
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__hero-section,
  .page-poker__about-section,
  .page-poker__games-section,
  .page-poker__how-to-play-section,
  .page-poker__promotions-section,
  .page-poker__mobile-app-section,
  .page-poker__security-section,
  .page-poker__support-section,
  .page-poker__responsible-gaming-section,
  .page-poker__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-poker__mobile-image-wrapper {
    overflow: hidden;
  }
  .page-poker__mobile-image {
    width: auto !important; /* Allow image to scale down */
    max-width: 100% !important;
    height: auto !important;
  }
  /* Video section specific (not present on this page, but for general rule) */
  .page-poker__video-section {
    padding-top: 10px !important; /* Rely on body for header offset */
  }
}

/* Ensure color contrast for all text */
.page-poker p,
.page-poker li,
.page-poker__feature-text,
.page-poker__game-text,
.page-poker__step-text,
.page-poker__promo-text,
.page-poker__security-item {
  color: var(--okbet-text-main); /* Light text on dark backgrounds */
}

.page-poker__faq-answer p {
  color: var(--okbet-text-main);
}

/* Ensure headers have good contrast */
.page-poker h1,
.page-poker h2,
.page-poker h3,
.page-poker h4,
.page-poker h5,
.page-poker h6 {
  color: #ffffff; /* Default for headers */
}

.page-poker__section-title,
.page-poker__feature-title,
.page-poker__game-title,
.page-poker__step-title,
.page-poker__promo-title,
.page-poker__faq-question h3 {
  color: var(--okbet-primary); /* Use primary color for some titles */
}

.page-poker__main-title {
  color: #ffffff; /* Main title is white */
}

/* Ensure links have good contrast */
.page-poker a {
  color: var(--okbet-primary);
}

.page-poker a:hover {
  color: var(--okbet-secondary);
}

.page-poker__game-link {
  color: #ffffff; /* White text on gradient background */
}

.page-poker__btn-primary,
.page-poker__btn-secondary {
  color: #ffffff; /* White text on primary buttons */
}

.page-poker__btn-secondary {
  color: var(--okbet-primary); /* Primary text on secondary buttons */
}

.page-poker__btn-secondary:hover {
  color: #ffffff; /* White text on secondary hover */
}