/* style/fishing-games-popular-machines.css */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg-color: #11271B;
  --background-color-page: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Body background is handled by shared.css var(--background-color) which is #08160F (dark), so text should be light */
.page-fishing-games-popular-machines {
  color: var(--text-main-color); /* Light text for dark background */
  background-color: var(--background-color-page); /* Fallback/Specific section background */
}

.page-fishing-games-popular-machines__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

.page-fishing-games-popular-machines__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games-popular-machines__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-fishing-games-popular-machines__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  margin-top: -100px; /* Pull content up slightly over image for visual flow, but not overlapping text on image */
  position: relative;
  z-index: 1;
  background: rgba(8, 22, 15, 0.8); /* Slightly transparent background to ensure text readability */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-fishing-games-popular-machines__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold-color);
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-fishing-games-popular-machines__hero-description {
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-fishing-games-popular-machines__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-fishing-games-popular-machines__btn-primary,
.page-fishing-games-popular-machines__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-fishing-games-popular-machines__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-fishing-games-popular-machines__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-fishing-games-popular-machines__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fishing-games-popular-machines__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main-color);
}

.page-fishing-games-popular-machines__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-fishing-games-popular-machines__btn-large {
  padding: 16px 35px;
  font-size: 1.2em;
}

.page-fishing-games-popular-machines__section {
  padding: 60px 0;
  background-color: var(--background-color-page);
}

.page-fishing-games-popular-machines__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-fishing-games-popular-machines__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-fishing-games-popular-machines__section-intro {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

.page-fishing-games-popular-machines__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games-popular-machines__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-fishing-games-popular-machines__feature-item:hover {
  transform: translateY(-5px);
}

.page-fishing-games-popular-machines__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games-popular-machines__feature-text {
  color: var(--text-secondary-color);
  line-height: 1.6;
}

.page-fishing-games-popular-machines__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-fishing-games-popular-machines__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-fishing-games-popular-machines__game-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games-popular-machines__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fishing-games-popular-machines__game-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games-popular-machines__game-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-fishing-games-popular-machines__game-description {
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games-popular-machines__tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-fishing-games-popular-machines__tip-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-fishing-games-popular-machines__tip-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games-popular-machines__tip-text {
  color: var(--text-secondary-color);
  line-height: 1.6;
}

.page-fishing-games-popular-machines__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-fishing-games-popular-machines__promotions {
  background-color: var(--deep-green-color);
}

.page-fishing-games-popular-machines__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-fishing-games-popular-machines__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-fishing-games-popular-machines__promo-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games-popular-machines__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fishing-games-popular-machines__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games-popular-machines__promo-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-fishing-games-popular-machines__promo-description {
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games-popular-machines__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-fishing-games-popular-machines__step-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-fishing-games-popular-machines__step-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 40px;
}

.page-fishing-games-popular-machines__step-title::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gold-color);
  color: var(--background-color-page);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: bold;
}

.page-fishing-games-popular-machines__step-list {
  counter-reset: step-counter;
}

.page-fishing-games-popular-machines__step-text {
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-fishing-games-popular-machines__support-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games-popular-machines__support-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-fishing-games-popular-machines__support-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games-popular-machines__support-text {
  color: var(--text-secondary-color);
  line-height: 1.6;
}

.page-fishing-games-popular-machines__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-fishing-games-popular-machines__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-fishing-games-popular-machines__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--card-bg-color);
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-fishing-games-popular-machines__faq-question:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.page-fishing-games-popular-machines__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color);
}

.page-fishing-games-popular-machines__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-fishing-games-popular-machines__faq-item[open] .page-fishing-games-popular-machines__faq-question {
  background-color: var(--deep-green-color);
}

.page-fishing-games-popular-machines__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary-color);
  line-height: 1.7;
  /* For <details> tag, these are not strictly needed, browser handles expansion */
}

.page-fishing-games-popular-machines__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-fishing-games-popular-machines__faq-item summary {
  list-style: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games-popular-machines__hero-title {
    font-size: 2.8em;
  }
  .page-fishing-games-popular-machines__section-title {
    font-size: 2.2em;
  }
  .page-fishing-games-popular-machines__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games-popular-machines img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games-popular-machines__section,
  .page-fishing-games-popular-machines__card,
  .page-fishing-games-popular-machines__container,
  .page-fishing-games-popular-machines__game-card,
  .page-fishing-games-popular-machines__promo-card,
  .page-fishing-games-popular-machines__step-item,
  .page-fishing-games-popular-machines__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games-popular-machines__hero-section {
    padding: 10px 0 40px 0;
  }
  
  .page-fishing-games-popular-machines__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-fishing-games-popular-machines__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-fishing-games-popular-machines__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-fishing-games-popular-machines__btn-primary,
  .page-fishing-games-popular-machines__btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-fishing-games-popular-machines__btn-large {
    font-size: 1.1em;
  }

  .page-fishing-games-popular-machines__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-fishing-games-popular-machines__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-fishing-games-popular-machines__feature-item,
  .page-fishing-games-popular-machines__game-card,
  .page-fishing-games-popular-machines__promo-card,
  .page-fishing-games-popular-machines__tip-item,
  .page-fishing-games-popular-machines__support-item {
    padding: 25px;
  }

  .page-fishing-games-popular-machines__feature-title,
  .page-fishing-games-popular-machines__game-title,
  .page-fishing-games-popular-machines__promo-title,
  .page-fishing-games-popular-machines__tip-title,
  .page-fishing-games-popular-machines__support-title {
    font-size: 1.3em;
  }

  .page-fishing-games-popular-machines__game-image,
  .page-fishing-games-popular-machines__promo-image {
    height: 180px;
  }

  .page-fishing-games-popular-machines__step-title {
    font-size: 1.5em;
    padding-left: 35px;
  }

  .page-fishing-games-popular-machines__step-title::before {
    width: 28px;
    height: 28px;
    font-size: 0.9em;
  }

  .page-fishing-games-popular-machines__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-fishing-games-popular-machines__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-fishing-games-popular-machines__hero-content {
    margin-top: -60px;
  }
  .page-fishing-games-popular-machines__hero-title {
    font-size: 1.8em;
  }
  .page-fishing-games-popular-machines__section-title {
    font-size: 1.6em;
  }
  .page-fishing-games-popular-machines__feature-item,
  .page-fishing-games-popular-machines__game-card,
  .page-fishing-games-popular-machines__promo-card,
  .page-fishing-games-popular-machines__tip-item,
  .page-fishing-games-popular-machines__support-item {
    padding: 20px;
  }
  .page-fishing-games-popular-machines__feature-title,
  .page-fishing-games-popular-machines__game-title,
  .page-fishing-games-popular-machines__promo-title,
  .page-fishing-games-popular-machines__tip-title,
  .page-fishing-games-popular-machines__support-title {
    font-size: 1.2em;
  }
  .page-fishing-games-popular-machines__game-image,
  .page-fishing-games-popular-machines__promo-image {
    height: 150px;
  }
}