/* style/poker-games.css */

:root {
  --phdream-primary: #000000;
  --phdream-secondary: #FFFFFF;
  --phdream-text-light: #ffffff;
  --phdream-text-dark: #333333;
  --phdream-accent-login: #FCBC45;
}

.page-poker-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--phdream-text-light); /* Dark body background (#000000), so use light text */
  background-color: var(--phdream-primary); /* Ensure consistency with body background */
}

.page-poker-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* For fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-poker-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-poker-games__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.page-poker-games__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  margin: 0 15px; /* Ensure content is not too wide on smaller screens */
}

.page-poker-games__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--phdream-text-light);
  margin-bottom: 15px;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-poker-games__hero-description {
  font-size: 1.1rem;
  color: var(--phdream-text-light);
  margin-bottom: 30px;
}

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

.page-poker-games__btn-primary,
.page-poker-games__btn-secondary,
.page-poker-games__btn-tertiary,
.page-poker-games__btn-quaternary,
.page-poker-games__game-button,
.page-poker-games__guide-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-poker-games__btn-primary {
  background-color: var(--phdream-accent-login); /* Use custom color for login/register */
  color: var(--phdream-primary);
  border: 2px solid var(--phdream-accent-login);
}

.page-poker-games__btn-primary:hover {
  background-color: darken(var(--phdream-accent-login), 10%);
  border-color: darken(var(--phdream-accent-login), 10%);
  color: var(--phdream-primary);
}

.page-poker-games__btn-secondary {
  background-color: transparent;
  color: var(--phdream-accent-login);
  border: 2px solid var(--phdream-accent-login);
}

.page-poker-games__btn-secondary:hover {
  background-color: var(--phdream-accent-login);
  color: var(--phdream-primary);
}

.page-poker-games__btn-tertiary {
  background-color: var(--phdream-primary);
  color: var(--phdream-accent-login);
  border: 2px solid var(--phdream-accent-login);
}

.page-poker-games__btn-tertiary:hover {
  background-color: var(--phdream-accent-login);
  color: var(--phdream-primary);
}

.page-poker-games__btn-quaternary {
  background-color: var(--phdream-secondary);
  color: var(--phdream-primary);
  border: 2px solid var(--phdream-secondary);
}

.page-poker-games__btn-quaternary:hover {
  background-color: var(--phdream-primary);
  color: var(--phdream-secondary);
  border-color: var(--phdream-secondary);
}

.page-poker-games__game-button, .page-poker-games__guide-button {
  background-color: var(--phdream-accent-login);
  color: var(--phdream-primary);
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-poker-games__game-button:hover, .page-poker-games__guide-button:hover {
  background-color: darken(var(--phdream-accent-login), 10%);
}

.page-poker-games__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

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

.page-poker-games__section-title {
  font-size: 2.5rem;
  color: var(--phdream-accent-login);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-poker-games__text-block {
  font-size: 1.1rem;
  color: var(--phdream-text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-poker-games__features-grid,
.page-poker-games__game-grid,
.page-poker-games__steps-grid,
.page-poker-games__guides-grid,
.page-poker-games__community-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-poker-games__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-poker-games__feature-card,
.page-poker-games__game-card,
.page-poker-games__step-card,
.page-poker-games__guide-card,
.page-poker-games__community-card,
.page-poker-games__detail-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark body */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: var(--phdream-text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-poker-games__feature-title,
.page-poker-games__game-title,
.page-poker-games__step-title,
.page-poker-games__guide-title,
.page-poker-games__community-title,
.page-poker-games__detail-title {
  font-size: 1.5rem;
  color: var(--phdream-accent-login);
  margin-bottom: 15px;
}

.page-poker-games__feature-description,
.page-poker-games__game-description,
.page-poker-games__step-description,
.page-poker-games__guide-description,
.page-poker-games__community-description,
.page-poker-games__detail-description {
  font-size: 1rem;
  color: var(--phdream-text-light);
}

.page-poker-games__game-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-poker-games__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px;
  object-fit: cover;
}

.page-poker-games__steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-poker-games__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--phdream-accent-login);
  margin-bottom: 15px;
}

.page-poker-games__guides-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-poker-games__community-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.page-poker-games__detail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-height: 200px;
  object-fit: cover;
}

.page-poker-games__faq-section {
  padding-bottom: 80px;
}

.page-poker-games__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-poker-games__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-poker-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--phdream-text-light);
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-poker-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-poker-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--phdream-accent-login);
}

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

.page-poker-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--phdream-text-light);
  text-align: left;
}

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

.page-poker-games__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
}

.page-poker-games__cta-buttons-bottom {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-poker-games__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-poker-games__section-title {
    font-size: 2rem;
  }
  .page-poker-games__hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-poker-games__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile: controlled by shared's media */
    min-height: 400px;
  }

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

  .page-poker-games__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-poker-games__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

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

  .page-poker-games__btn-primary,
  .page-poker-games__btn-secondary,
  .page-poker-games__btn-tertiary,
  .page-poker-games__btn-quaternary,
  .page-poker-games__game-button,
  .page-poker-games__guide-button {
    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-games__hero-buttons,
  .page-poker-games__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-poker-games__section {
    padding: 40px 0;
  }

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

  .page-poker-games__section-title {
    font-size: 1.8rem;
  }

  .page-poker-games__text-block {
    font-size: 1rem;
  }

  .page-poker-games__features-grid,
  .page-poker-games__game-grid,
  .page-poker-games__steps-grid,
  .page-poker-games__guides-grid,
  .page-poker-games__community-grid,
  .page-poker-games__feature-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-poker-games__feature-card,
  .page-poker-games__game-card,
  .page-poker-games__step-card,
  .page-poker-games__guide-card,
  .page-poker-games__community-card,
  .page-poker-games__detail-card {
    padding: 20px;
  }

  .page-poker-games__feature-title,
  .page-poker-games__game-title,
  .page-poker-games__step-title,
  .page-poker-games__guide-title,
  .page-poker-games__community-title,
  .page-poker-games__detail-title {
    font-size: 1.3rem;
  }

  .page-poker-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-poker-games__section,
  .page-poker-games__card,
  .page-poker-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker-games__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

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

  .page-poker-games__faq-item.active .page-poker-games__faq-answer {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-poker-games__hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-poker-games__section-title {
    font-size: 1.5rem;
  }
  .page-poker-games__text-block {
    font-size: 0.9rem;
  }
  .page-poker-games__feature-title,
  .page-poker-games__game-title,
  .page-poker-games__step-title,
  .page-poker-games__guide-title,
  .page-poker-games__community-title,
  .page-poker-games__detail-title {
    font-size: 1.2rem;
  }
  .page-poker-games__step-number {
    font-size: 2.5rem;
  }
}