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

/* Custom Colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  /* As per contrast rules, text on these buttons will be light, not yellow */
  --background-color-page: #FFFFFF;
}

.page-fishing-games-popular {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color-page);
}

.page-fishing-games-popular__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-fishing-games-popular__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-fishing-games-popular__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark);
}

/* Hero Section */
.page-fishing-games-popular__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  color: var(--text-color-light);
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

.page-fishing-games-popular__hero-section.page-fishing-games-popular__dark-bg {
  background-color: var(--primary-color);
}

.page-fishing-games-popular__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-fishing-games-popular__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-color-light);
}

.page-fishing-games-popular__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

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

/* Buttons */
.page-fishing-games-popular__btn-primary,
.page-fishing-games-popular__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games-popular__btn-primary {
  background-color: var(--button-register-bg);
  color: var(--text-color-light); /* Enforcing white text for contrast */
  border: 2px solid var(--button-register-bg);
}

.page-fishing-games-popular__btn-primary:hover {
  background-color: #a00606; /* Slightly darker red */
  border-color: #a00606;
}

.page-fishing-games-popular__btn-secondary {
  background-color: transparent;
  color: var(--text-color-light);
  border: 2px solid var(--text-color-light);
}

.page-fishing-games-popular__btn-secondary:hover {
  background-color: var(--text-color-light);
  color: var(--primary-color);
}

/* Light Background Sections */
.page-fishing-games-popular__light-bg {
  background-color: var(--background-color-page);
  color: var(--text-color-dark);
  padding: 60px 0;
}

/* Dark Background Sections */
.page-fishing-games-popular__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 60px 0;
}

.page-fishing-games-popular__dark-bg .page-fishing-games-popular__section-title,
.page-fishing-games-popular__dark-bg .page-fishing-games-popular__section-description {
  color: var(--text-color-light);
}

.page-fishing-games-popular__dark-bg .page-fishing-games-popular__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: var(--text-color-light);
}

.page-fishing-games-popular__dark-bg .page-fishing-games-popular__card .page-fishing-games-popular__game-title a {
  color: var(--text-color-light);
}

.page-fishing-games-popular__dark-bg .page-fishing-games-popular__card .page-fishing-games-popular__btn-primary {
  background-color: var(--button-register-bg);
  border-color: var(--button-register-bg);
  color: var(--text-color-light);
}

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

.page-fishing-games-popular__feature-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-color-dark);
}

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

.page-fishing-games-popular__feature-image {
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-fishing-games-popular__game-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

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

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