/* style/casino.css */
/* 
  BEM Naming Convention: .page-casino__element-name
  All styles scoped within .page-casino
  No global selectors (body, html, *)
  No descendant selectors (e.g., .page-casino .hero-section)
  Fixed header offset: Assumed shared.css handles body padding-top, so hero-section padding-top is 0.
  Body background color: #000 (dark), so main text color is #ffffff.
*/

.page-casino {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content background is transparent to show body's #000 */
}

/* --- Utility classes for layout --- */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-casino__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #1a1a1a; /* Even lighter dark background for contrast */
  color: #ffffff;
}

/* --- Typography --- */
.page-casino__main-title {
  font-size: 48px;
  color: #FFD700; /* Gold for main title */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__section-title {
  font-size: 36px;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.3;
}

.page-casino__sub-title {
  font-size: 28px;
  color: #FFD700; /* Gold for sub titles */
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-casino__game-title {
  font-size: 24px;
  color: #FFD700; /* Gold for game titles */
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-casino__promo-title, 
.page-casino__news-title {
  font-size: 22px;
  color: #FFD700; /* Gold for card titles */
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-casino__promo-title a,
.page-casino__news-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-casino__description,
.page-casino__section-description,
.page-casino__game-text,
.page-casino__promo-text,
.page-casino__text,
.page-casino__news-date,
.page-casino__news-excerpt,
.page-casino p,
.page-casino li {
  font-size: 18px;
  line-height: 1.7;
  color: #ffffff; /* White text for readability on dark background */
  margin-bottom: 15px;
}

.page-casino__news-date {
  font-size: 14px;
  color: #aaaaaa;
  margin-bottom: 10px;
}

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

.page-casino__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #000000; /* Black text for contrast */
  border: 2px solid #FFD700;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
}

.page-casino__btn-small {
  padding: 8px 18px;
  font-size: 16px;
}

.page-casino__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assumed shared.css handles body padding-top, so hero-section padding-top is 0 */
  margin-top: 0;
  overflow: hidden; /* Ensure no image overflow */
}

.page-casino__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.page-casino__hero-image {
  width: 100%;
  margin: 0;
}

.page-casino__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* --- Products Section (Game Showcase) --- */
.page-casino__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #000000; /* Explicit dark background */
  box-sizing: border-box;
}

.page-casino__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small cards + 2 large cards */
  gap: 20px;
}

.page-casino__products-grid {
  display: grid;
  gap: 20px;
}

.page-casino__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-casino__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-casino__product-card {
  width: 100%;
  max-width: 300px; /* Max width for each card */
  border-radius: 0; /* No rounded corners */
  overflow: hidden;
  background-color: transparent; /* No background */
  box-shadow: none; /* No shadow */
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid cell */
  align-self: center;
}

.page-casino__product-card:hover {
  transform: translateY(-5px); /* Slight lift on hover */
}

.page-casino__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__product-card-image {
  width: 100%;
  max-width: 300px; /* Max width for image container */
  overflow: hidden;
}

.page-casino__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain original aspect ratio */
  display: block;
}

/* --- Introduction Section --- */
.page-casino__introduction-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  text-align: center;
}

.page-casino__introduction-section .page-casino__description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.page-casino__game-category {
  background-color: #1a1a1a; /* Darker background for game categories */
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-casino__game-category .page-casino__btn-primary {
  margin-top: 20px;
}


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

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

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

.page-casino__promo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__promo-card .page-casino__promo-title {
  padding: 0 20px;
}

.page-casino__promo-card .page-casino__promo-text {
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin-top: 20px;
  align-self: center;
}

/* --- Security & Support Section --- */
.page-casino__security-support-section {
  padding: 80px 0;
  background-color: #000000;
}

.page-casino__security-content,
.page-casino__support-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-casino__security-info,
.page-casino__support-info {
  flex: 1;
}

.page-casino__security-image,
.page-casino__support-image {
  flex: 1;
  min-width: 200px; /* Minimum width for images */
}

.page-casino__security-image img,
.page-casino__support-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for FAQ item */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #ffffff; /* White text for answer */
  background-color: #2a2a2a; /* Slightly different dark background */
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background-color: #2a2a2a;
  border-radius: 0 0 5px 5px;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #1a1a1a;
  border: 1px solid #333333; /* Darker border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background-color: #2a2a2a;
  border-color: #555555;
}

.page-casino__faq-question:active {
  background-color: #3a3a3a;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for question title */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* --- News Section --- */
.page-casino__news-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-casino__news-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.page-casino__news-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__news-item .page-casino__news-title {
  padding: 0 20px;
}

.page-casino__news-item .page-casino__news-date {
  padding: 0 20px;
  font-size: 14px;
  color: #aaaaaa;
}

.page-casino__news-item .page-casino__news-excerpt {
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__news-item .page-casino__btn-secondary {
  margin-top: 20px;
  align-self: flex-start;
  margin-left: 20px;
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__sub-title {
    font-size: 24px;
  }
  .page-casino__game-title {
    font-size: 20px;
  }
  .page-casino__promo-title,
  .page-casino__news-title {
    font-size: 20px;
  }
  .page-casino__description,
  .page-casino__section-description,
  .page-casino__game-text,
  .page-casino__promo-text,
  .page-casino__text,
  .page-casino p,
  .page-casino li {
    font-size: 16px;
  }

  .page-casino__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
  }

  .page-casino__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
  }

  .page-casino__products-grid--large {
    grid-template-columns: repeat(2, 1fr); /* 1x2 grid */
  }

  .page-casino__security-content,
  .page-casino__support-content {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__security-info,
  .page-casino__support-info {
    order: 2; /* Put text below image on mobile */
  }

  .page-casino__security-image,
  .page-casino__support-image {
    order: 1;
    margin-bottom: 20px;
  }
}