/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #333 (dark), so light text */
  background-color: transparent; /* Inherit from body, which is #333 */
}

/* General container for content sections */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section titles */
.page-casino__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Text blocks */
.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for better readability on dark backgrounds */
}

/* Links within text blocks */
.page-casino__text-block a,
.page-casino__card-link {
  color: #FFFF00; /* Yellow for links to stand out on dark bg */
  text-decoration: underline;
}

.page-casino__text-block a:hover,
.page-casino__card-link:hover {
  color: #FFF;
  text-decoration: none;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-casino__hero-section.page-casino__dark-bg {
  background-color: #017439; /* Brand main color for hero */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none; /* Remove default button border */
}

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom text color for Register/Login */
}

.page-casino__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background-color: #017439; /* Brand main color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

/* Section specific styling */
.page-casino__intro-section,
.page-casino__cockfighting-section,
.page-casino__security-section,
.page-casino__cta-section {
  padding: 60px 0;
}

.page-casino__intro-section.page-casino__light-bg,
.page-casino__cockfighting-section.page-casino__light-bg,
.page-casino__security-section.page-casino__light-bg,
.page-casino__cta-section.page-casino__light-bg {
  background-color: #333333; /* Dark background for these sections */
  color: #ffffff; /* Light text for contrast */
}

.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__faq-section {
  padding: 60px 0;
}

.page-casino__games-section.page-casino__dark-bg,
.page-casino__promotions-section.page-casino__dark-bg,
.page-casino__faq-section.page-casino__dark-bg {
  background-color: #017439; /* Brand main color for these sections */
  color: #ffffff;
}

/* Games Grid */
.page-casino__games-grid,
.page-casino__promotions-grid,
.page-casino__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card,
.page-casino__promo-card {
  background-color: #ffffff; /* Light background for cards */
  color: #333333; /* Dark text for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__game-card:hover,
.page-casino__promo-card:hover {
  transform: translateY(-5px);
}

.page-casino__game-image,
.page-casino__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino__game-title,
.page-casino__promo-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #017439; /* Brand color for titles */
}

.page-casino__game-description,
.page-casino__promo-description {
  font-size: 1em;
  padding: 0 15px;
  flex-grow: 1; /* Make descriptions take available space */
}

.page-casino__card-link {
  display: block;
  padding: 10px 15px;
  margin-top: 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-casino__card-link:hover {
  background-color: #005f2e;
}

/* Cockfighting Video Section */
.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__video-link {
  display: block;
  line-height: 0; /* Remove extra space below video */
}

.page-casino__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-casino__video-caption {
  text-align: center;
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 10px;
}

/* Security Features */
.page-casino__feature-item {
  text-align: center;
  background-color: #017439; /* Brand color for feature items */
  color: #ffffff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-casino__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for feature titles */
}

.page-casino__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  background-color: #ffffff; /* Light background for FAQ list */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-casino__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-item:last-child {
  border-bottom: none;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #f5f5f5;
}

.page-casino__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #017439; /* Brand color for FAQ questions */
}

.page-casino__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Plus becomes an 'x' or minus rotated */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-casino__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #333333;
}

/* Call to Action Section */
.page-casino__cta-container {
  text-align: center;
  padding: 40px 20px;
  background-color: #017439; /* Brand color for CTA section */
  color: #ffffff;
  border-radius: 10px;
  margin-top: 40px;
}

.page-casino__cta-container .page-casino__section-title {
  color: #ffffff;
}

.page-casino__cta-container .page-casino__text-block {
  color: #f0f0f0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    flex-direction: column;
    padding-bottom: 60px;
  }
  .page-casino__hero-content {
    order: 2;
    padding: 0 15px;
  }
  .page-casino__hero-image-wrapper {
    position: relative;
    height: 300px;
    margin-bottom: 30px;
    order: 1;
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 1em;
  }

  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__promo-card {
    margin: 0 15px;
  }

  /* Force responsive for all images */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all videos */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive for all buttons */
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino 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;
  }
  
  /* Container for buttons in mobile */
  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* Video and Image containers responsiveness */
  .page-casino__video-wrapper,
  .page-casino__hero-image-wrapper,
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__security-features,
  .page-casino__faq-list,
  .page-casino__cta-container,
  .page-casino__container,
  .page-casino__intro-section,
  .page-casino__cockfighting-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__games-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for video section on mobile */
  .page-casino__cockfighting-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-title {
    font-size: 1.1em;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 10px 20px 15px;
  }
}