/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-casino__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-play {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__btn-play {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 0.95rem;
  margin-top: 15px;
}

.page-casino__btn-play:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-casino__text-link {
  color: #017439;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-casino__text-link:hover {
  color: #005f2c;
}

/* Color contrast enforcement */
.page-casino__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-casino__light-bg {
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__section-description {
  color: #333333;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Explicitly set for header offset */
  padding-bottom: 60px; /* Add some bottom padding for balance */
  box-sizing: border-box;
}

.page-casino__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken background image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-casino__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
}

.page-casino__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__about-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-casino__about-image-wrapper {
  text-align: center;
}

.page-casino__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Game Categories Section */
.page-casino__game-categories {
  padding: 80px 0;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__game-card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-casino__game-card-title a:hover {
  color: #017439;
}

.page-casino__game-card-description {
  font-size: 0.95rem;
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1; /* Allows description to take available space */
}

/* VIP Program Section */
.page-casino__vip-program {
  padding: 80px 0;
}

.page-casino__vip-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__vip-image-wrapper {
  text-align: center;
}

.page-casino__vip-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__vip-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-casino__vip-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-casino__vip-list li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Security and Fairness Section */
.page-casino__security-fairness {
  padding: 80px 0;
}

.page-casino__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-casino__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-casino__security-item-title {
  font-size: 1.4rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__security-item-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Mobile Experience Section */
.page-casino__mobile-experience {
  padding: 80px 0;
}

.page-casino__mobile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__mobile-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-casino__mobile-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-casino__mobile-list li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.page-casino__mobile-cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.page-casino__mobile-image-wrapper {
  text-align: center;
}

.page-casino__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Payment Methods Section */
.page-casino__payment-methods {
  padding: 80px 0;
}

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

.page-casino__payment-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-casino__payment-item-title {
  font-size: 1.4rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__payment-item-description {
  font-size: 0.95rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
  padding: 80px 0;
}

.page-casino__responsible-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  color: #333333;
}

.page-casino__responsible-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-casino__responsible-gaming p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: 1.05rem;
  color: #333333;
}


/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question-text {
  flex-grow: 1;
  text-align: left;
}

.page-casino__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #017439;
}

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

.page-casino__faq-answer p {
  padding-bottom: 15px;
  font-size: 1rem;
}

.page-casino__faq-answer .page-casino__text-link {
  display: inline-block;
  margin-bottom: 15px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
  padding-bottom: 0; /* Adjust padding for text-link */
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or similar */
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3rem;
  }
  .page-casino__section-title {
    font-size: 2rem;
  }
  .page-casino__about-grid,
  .page-casino__vip-content,
  .page-casino__mobile-content {
    grid-template-columns: 1fr;
  }
  .page-casino__about-image-wrapper,
  .page-casino__vip-image-wrapper,
  .page-casino__mobile-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-casino__hero-title {
    font-size: 2.2rem;
  }
  .page-casino__hero-description {
    font-size: 1.1rem;
  }
  .page-casino__hero-cta-buttons,
  .page-casino__mobile-cta-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Added for general button padding */
    padding-right: 15px; /* Added for general button padding */
  }

  /* Image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsiveness for images/videos/buttons */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__game-categories,
  .page-casino__vip-program,
  .page-casino__security-fairness,
  .page-casino__mobile-experience,
  .page-casino__payment-methods,
  .page-casino__responsible-gaming,
  .page-casino__faq-section,
  .page-casino__cta-section,
  .page-casino__hero-cta-buttons,
  .page-casino__mobile-cta-buttons,
  .page-casino__cta-buttons,
  .page-casino__game-card,
  .page-casino__security-item,
  .page-casino__payment-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px; /* Add padding to prevent content touching edges */
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-casino__game-card-image {
    height: auto !important; /* Allow height to adjust */
  }

  .page-casino__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px;
    padding-bottom: 0;
  }

  .page-casino__responsible-list,
  .page-casino__responsible-gaming p {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .page-casino__responsible-list li {
    margin-left: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8rem;
  }
  .page-casino__section-title {
    font-size: 1.6rem;
  }
  .page-casino__hero-description,
  .page-casino__section-description,
  .page-casino__about-text p,
  .page-casino__game-card-description,
  .page-casino__vip-text p,
  .page-casino__vip-list li,
  .page-casino__security-item-description,
  .page-casino__mobile-text p,
  .page-casino__mobile-list li,
  .page-casino__payment-item-description,
  .page-casino__responsible-gaming p,
  .page-casino__responsible-list li,
  .page-casino__faq-answer p {
    font-size: 0.95rem;
  }
}