/* style/casino.css */

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

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

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

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 15px;
  text-align: justify;
}

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

/* Color Contrast Fixes */
.page-casino__dark-section {
  background-color: #017439; /* Brand main color */
  color: #ffffff; /* White text for contrast */
  padding: 60px 0;
}

.page-casino__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
  padding: 60px 0;
}

.page-casino__dark-text {
  color: #333333;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 700px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  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); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

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

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

/* Buttons */
.page-casino__btn-register,
.page-casino__btn-login,
.page-casino__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-casino__btn-register,
.page-casino__btn-login {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
}

.page-casino__btn-primary {
  background-color: #017439; /* Brand main color */
  color: #ffffff;
}

.page-casino__btn-register:hover,
.page-casino__btn-login:hover,
.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* About Section - already styled as dark-section */
.page-casino__about-section .page-casino__section-title {
  color: #ffffff;
}

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

.page-casino__game-card {
  background: rgba(0, 0, 0, 0.05); /* Slightly transparent dark for light-bg section */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  padding-bottom: 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.page-casino__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #017439; /* Brand main color for titles in light section */
}

.page-casino__game-link {
  text-decoration: none;
  color: #017439; /* Brand main color for links in light section */
}

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

.page-casino__game-description {
  font-size: 1em;
  padding: 0 20px;
}

/* Live Casino Section */
.page-casino__live-casino-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__live-casino-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__live-casino-text {
  flex: 1;
  max-width: 50%;
}

/* Promotions Section */
.page-casino__promotions-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Mobile Section */
.page-casino__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-casino__mobile-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background: rgba(0, 0, 0, 0.05); /* Slightly transparent dark for light-bg section */
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-casino__faq-title {
  font-size: 1.2em;
  margin: 0;
}

.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(45deg);
}

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

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

/* Call to Action Section - already styled as dark-section */
.page-casino__cta-section .page-casino__section-title {
  color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2.2em;
  }
  .page-casino__live-casino-content,
  .page-casino__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__live-casino-image,
  .page-casino__live-casino-text,
  .page-casino__mobile-image,
  .page-casino__mobile-text {
    max-width: 100%;
  }
  .page-casino__live-casino-image {
    order: -1; /* Image first on mobile */
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    height: auto;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-casino__hero-cta-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-register,
  .page-casino__btn-login,
  .page-casino__btn-primary {
    width: 100% !important;
    max-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__container,
  .page-casino__hero-content,
  .page-casino__games-grid,
  .page-casino__live-casino-content,
  .page-casino__mobile-content,
  .page-casino__faq-list,
  .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__live-casino-image,
  .page-casino__mobile-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__btn-register,
  .page-casino__btn-login,
  .page-casino__btn-primary {
    font-size: 1em;
    padding: 12px 20px;
  }
}