/* style/poker.css */
.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color from custom配色 */
  background-color: var(--background, #0A0A0A); /* Default background color from custom配色 */
  padding-top: 10px; /* Small top padding for the first section */
}

.page-poker__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  position: relative;
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-poker__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual integration */
  padding: 40px 20px;
  background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border, #3A2A12);
}

.page-poker__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: bold;
  color: #FFF6D6;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-poker__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-poker__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-poker__text-block {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%;
  box-sizing: border-box;
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-poker__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-poker__btn-secondary {
  background: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
}

.page-poker__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-poker__dark-section {
  background-color: var(--card-bg, #111111);
  padding: 60px 0;
}

.page-poker__about-section .page-poker__btn-secondary,
.page-poker__cta-section .page-poker__btn-secondary,
.page-poker__contact-section .page-poker__btn-secondary {
  margin-top: 20px;
}

.page-poker__games-section {
  padding: 60px 0;
}

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

.page-poker__game-card {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-poker__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-poker__card-title {
  font-size: 1.5rem;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-poker__card-description {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-poker__mobile-section {
  padding: 60px 0;
}

.page-poker__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-poker__mobile-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border, #3A2A12);
}

.page-poker__mobile-features {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-poker__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-poker__feature-list li {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.page-poker__list-icon {
  color: #FFD36B;
  font-size: 1.5rem;
  margin-right: 10px;
  font-weight: bold;
}

.page-poker__security-section {
  padding: 60px 0;
}

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

.page-poker__security-card {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
}

.page-poker__security-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-poker__tournaments-section {
  padding: 60px 0;
}

.page-poker__tournament-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border, #3A2A12);
}

.page-poker__faq-section {
  padding: 60px 0;
}

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

.page-poker__faq-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-poker__faq-title {
  font-size: 1.15rem;
  color: #FFF6D6;
  margin: 0;
  font-weight: bold;
  flex-grow: 1;
  text-align: left;
}

.page-poker__faq-toggle {
  font-size: 1.8rem;
  color: #FFD36B;
  margin-left: 15px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.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: #cccccc;
  font-size: 1rem;
  text-align: left;
}

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

.page-poker__faq-answer p {
  margin-bottom: 0;
}

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

.page-poker__contact-section .page-poker__btn-primary,
.page-poker__contact-section .page-poker__btn-secondary {
  margin: 10px;
}

.page-poker__join-section {
  padding: 60px 0 80px;
  text-align: center;
}

.page-poker__join-section .page-poker__btn-primary {
  margin-top: 30px;
  font-size: 1.2rem;
  padding: 16px 32px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-poker__hero-content {
    margin-top: -100px;
  }
}

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

  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-poker__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

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

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

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

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-poker__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

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

  .page-poker__game-cards,
  .page-poker__security-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-poker__mobile-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-poker__mobile-image {
    max-width: 100%;
  }

  .page-poker__mobile-features {
    text-align: center;
  }

  .page-poker__feature-list li {
    justify-content: center;
  }

  .page-poker__tournament-image {
    margin: 30px auto;
  }

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

  .page-poker__faq-title {
    font-size: 1rem;
  }

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

  /* Force images to be responsive */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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;
  }
  
  /* Button containers mobile adaptation */
  .page-poker__hero-cta-buttons,
  .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__hero-cta-buttons, .page-poker__cta-buttons {
    flex-direction: column;
  }
}