/* style/casino.css */

/* --- General Styles for page-casino --- */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, will be overridden by section-specific */
  background-color: var(--bg-color); /* From shared.css */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-casino__text-block {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #11A84E; /* Primary color */
  border: 2px solid #11A84E;
}

.page-casino__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

.page-casino__btn-text-link {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-casino__btn-text-link:hover {
    color: #F2C14E; /* Gold color */
    text-decoration: underline;
}

.page-casino__btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Image styles */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific Section Styles */

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #08160F; /* Background color */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
  max-height: 700px; /* Limit height on larger screens */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -150px; /* Pull content up over the image slightly, but not overlay */
  padding: 0 20px;
  max-width: 900px;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
  padding-top: 50px;
  padding-bottom: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__main-title {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-casino__hero-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* About Section */
.page-casino__about-section {
  background-color: #08160F; /* Background color */
  padding: 60px 0;
}

.page-casino__about-section .page-casino__section-title {
  color: #F2FFF6; /* Text Main */
}

.page-casino__about-section .page-casino__text-block {
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main for dark background */
}

.page-casino__games-section .page-casino__section-title {
  color: #F2FFF6; /* Text Main */
}

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

.page-casino__card {
  background-color: #08160F; /* Background color */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #1E3A2A; /* Divider color */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-casino__card-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
}

.page-casino__promotions-section .page-casino__section-title {
  color: #F2FFF6; /* Text Main */
}

.page-casino__promotions-section .page-casino__text-block {
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__promo-item {
  display: flex;
  align-items: flex-start;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  border: 1px solid #1E3A2A; /* Divider color */
}

.page-casino__promo-icon {
  flex-shrink: 0;
  margin-right: 20px;
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: rgba(34, 199, 104, 0.2); /* Auxiliary color with opacity */
  overflow: hidden;
}

.page-casino__promo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.page-casino__promo-title {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__promo-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Benefits Section */
.page-casino__benefits-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main for dark background */
}

.page-casino__benefits-section .page-casino__section-title {
  color: #F2FFF6; /* Text Main */
}

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

.page-casino__benefit-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E3A2A; /* Divider color */
}

.page-casino__benefit-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-casino__benefit-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* How to Join Section */
.page-casino__how-to-join-section {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
}

.page-casino__how-to-join-section .page-casino__section-title {
  color: #F2FFF6; /* Text Main */
}

.page-casino__steps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__step-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 25px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  border: 1px solid #1E3A2A; /* Divider color */
}

.page-casino__step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #11A84E; /* Primary color */
  color: #F2FFF6; /* Text Main */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(17, 168, 78, 0.4);
}

.page-casino__step-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__step-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

.page-casino__faq-section .page-casino__section-title {
  color: #F2FFF6; /* Text Main */
}

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

.page-casino__faq-item {
  background-color: #08160F; /* Background color */
  border: 1px solid #1E3A2A; /* Divider color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-casino__faq-item summary:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Auxiliary color with opacity */
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-casino__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6; /* Text Main */
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  color: #57E38D; /* Glow color */
  margin-left: 15px;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-casino__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-casino__faq-answer p {
  margin-bottom: 10px;
}

.page-casino__faq-link {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-casino__faq-link:hover {
    color: #F2C14E; /* Gold color */
    text-decoration: underline;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Background color */
}

.page-casino__cta-final-section .page-casino__section-title {
  color: #F2FFF6; /* Text Main */
}

.page-casino__cta-final-section .page-casino__text-block {
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-casino__cta-buttons--large .page-casino__btn-primary,
.page-casino__cta-buttons--large .page-casino__btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* --- Responsive Styles --- */

/* Tablet & Mobile */
@media (max-width: 992px) {
  .page-casino__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-casino__hero-content {
    margin-top: -100px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .page-casino__main-title {
    font-size: 2.2em;
  }

  .page-casino__hero-description {
    font-size: 1.1em;
  }

  .page-casino__game-cards,
  .page-casino__promo-list,
  .page-casino__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-casino__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-casino__step-number {
    margin-bottom: 20px;
  }

  .page-casino__promo-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-casino__promo-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-casino__text-block,
  .page-casino__hero-description {
    font-size: 1em;
  }

  .page-casino__hero-content {
    margin-top: -80px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__main-title {
    font-size: 1.8em;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
  }

  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-casino__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-section {
    padding-top: 10px !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-casino__hero-image {
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-casino__promo-item,
  .page-casino__benefit-card,
  .page-casino__step-item,
  .page-casino__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-casino__faq-item summary {
    padding: 15px 20px;
  }
  
  .page-casino__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Color Contrast Enforcement */
/* Sections with dark backgrounds */
.page-casino__hero-section,
.page-casino__about-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__how-to-join-section,
.page-casino__faq-section,
.page-casino__cta-final-section {
    background-color: #08160F; /* Background color */
    color: #F2FFF6; /* Text Main */
}

/* Specific dark background overrides */
.page-casino__games-section,
.page-casino__faq-section {
    background-color: #11271B; /* Card BG */
}

.page-casino__benefits-section {
    background-color: #0A4B2C; /* Deep Green */
}

/* Text colors for specific elements on dark backgrounds */
.page-casino__section-title,
.page-casino__main-title,
.page-casino__card-title,
.page-casino__promo-title,
.page-casino__benefit-title,
.page-casino__step-title,
.page-casino__faq-qtext {
    color: #F2FFF6; /* Text Main */
}

.page-casino__hero-description,
.page-casino__text-block,
.page-casino__card-description,
.page-casino__promo-description,
.page-casino__benefit-description,
.page-casino__step-description,
.page-casino__faq-answer {
    color: #A7D9B8; /* Text Secondary */
}

/* Card background and border */
.page-casino__card,
.page-casino__promo-item,
.page-casino__benefit-card,
.page-casino__step-item,
.page-casino__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #1E3A2A; /* Divider color */
}

.page-casino__faq-item summary {
    background-color: #08160F; /* Background color */
}

/* Buttons color already defined with contrast */