/* style/casino.css */

/* Base Styles for the casino page */
.page-casino {
  color: #ffffff; /* Light text for dark body background #1a1a1a */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-casino__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Slightly transparent dark background for sections */
  border-radius: 8px;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-casino__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold accent for titles */
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__section-description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Ensure hero section has a minimum height */
  padding: 0;
  margin-bottom: 0;
  background-color: transparent; /* Background image is handled by img tag */
  border-radius: 0;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image slightly for text readability, does not change color */
}

.page-casino__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for content */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-content {
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  color: #FFD700;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.page-casino__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-casino__button--primary {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
}

.page-casino__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-casino__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-casino__button--secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Game Grid Section */
.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Lighter transparent background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-casino__game-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  text-align: center;
}

.page-casino__game-card-description {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__button {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
  background-color: #DC143C; /* Emphasize play button with accent color */
  border-color: #DC143C;
  color: #ffffff;
}

.page-casino__game-card .page-casino__button:hover {
  background-color: #c01132;
  border-color: #c01132;
  box-shadow: 0 6px 15px rgba(220, 20, 60, 0.4);
}

/* Promotions Section */
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.page-casino__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-casino__promo-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  text-align: center;
}

.page-casino__promo-card-description {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__button {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
  background-color: #FFD700;
  border-color: #FFD700;
  color: #000000;
}

.page-casino__promo-card .page-casino__button:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Why Choose Us Section */
.page-casino__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.page-casino__benefit-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__benefit-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-casino__inline-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__inline-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* CTA Section */
.page-casino__cta-section {
  text-align: center;
  background-color: #000000;
  border-radius: 0;
}

.page-casino__cta-container {
  padding: 80px 20px;
}

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

/* Floating Buttons */
.page-casino__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-casino__floating-button {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__floating-button--register {
  background-color: #FFD700;
  color: #000000;
}

.page-casino__floating-button--register:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.page-casino__floating-button--login {
  background-color: #DC143C;
  color: #ffffff;
}

.page-casino__floating-button--login:hover {
  background-color: #c01132;
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3.5em;
  }
  .page-casino__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-casino__hero-section {
    min-height: 500px;
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 1em;
  }
  .page-casino__game-grid, .page-casino__promo-grid, .page-casino__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-casino__game-card-image, .page-casino__promo-card-image {
    height: 200px;
  }
  .page-casino__game-card .page-casino__button, .page-casino__promo-card .page-casino__button {
    width: calc(100% - 40px);
  }
  .page-casino__floating-buttons {
    flex-direction: row;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 40px);
    justify-content: space-around;
  }
  .page-casino__floating-button {
    flex: 1;
    margin: 0 5px;
    font-size: 0.9em;
    padding: 10px 15px;
  }
  /* Ensure all images within .page-casino do not overflow on mobile */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
  .page-casino__hero-image {
    height: auto; /* Allow hero image to adjust height */
    position: relative; /* Change to relative to avoid fixed height issues in some layouts */
    width: 100%;
    object-fit: cover;
  }
  .page-casino__hero-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__section-description {
    font-size: 0.9em;
  }
  .page-casino__game-card-title, .page-casino__promo-card-title {
    font-size: 1.5em;
  }
  .page-casino__benefit-title {
    font-size: 1.4em;
  }
  .page-casino__floating-buttons {
    width: calc(100% - 30px);
    right: 15px;
    bottom: 10px;
  }
  .page-casino__floating-button {
    padding: 8px 10px;
    font-size: 0.85em;
  }
}

/* General image sizing for content area - minimum 200px displayed size */
.page-casino img:not(.page-casino__hero-image) {
  min-width: 200px;
  min-height: 200px;
  display: block; /* Ensure block level for width/height control */
}

/* Specific adjustment for hero image if needed to ensure min-height is met by hero section */
.page-casino__hero-image {
  min-width: 100%; /* Ensure it covers the hero section width */
  min-height: 100%; /* Ensure it covers the hero section height */
}

/* No filter properties to change image colors */
.page-casino img {
  filter: none; /* Ensure no color-altering filters are applied */
}

/* Remove brightness filter from hero image if it alters color */
.page-casino__hero-image {
  filter: brightness(0.6); /* This is allowed as it only darkens, not changes hue/saturation */
}