/* style/poker.css */

/* --- Custom Color Variables --- */
:root {
  --main-color: #F2C14E;
  --accent-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

/* --- Base Styles & Layout --- */
.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--bg); /* Default background color from custom palette */
}

/* Fixed header spacing - relies on shared.css body padding-top */
.page-poker__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

.page-poker__section-spacing {
  padding: 60px 0;
}

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

.page-poker__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-poker__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-poker__hero-section {
  background: linear-gradient(135deg, var(--main-color), var(--accent-color)); /* Main color gradient */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  justify-content: center;
  padding-bottom: 60px; /* Add some padding below content */
}

.page-poker__hero-image-wrapper {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-poker__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.2; /* Subtle background */
}

.page-poker__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main); /* Text Main */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-poker__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-poker__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-poker__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-poker__btn-primary,
.page-poker__btn-secondary,
.page-poker__btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

.page-poker__btn-primary {
  background: var(--button-gradient); /* Button color from custom palette */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-poker__btn-secondary {
  background: transparent;
  color: var(--text-main); /* Text Main */
  border: 2px solid var(--main-color); /* Main color as border */
}

.page-poker__btn-secondary:hover {
  background: var(--main-color); /* Main color on hover */
  color: #111111;
  transform: translateY(-2px);
}

.page-poker__btn-play {
  background: var(--button-gradient);
  color: #111111;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

.page-poker__btn-play:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-poker__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* --- Intro Section --- */
.page-poker__intro-section {
  background-color: var(--bg); /* Background color from custom palette */
  color: var(--text-main);
}

/* --- Games Section --- */
.page-poker__dark-section {
  background-color: var(--card-bg); /* Card BG from custom palette */
  color: var(--text-main); /* Text Main */
}

.page-poker__dark-section .page-poker__section-title,
.page-poker__dark-section .page-poker__text-block {
  color: var(--text-main); /* Text Main */
}

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

.page-poker__game-card {
  background-color: var(--bg); /* Background from custom palette */
  border: 1px solid var(--border-color); /* Border from custom palette */
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-poker__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--main-color); /* Main color */
}

.page-poker__game-title a {
  color: var(--main-color); /* Main color */
  text-decoration: none;
}

.page-poker__game-title a:hover {
  text-decoration: underline;
}

.page-poker__game-description {
  font-size: 0.95em;
  color: var(--text-main);
  padding: 0 15px;
  margin-bottom: 20px;
}

/* --- Strategy Section --- */
.page-poker__strategy-section {
  background-color: var(--bg);
  color: var(--text-main);
}

.page-poker__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-poker__strategy-card {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-poker__strategy-card:hover {
  transform: translateY(-5px);
}

.page-poker__strategy-title {
  font-size: 1.3em;
  color: var(--main-color); /* Main color */
  margin-bottom: 10px;
}

.page-poker__strategy-description {
  font-size: 0.95em;
  line-height: 1.5;
}

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

.page-poker__bonus-card {
  background-color: var(--bg); /* Background from custom palette */
  border: 1px solid var(--border-color); /* Border from custom palette */
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__bonus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-poker__bonus-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-poker__bonus-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--main-color); /* Main color */
}

.page-poker__bonus-title a {
  color: var(--main-color); /* Main color */
  text-decoration: none;
}

.page-poker__bonus-title a:hover {
  text-decoration: underline;
}

.page-poker__bonus-description {
  font-size: 0.95em;
  color: var(--text-main);
  padding: 0 15px;
  margin-bottom: 20px;
}

/* --- Download Section --- */
.page-poker__download-section {
  background-color: var(--bg);
  color: var(--text-main);
}

.page-poker__download-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.page-poker__download-content .page-poker__section-title {
  text-align: left;
}

.page-poker__download-content .page-poker__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-poker__app-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-poker__download-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
}

/* --- FAQ Section --- */
.page-poker__faq-section {
  background-color: var(--card-bg); /* Card BG from custom palette */
  color: var(--text-main); /* Text Main */
}

.page-poker__faq-section .page-poker__section-title {
  color: var(--text-main); /* Text Main */
}

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

.page-poker__faq-item {
  background-color: var(--bg); /* Background from custom palette */
  border: 1px solid var(--border-color); /* Border from custom palette */
  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: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--main-color); /* Main color */
  transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Subtle hover effect */
}

.page-poker__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.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(--text-main); /* Text Main */
}

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

.page-poker__faq-answer p {
  margin-bottom: 10px;
  font-size: 0.95em;
}

/* --- Responsible Gaming Section --- */
.page-poker__responsible-gaming-section {
  background-color: var(--bg);
  color: var(--text-main);
}

/* --- Global Image & Button Responsive Styles (Critical) --- */
.page-poker img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-poker__section,
.page-poker__card,
.page-poker__container,
.page-poker__cta-buttons,
.page-poker__app-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Mobile specific overrides */
@media (max-width: 768px) {
  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile default */
    min-height: 450px;
    padding-bottom: 40px;
  }

  .page-poker__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-poker__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-poker__hero-content {
    padding: 15px;
  }

  .page-poker__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-poker__hero-description {
    font-size: clamp(0.9em, 3vw, 1em);
  }

  .page-poker__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-poker__btn-primary,
  .page-poker__btn-secondary,
  .page-poker__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-poker__game-grid,
  .page-poker__strategy-grid,
  .page-poker__bonus-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-poker__download-flex {
    flex-direction: column; /* Stack download content vertically */
    gap: 30px;
  }

  .page-poker__download-content {
    text-align: center;
  }

  .page-poker__download-content .page-poker__section-title {
    text-align: center;
  }

  .page-poker__download-content .page-poker__text-block {
    text-align: center;
  }

  .page-poker__app-buttons {
    padding: 0 15px;
  }

  .page-poker__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 10px 20px;
  }
  
  /* Ensure all content sections have horizontal padding */
  .page-poker__container {
    padding: 0 15px;
  }
}