/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default 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.5em;
  color: #FFFF00; /* Register/Login font color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-casino__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 600px;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  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.4); /* Darken image for text readability */
}

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

.page-casino__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for H1 */
  line-height: 1.2;
  font-weight: 900;
}

.page-casino__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  font-weight: 300;
}

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

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

.page-casino__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
  background: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-casino__btn-secondary:hover {
  background: #FFFF00;
  color: #C30808; /* Register/Login color */
}

.page-casino__btn-text {
  display: inline-block;
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: #017439;
}

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

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-icon {
  width: 250px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background: #000000; /* Main dark background */
  color: #ffffff;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-casino__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__game-card-title {
  font-size: 1.8em;
  margin: 20px 0 10px;
}

.page-casino__game-link {
  color: #FFFF00; /* Register/Login font color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-casino__game-card-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #f0f0f0;
}

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

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

.page-casino__live-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-casino__live-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

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

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

.page-casino__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-casino__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__promo-card-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
}

.page-casino__promo-link {
  color: #FFFF00; /* Register/Login font color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promo-link:hover {
  color: #017439;
  text-decoration: underline;
}

.page-casino__promo-card-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #f0f0f0;
}

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

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

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

.page-casino__step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Mobile App Section */
.page-casino__mobile-app-section {
  padding: 80px 0;
  background: #000000;
  color: #ffffff;
}

.page-casino__mobile-app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-casino__mobile-app-content {
  flex: 1;
  text-align: left;
}

.page-casino__mobile-app-content .page-casino__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-casino__mobile-app-content .page-casino__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

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

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

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

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

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

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

.page-casino__faq-title {
  margin: 0;
  color: inherit;
}

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

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

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

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

.page-casino__faq-answer a {
  color: #FFFF00; /* Register/Login font color for links */
  text-decoration: underline;
}

.page-casino__faq-answer a:hover {
  color: #017439;
}

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

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

.page-casino__cta-title {
  font-size: 2.8em;
  color: #FFFF00; /* Register/Login font color for CTA title */
  margin-bottom: 20px;
}

.page-casino__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__mobile-app-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__mobile-app-content {
    text-align: center;
  }
  .page-casino__mobile-app-content .page-casino__section-title,
  .page-casino__mobile-app-content .page-casino__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 60px 15px;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__text-block {
    font-size: 1em;
  }
  .page-casino__features-grid,
  .page-casino__game-cards-grid,
  .page-casino__promo-cards-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__feature-icon {
    width: 180px;
    height: 150px;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 180px;
  }
  .page-casino__live-video-wrapper {
    padding-bottom: 75%; /* 4:3 Aspect Ratio for better mobile fit */
  }
  .page-casino__cta-title {
    font-size: 2em;
  }
  .page-casino__cta-description {
    font-size: 1em;
  }
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino video,
  .page-casino__live-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__live-video-wrapper,
  .page-casino__mobile-app-flex,
  .page-casino__hero-cta {
    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; /* Ensure proper spacing */
  }
  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-casino__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__cta-title {
    font-size: 1.8em;
  }
  .page-casino__hero-cta {
    flex-direction: column;
  }
}