/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

/* Section common styles */
.page-casino__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Primary color for titles */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above, text below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A0A0A; /* Ensure consistent background */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for large screens */
  margin-bottom: 30px; /* Space between image and content */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  filter: none; /* Ensure no filters */
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any subtle background elements */
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em); /* Using clamp for H1 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color for main title */
  letter-spacing: -0.03em;
}

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

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping initially */
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast on gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E; /* Border color */
}

.page-casino__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111; /* Dark text on hover */
  transform: translateY(-3px);
}

/* Games Categories Section */
.page-casino__games-categories {
  padding: 80px 20px;
  background-color: #0A0A0A; /* Background */
}

.page-casino__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino__category-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-casino__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: none; /* Ensure no filters */
}

.page-casino__category-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E;
}

.page-casino__category-desc {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* Featured Games Section */
.page-casino__featured-games {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #FFF6D6;
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-casino__game-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-casino__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no filters */
}

.page-casino__game-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 15px 10px 10px 10px;
  color: #F2C14E;
}

.page-casino__game-play-btn {
  display: block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 12px 20px;
  margin: 0 15px 15px 15px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-casino__game-play-btn:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #CC991A 100%);
}

.page-casino__view-all-cta {
  text-align: center;
}

/* Promotions Section */
.page-casino__promotions {
  padding: 80px 20px;
  background-color: #0A0A0A; /* Background */
}

.page-casino__promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-casino__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no filters */
}

.page-casino__promo-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: #F2C14E;
}

.page-casino__promo-text {
  font-size: 0.95em;
  margin: 0 15px 20px 15px;
  color: #FFF6D6;
}

/* About 7JL Section */
.page-casino__about-7jl {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #FFF6D6;
}

.page-casino__about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-casino__about-text p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-casino__about-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__about-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  filter: none; /* Ensure no filters */
}

/* Game Providers Section */
.page-casino__game-providers {
  padding: 80px 20px;
  background-color: #0A0A0A; /* Background */
}

.page-casino__providers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 2x5 grid for desktop */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.page-casino__provider-logo {
  width: 100%; /* Will be constrained by grid cell */
  max-width: 167px; /* Max width for specific image size */
  height: auto;
  min-height: 127px; /* Ensure images are not too small vertically */
  object-fit: contain;
  filter: grayscale(80%) brightness(150%); /* Subtle effect for logos */
  transition: filter 0.3s ease;
}

.page-casino__provider-logo:hover {
  filter: grayscale(0%) brightness(100%);
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #FFF6D6;
}

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

.page-casino__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #F2C14E;
  font-weight: bold;
  font-size: 1.15em;
  transition: background-color 0.3s ease;
}

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

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD36B;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

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

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Use !important as required */
  padding: 15px 25px;
}

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

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
  padding: 80px 20px;
  background-color: #0A0A0A; /* Background */
}

.page-casino__responsible-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-casino__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-casino__feature-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  filter: none; /* Ensure no filters */
}

.page-casino__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E;
}

.page-casino__feature-text {
  font-size: 0.95em;
  color: #FFF6D6;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__providers-grid {
    grid-template-columns: repeat(4, 1fr); /* Adjust for tablets */
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-casino__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__games-categories,
  .page-casino__featured-games,
  .page-casino__promotions,
  .page-casino__about-7jl,
  .page-casino__game-providers,
  .page-casino__faq-section,
  .page-casino__responsible-gaming {
    padding: 60px 15px;
  }

  .page-casino__categories-grid,
  .page-casino__games-grid,
  .page-casino__promos-grid,
  .page-casino__responsible-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__about-content {
    flex-direction: column;
  }
  
  .page-casino__about-text,
  .page-casino__about-image-wrapper {
    min-width: unset; /* Remove min-width for mobile */
    width: 100%;
  }

  .page-casino__providers-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
  }

  /* Mobile image adaptation */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__games-categories,
  .page-casino__featured-games,
  .page-casino__promotions,
  .page-casino__about-7jl,
  .page-casino__game-providers,
  .page-casino__faq-section,
  .page-casino__responsible-gaming {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific image height adjustments for mobile */
  .page-casino__game-thumbnail {
    height: 180px; /* Slightly smaller for mobile */
  }
  .page-casino__promo-image {
    height: 200px;
  }
  .page-casino__feature-icon {
    width: 150px;
    height: 150px;
  }
}

/* Color Contrast Safeguards (as per instructions) */
/* Assuming body background is dark from shared.css (Black Gold theme) */
.page-casino {
  color: #FFF6D6; /* Text Main - light text on dark background */
  background-color: #0A0A0A; /* Background */
}

.page-casino__dark-section {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6;
}

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

.page-casino__card,
.page-casino__faq-item,
.page-casino__feature-item,
.page-casino__game-card,
.page-casino__promo-card {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on gold button for contrast */
}

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

.page-casino__faq-question {
  color: #F2C14E; /* Question text color */
}

.page-casino__faq-toggle {
  color: #FFD36B; /* Toggle icon color */
}

/* Ensure no filter properties on general images */
.page-casino img:not(.page-casino__provider-logo) {
  filter: none; 
}