/* style/poker-room.css */

/* Base styles for the page content */
.page-poker-room {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background for the main content area */
}

/* Section styling */
.page-poker-room__section {
  padding: 60px 0;
  text-align: center;
  background-color: #ffffff; /* Default light background for sections */
  margin-bottom: 20px; /* Spacing between sections */
}

.page-poker-room__section:first-of-type {
  padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

.page-poker-room__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  color: #000080; /* Navy blue for main titles */
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-poker-room__section-title--light {
  color: #ffffff;
}

.page-poker-room__section-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: #555555;
}

.page-poker-room__section-intro--light {
  color: #e0e0e0;
}

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

/* Hero Section */
.page-poker-room__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: #000080; /* Fallback background color */
}

.page-poker-room__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker-room__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-poker-room__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
  background-color: #000080; /* Navy blue background for content block */
  width: 100%;
  box-sizing: border-box;
}

.page-poker-room__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #FFD700; /* Gold for hero title */
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-poker-room__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-poker-room__btn-primary,
.page-poker-room__btn-secondary,
.page-poker-room__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-poker-room__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #000080; /* Navy Blue */
  border: 2px solid #FFD700;
}

.page-poker-room__btn-primary:hover {
  background-color: #e6c200; /* Darker gold */
  border-color: #e6c200;
}

.page-poker-room__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-poker-room__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-poker-room__btn-tertiary {
  background-color: #000080; /* Navy Blue */
  color: #FFD700; /* Gold */
  border: 2px solid #000080;
}

.page-poker-room__btn-tertiary:hover {
  background-color: #000066; /* Darker navy */
  border-color: #000066;
}

.page-poker-room__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Features Grid */
.page-poker-room__why-choose {
  background-color: #f0f4f8; /* Light blue-gray background */
}

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

.page-poker-room__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker-room__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-poker-room__feature-icon {
  width: 200px;
  height: 200px; /* Adjusted to meet strict 200x200 minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-poker-room__feature-title {
  font-size: 1.5rem;
  color: #000080;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-poker-room__feature-description {
  font-size: 1rem;
  color: #555555;
}

/* Game Types Grid */
.page-poker-room__game-types {
  background-color: #ffffff;
}

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

.page-poker-room__game-card {
  background-color: #f0f4f8;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker-room__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker-room__game-title {
  font-size: 1.6rem;
  color: #000080;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-poker-room__game-description {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* How to Start Section */
.page-poker-room__how-to-start {
  background-color: #000080; /* Navy blue background */
  color: #ffffff;
}

.page-poker-room__how-to-start .page-poker-room__section-title {
  color: #FFD700;
}

.page-poker-room__how-to-start .page-poker-room__section-intro {
  color: #e0e0e0;
}

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

.page-poker-room__step-card {
  background-color: #000066; /* Darker navy */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker-room__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #000080;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-poker-room__step-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-poker-room__step-description {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tournaments Section */
.page-poker-room__tournaments {
  background-color: #f8f8f8;
}

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

.page-poker-room__tournament-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker-room__tournament-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker-room__tournament-title {
  font-size: 1.6rem;
  color: #000080;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-poker-room__tournament-description {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-poker-room__responsible-gaming {
  background-color: #000080; /* Navy blue background */
  color: #ffffff;
}

.page-poker-room__responsible-gaming .page-poker-room__section-title {
  color: #FFD700;
}

.page-poker-room__responsible-gaming .page-poker-room__section-intro {
  color: #e0e0e0;
}

.page-poker-room__info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.page-poker-room__info-card {
  background-color: #000066;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  flex: 1 1 calc(50% - 30px);
  max-width: calc(50% - 30px);
  text-align: left;
}

.page-poker-room__info-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-poker-room__info-description {
  font-size: 1rem;
  color: #e0e0e0;
}

.page-poker-room__button-wrapper {
  margin-top: 40px;
}

/* FAQ Section */
.page-poker-room__faq {
  background-color: #f0f4f8;
}

.page-poker-room__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker-room__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-poker-room__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-poker-room__faq-question:hover {
  background-color: #f5f5f5;
}

.page-poker-room__faq-question h3 {
  font-size: 1.25rem;
  color: #000080;
  margin: 0;
  font-weight: 600;
}

.page-poker-room__faq-toggle {
  font-size: 1.8rem;
  color: #FFD700;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-poker-room__faq-item.active .page-poker-room__faq-toggle {
  transform: rotate(45deg);
}

.page-poker-room__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
}

.page-poker-room__faq-item.active .page-poker-room__faq-answer {
  max-height: 1000px !important;
  padding: 20px;
  padding-top: 0;
}

.page-poker-room__faq-answer p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-poker-room__cta-final {
  background-color: #000080;
  padding: 80px 0;
}

.page-poker-room__cta-final .page-poker-room__container {
  background-color: #000080;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-poker-room__hero-image-wrapper {
    max-height: 500px;
  }
  .page-poker-room__info-card {
    flex: 1 1 calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  .page-poker-room__section {
    padding: 40px 0;
  }

  .page-poker-room__section:first-of-type {
    padding-top: 10px !important;
  }

  .page-poker-room__hero-image-wrapper {
    max-height: 350px;
  }

  .page-poker-room__hero-content {
    padding: 30px 15px;
  }

  .page-poker-room__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-poker-room__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-poker-room__btn-primary,
  .page-poker-room__btn-secondary,
  .page-poker-room__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-poker-room__hero-cta-buttons,
  .page-poker-room__button-wrapper {
    padding: 0 15px;
  }

  .page-poker-room__container {
    padding: 0 15px;
  }

  .page-poker-room__features-grid,
  .page-poker-room__game-cards-grid,
  .page-poker-room__steps-grid,
  .page-poker-room__tournament-grid,
  .page-poker-room__info-cards {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .page-poker-room__feature-card,
  .page-poker-room__game-card,
  .page-poker-room__step-card,
  .page-poker-room__tournament-card {
    padding: 25px;
  }

  .page-poker-room__feature-icon {
    width: 200px;
    height: 200px; /* Keep 200x200 on mobile too */
  }

  .page-poker-room__game-thumbnail,
  .page-poker-room__tournament-image {
    height: 180px;
  }

  .page-poker-room__faq-question h3 {
    font-size: 1.1rem;
  }

  .page-poker-room__faq-toggle {
    font-size: 1.5rem;
  }

  /* Mobile image responsiveness enforcement */
  .page-poker-room img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-poker-room__section,
  .page-poker-room__card,
  .page-poker-room__container,
  .page-poker-room__info-card,
  .page-poker-room__feature-card,
  .page-poker-room__game-card,
  .page-poker-room__step-card,
  .page-poker-room__tournament-card,
  .page-poker-room__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker-room__hero-content,
  .page-poker-room__cta-final .page-poker-room__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-poker-room__faq-answer {
    padding: 0 15px !important;
  }
  .page-poker-room__faq-item.active .page-poker-room__faq-answer {
    padding: 15px !important;
    padding-top: 0 !important;
  }
}

/* Ensure all content area images are at least 200x200 if not explicitly exempted */
.page-poker-room__hero-image,
.page-poker-room__feature-icon,
.page-poker-room__game-thumbnail,
.page-poker-room__tournament-image {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters for images */
.page-poker-room img {
  filter: none !important;
}

/* Color contrast enforcement */
.page-poker-room__dark-bg {
  background-color: #000080; /* Navy blue */
  color: #ffffff;
}
.page-poker-room__light-bg {
  background-color: #ffffff;
  color: #333333;
}
/* Ensure text in cards is readable */
.page-poker-room__feature-card,
.page-poker-room__game-card,
.page-poker-room__tournament-card,
.page-poker-room__faq-item {
  color: #333333; /* Default text color for light backgrounds */
}
.page-poker-room__how-to-start .page-poker-room__step-card {
  color: #e0e0e0; /* Light text for dark step cards */
}
.page-poker-room__responsible-gaming .page-poker-room__info-card {
  color: #e0e0e0; /* Light text for dark info cards */
  text-align: left; /* Override center text */
}