/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0d1117; /* Matches body background */
}

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

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding-top to account for fixed header */
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-casino__hero-content {
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-casino__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* --- General Section Styling --- */
.page-casino__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-casino__dark-section {
  background-color: #1A202C;
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__light-bg {
  background-color: #0d1117;
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #e0e0e0;
}

/* --- About Section --- */
.page-casino__about-section .page-casino__text-block {
  text-align: justify;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-casino__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-casino__card-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__btn-text {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  padding: 10px 15px 15px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: #e0b800;
  text-decoration: underline;
}

/* --- Promotions Section --- */
.page-casino__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-casino__promo-image {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  height: auto; /* Ensure aspect ratio */
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 300px;
}

.page-casino__promo-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  position: relative;
  padding-left: 40px;
}

.page-casino__promo-item::before {
  content: '★';
  color: #FFD700;
  position: absolute;
  left: 15px;
  font-size: 1.2em;
  top: 50%;
  transform: translateY(-50%);
}

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

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

.page-casino__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-casino__feature-card .page-casino__card-title {
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__feature-card .page-casino__card-description {
  color: #cccccc;
  font-size: 1em;
}

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

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

.page-casino__mobile-text {
  flex: 1;
  min-width: 300px;
}

.page-casino__mobile-text .page-casino__btn-primary {
  margin-top: 20px;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  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;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #1A202C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

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

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

.page-casino__cta-section .page-casino__cta-buttons {
  margin-top: 40px;
}

/* --- Floating Buttons (Mobile Only) --- */
.page-casino__floating-buttons {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  gap: 15px;
  padding: 10px;
  background-color: rgba(26, 32, 44, 0.9);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__floating-btn {
  display: block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__floating-register {
  background-color: #FFD700;
  color: #1A202C;
}

.page-casino__floating-register:hover {
  background-color: #e0b800;
}

.page-casino__floating-login {
  background-color: transparent;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.page-casino__floating-login:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__promo-content,
  .page-casino__mobile-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-casino__promo-image,
  .page-casino__mobile-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 450px;
  }
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.9em;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }
  .page-casino__game-grid,
  .page-casino__security-features {
    grid-template-columns: 1fr;
  }
  .page-casino__promo-item {
    font-size: 1em;
  }
  .page-casino__floating-buttons {
    display: flex; /* Show floating buttons on mobile */
    width: calc(100% - 40px);
    max-width: 400px;
  }

  /* Responsive image adjustments */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__feature-card,
  .page-casino__promo-content,
  .page-casino__mobile-content,
  .page-casino__faq-item {
    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,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__mobile-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  .page-casino__faq-item.active .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__hero-section {
    min-height: 400px;
  }
}