/* style/casino.css */

/* Base styles for the casino page */
.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 15px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-casino__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for body text */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__section-description--light {
  color: #ffffff;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-casino__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
}

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

.page-casino__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 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: #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: #9c0606;
  border-color: #9c0606;
}

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

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

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color */
}

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

.page-casino__game-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-casino__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__game-button {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__game-button:hover {
  background-color: #9c0606;
}

/* Live Experience Section */
.page-casino__live-experience-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

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

.page-casino__video-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none; /* Allow click to pass through to video/link */
  z-index: 10;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-casino__promo-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__promo-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promo-title a:hover {
  color: #ffffff;
}

.page-casino__promo-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__promo-button {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__promo-button:hover {
  background-color: #9c0606;
}

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

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-casino__security-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__security-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slightly brighten for visibility on dark background, not changing hue */
}

.page-casino__security-heading {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__security-text {
  color: #f0f0f0;
  font-size: 1em;
}

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

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

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

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

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

.page-casino__faq-question h3 {
  margin: 0;
  color: #ffffff; /* Ensure question text is white */
}

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

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-casino__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0; /* Ensure answer text is light */
}

.page-casino__faq-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-casino__faq-link:hover {
  text-decoration: underline;
}

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

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

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

@media (max-width: 768px) {
  .page-casino__hero-section {
    height: 60vh;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.95em;
  }

  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__security-list {
    grid-template-columns: 1fr;
  }

  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px;
  }

  .page-casino__video-wrapper {
    margin: 20px auto;
  }

  .page-casino__video-overlay-text {
    font-size: 1.4em;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
  }

  /* Mobile specific overrides with !important */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-casino__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__hero-section {
    height: 50vh;
  }
}