/* style/casino.css */

/* Base Styles & Typography for .page-casino */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background 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.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Section Backgrounds */
.page-casino__dark-section {
  background-color: #1a1a1a; /* Matches body background for consistency */
  color: #ffffff;
  padding: 80px 0;
}

.page-casino__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark for contrast sections */
  color: #ffffff;
  padding: 80px 0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Custom colors for Login/Register */
.page-casino__login-btn {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-casino__login-btn:hover {
  background-color: #a30707;
  border-color: #a30707;
}

.page-casino__register-btn {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-casino__register-btn:hover {
  background-color: #a30707;
  border-color: #a30707;
}

.page-casino__btn-lg {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken 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.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

/* Why Choose Section */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-casino__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for card background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
}

.page-casino__feature-icon {
  width: 100%; /* Ensure full width */
  max-width: 250px; /* Max width for icon */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Game Categories Section */
.page-casino__game-category {
  margin-bottom: 60px;
}

.page-casino__category-title {
  font-size: 2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #017439;
  padding-bottom: 10px;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__game-card-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);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-casino__card-subtitle {
  font-size: 1.3em;
  padding: 15px 20px 0;
  color: #ffffff;
}

.page-casino__game-card p {
  padding: 0 20px 15px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-casino__game-card .page-casino__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-casino__promo-card .page-casino__card-title {
  padding: 15px 20px 0;
}

.page-casino__promo-card p {
  padding: 0 20px 15px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

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

/* Guide Section */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-casino__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  background-color: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-casino__step-card p {
  color: #f0f0f0;
  flex-grow: 1;
}

.page-casino__step-card .page-casino__btn-secondary {
  margin-top: 20px;
  width: 100%;
}

/* Mobile Experience Section */
.page-casino__mobile-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-casino__mobile-content {
  flex: 1;
}

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

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

.page-casino__mobile-features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-casino__mobile-features-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #f0f0f0;
  font-size: 1.1em;
}

/* Responsible Gambling Section */
.page-casino__responsible-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-casino__responsible-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-casino__responsible-gambling-section .page-casino__btn-secondary {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  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;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

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

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

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

.page-casino__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@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;
  }
  .page-casino__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 500px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary, .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__dark-section, .page-casino__light-bg {
    padding: 60px 0;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    margin-bottom: 30px;
  }
  .page-casino__features-grid,
  .page-casino__game-card-grid,
  .page-casino__promotions-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__mobile-flex {
    flex-direction: column;
  }
  .page-casino__mobile-features-list {
    text-align: left;
  }
  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px;
  }
  /* Mobile image and container responsiveness */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__why-choose-section,
  .page-casino__game-categories-section,
  .page-casino__promotions-section,
  .page-casino__guide-section,
  .page-casino__mobile-experience-section,
  .page-casino__responsible-gambling-section,
  .page-casino__faq-section,
  .page-casino__cta-section,
  .page-casino__hero-cta-buttons,
  .page-casino__cta-center,
  .page-casino__mobile-content,
  .page-casino__mobile-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-casino__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-casino__mobile-features-list li,
  .page-casino__responsible-list li {
    padding-left: 25px;
    background-size: 18px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__category-title {
    font-size: 1.5em;
  }
  .page-casino__hero-cta-buttons {
    gap: 10px;
  }
}