/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background #0a0a0a */
  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: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(0, 0, 0, 0.8));
}

.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;
  opacity: 0.3;
}

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

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

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-casino__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a8cc2;
  border-color: #1a8cc2;
}

.page-casino__btn-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  margin-top: 15px;
}

.page-casino__btn-link:hover {
  color: #1a8cc2;
}

.page-casino__wide-button {
  min-width: 250px;
  padding: 18px 35px;
}

/* Intro Section */
.page-casino__intro-section {
  padding: 80px 0;
}

.page-casino__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for contrast */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-casino__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-casino__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-casino__card-title a:hover {
  text-decoration: underline;
}

.page-casino__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__card-button {
  margin-top: auto; /* Push button to bottom */
}

/* Guide Section */
.page-casino__guide-section {
  padding: 80px 0;
}

.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-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-casino__step-icon {
  font-size: 2.5em;
  color: #26A9E0;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* Promo Section */
.page-casino__promo-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
}

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

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
}

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

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

.page-casino__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.page-casino__app-image-wrapper {
  flex: 1 1 40%;
  max-width: 400px;
}

.page-casino__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__app-text-content {
  flex: 1 1 50%;
  max-width: 600px;
  color: #ffffff;
  text-align: left;
}

.page-casino__app-subtitle {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-casino__app-feature {
  font-size: 1.1em;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-casino__app-feature::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

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

.page-casino__faq-list {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.3);
}

.page-casino__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  font-weight: bold;
  margin-left: 15px;
}

.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-answer p {
  margin: 0;
  padding-bottom: 20px;
}

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

.page-casino__faq-item.active .page-casino__faq-question {
  border-bottom: none;
}

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

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

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

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons,
  .page-casino__app-buttons,
  .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__game-cards,
  .page-casino__steps-grid,
  .page-casino__promo-grid,
  .page-casino__security-features {
    grid-template-columns: 1fr;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.95em;
  }
  .page-casino__card,
  .page-casino__step-item,
  .page-casino__feature-item,
  .page-casino__faq-item {
    padding: 20px;
  }
  .page-casino__app-image-wrapper {
    max-width: 100%;
    flex: none;
  }
  .page-casino__app-text-content {
    max-width: 100%;
    flex: none;
    text-align: center;
  }
  .page-casino__app-subtitle {
    font-size: 1.5em;
  }
  .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,
  .page-casino__hero-section,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__cta-buttons,
  .page-casino__app-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-casino__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@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__app-feature {
    font-size: 0.95em;
  }
  .page-casino__faq-title {
    font-size: 1.1em;
  }
}