/* style/poker.css */

/* Root variables for colors based on Black Gold theme */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A; /* From custom配色 */
  --card-background: #111111; /* From custom配色 */
  --text-main-color: #FFF6D6; /* From custom配色 */
  --border-color: #3A2A12; /* From custom配色 */
  --glow-color: #FFD36B; /* From custom配色 */
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* From custom配色 */
  --button-text-color: #ffffff;
  --light-text-color: #f0f0f0;
  --dark-text-color: #333333;
}

.page-poker {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

/* HERO Section */
.page-poker__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
  transition: transform 0.3s ease-in-out;
}

.page-poker__hero-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  z-index: 1;
  margin-top: -150px; /* Pull content up over the image, but not on top of it */
  position: relative; /* Ensure content is above image but not overlapping text */
}

.page-poker__hero-content {
  background: rgba(17, 17, 17, 0.7); /* Semi-transparent dark background for text */
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
}

.page-poker__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-poker__hero-description {
  font-size: 1.2rem;
  color: var(--light-text-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  text-align: center;
}

.page-poker__btn-primary {
  background: var(--button-gradient);
  color: var(--button-text-color);
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-poker__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-poker__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

/* General Section Styles */
.page-poker__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-poker__section-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-poker__section-intro {
  font-size: 1.1rem;
  color: var(--light-text-color);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

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

.page-poker__card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-main-color);
}

.page-poker__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-poker__card-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-poker__card-text {
  font-size: 1rem;
  color: var(--light-text-color);
  line-height: 1.5;
  flex-grow: 1;
}

/* Why PAGCOR Section */
.page-poker__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 211, 107, 0.5));
}

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

.page-poker__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.page-poker__game-card .page-poker__btn-primary {
  margin-top: 20px;
  width: 80%;
}

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

.page-poker__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.page-poker__promo-card .page-poker__btn-primary,
.page-poker__promo-card .page-poker__btn-secondary {
  margin-top: 20px;
  width: 80%;
}

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

.page-poker__step-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 211, 107, 0.4));
}

.page-poker__step-card .page-poker__btn-primary,
.page-poker__step-card .page-poker__btn-secondary {
  margin-top: 20px;
  width: 80%;
}

/* App Section */
.page-poker__app-section .page-poker__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-poker__app-text {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: left;
}

.page-poker__sub-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-poker__app-description {
  font-size: 1.1rem;
  color: var(--light-text-color);
  line-height: 1.6;
  margin-bottom: 25px;
}

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

.page-poker__app-features li {
  font-size: 1.05rem;
  color: var(--light-text-color);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.page-poker__list-icon {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.2em;
  margin-right: 10px;
  line-height: 1;
}

.page-poker__app-buttons {
  justify-content: flex-start;
}

.page-poker__app-image-wrapper {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.page-poker__app-mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
}

/* Partners Section */
.page-poker__partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for specific image size */
  gap: 20px;
  margin-top: 50px;
  justify-items: center;
}

.page-poker__partner-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px; /* Adjust height to fit 167x127 images */
  width: 100%; /* Ensure it takes full column width */
  max-width: 180px; /* Max width to contain the image */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-poker__partner-item:hover {
  transform: translateY(-3px);
}

.page-poker__partner-logo {
  width: 100%; /* Max width of the item */
  height: auto;
  max-height: 80px; /* Ensure logo fits within item height */
  object-fit: contain;
  filter: brightness(0.9) drop-shadow(0 0 5px rgba(255, 211, 107, 0.2));
}

/* Responsible Gaming Section */
.page-poker__responsible-gaming-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-poker__text-block {
  font-size: 1.1rem;
  color: var(--light-text-color);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-poker__faq-section .page-poker__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-poker__faq-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-poker__faq-item {
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--card-background);
  color: var(--text-main-color);
  text-align: left;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(242, 193, 78, 0.05); /* Slightly lighter background for question */
  border-bottom: 1px solid var(--border-color);
}

.page-poker__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-poker__faq-title {
  font-size: 1.2rem;
  color: var(--light-text-color);
  margin: 0;
  flex-grow: 1;
}

.page-poker__faq-toggle {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-left: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
  font-weight: 300; /* Use a lighter weight for the +/- symbol */
}

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(0deg);
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value for expansion */
  padding: 15px 25px;
  padding-bottom: 25px; /* Adjust bottom padding for better spacing */
}

.page-poker__faq-text {
  font-size: 1rem;
  color: var(--light-text-color);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-content-wrapper {
    margin-top: -100px;
  }
  .page-poker__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-poker__section-title {
    font-size: 2rem;
  }
  .page-poker__sub-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-poker__hero-section {
    padding-bottom: 40px;
  }
  .page-poker__hero-content-wrapper {
    margin-top: -80px;
    padding: 15px;
  }
  .page-poker__hero-content {
    padding: 20px;
  }
  .page-poker__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-poker__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-poker__container {
    padding: 30px 15px;
  }
  .page-poker__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .page-poker__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-poker__feature-grid, .page-poker__game-grid, .page-poker__promo-grid, .page-poker__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-poker__app-content {
    flex-direction: column-reverse; /* Image above text on mobile */
    gap: 30px;
  }
  .page-poker__app-text {
    text-align: center;
    max-width: 100%;
  }
  .page-poker__sub-title {
    font-size: 1.6rem;
  }
  .page-poker__app-description {
    font-size: 1rem;
  }
  .page-poker__app-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__app-features {
    padding-left: 0;
    text-align: left; /* Keep list items left-aligned */
  }

  .page-poker__partner-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
  }

  .page-poker__faq-question {
    padding: 15px 20px;
  }
  .page-poker__faq-title {
    font-size: 1.1rem;
  }
  .page-poker__faq-toggle {
    font-size: 1.5rem;
  }
  .page-poker__faq-answer {
    padding: 0 20px;
  }
  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 15px 20px;
    padding-bottom: 20px;
  }

  /* Mobile responsive images (forced) */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__hero-section,
  .page-poker__app-section,
  .page-poker__why-pagcor-section,
  .page-poker__games-section,
  .page-poker__bonuses-section,
  .page-poker__registration-section,
  .page-poker__partners-section,
  .page-poker__responsible-gaming-section,
  .page-poker__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile responsive buttons (forced) */
  .page-poker__cta-button,
  .page-poker__btn-primary,
  .page-poker__btn-secondary,
  .page-poker a[class*="button"],
  .page-poker a[class*="btn"] {
    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__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;
    flex-direction: column; /* Ensure vertical stacking for buttons on mobile */
  }
}

@media (max-width: 480px) {
  .page-poker__hero-content-wrapper {
    margin-top: -60px;
  }
  .page-poker__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-poker__section-title {
    font-size: 1.5rem;
  }
  .page-poker__sub-title {
    font-size: 1.4rem;
  }
  .page-poker__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-poker__step-icon {
    width: 60px;
    height: 60px;
  }
  .page-poker__partner-grid {
    grid-template-columns: 1fr; /* Single column on very small screens */
  }
  .page-poker__partner-item {
    max-width: 250px;
  }
}