/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is from shared.css */
}

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

.page-casino__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-casino__section:first-of-type {
  padding-top: 120px; /* Adjust for fixed header */
}

.page-casino__dark-section {
  background-color: #003366; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-casino__heading {
  font-size: 36px;
  color: #FFD700; /* Gold color for headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-casino__sub-heading {
  font-size: 28px;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-casino__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-casino__paragraph a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-casino__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-casino__list-item {
  font-size: 18px;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-casino__list-item::before {
  content: '⚡'; /* Unicode lightning bolt */
  position: absolute;
  left: 0;
  color: #FFD700;
  font-size: 18px;
  line-height: 1.6;
}

.page-casino__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.page-casino__btn-primary {
  background: #FFD700;
  color: #003366; /* Dark text for gold background */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  background: #e6c200;
  color: #002244;
}

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

.page-casino__btn-secondary:hover {
  background: #002244;
  border-color: #e6c200;
}

/* HERO Section Styles */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: -120px; /* Negative margin to pull hero up under fixed header */
}

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

.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 Styles */
.page-casino__products-section {
  width: 100%;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.3); /* Slightly transparent dark background */
}

.page-casino__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  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%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Light transparent background for cards */
  border: 3px solid #ffd700; /* Golden border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.page-casino__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-casino__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grid for Quick Access and Blog */
.page-casino__grid {
  display: grid;
  gap: 20px;
}

.page-casino__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-casino__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styles */
.page-casino__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__card-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-casino__card-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Game Categories Section */
.page-casino__game-category {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-casino__game-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-casino__game-title {
  font-size: 26px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-casino__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-casino__image--large {
  max-height: 450px;
  object-fit: cover;
}

.page-casino__image--medium {
  max-height: 350px;
  object-fit: cover;
}

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

.page-casino__feature-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-casino__feature-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-casino__feature-description {
  font-size: 16px;
  color: #cccccc;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 30px;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.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 20px;
  opacity: 0;
  color: #cccccc;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(0, 51, 102, 0.7); /* Darker background for answer */
  border-radius: 0 0 5px 5px;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366; /* Main brand color for question */
  border: 1px solid rgba(255, 215, 0, 0.5);
  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: #002244;
  border-color: #FFD700;
}

.page-casino__faq-question:active {
  background: #001122;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

/* Blog Section */
.page-casino__blog-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__blog-title {
  font-size: 20px;
  color: #FFD700;
  padding: 15px;
  margin-bottom: 0;
  font-weight: 600;
}

.page-casino__blog-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-casino__blog-excerpt {
  font-size: 16px;
  color: #cccccc;
  padding: 0 15px 15px;
}

.page-casino__blog-date {
  font-size: 14px;
  color: #999999;
  padding: 0 15px 15px;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids vertically stacked */
  }
  
  .page-casino__products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-casino__heading {
    font-size: 32px;
  }

  .page-casino__sub-heading {
    font-size: 24px;
  }

  .page-casino__paragraph, .page-casino__list-item, .page-casino__card-description, .page-casino__feature-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-casino__section:first-of-type {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
  }

  .page-casino__container {
    padding: 30px 15px;
  }

  .page-casino__section {
    padding: 40px 0;
  }

  .page-casino__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-casino__sub-heading {
    font-size: 22px;
  }

  .page-casino__paragraph, .page-casino__list-item, .page-casino__card-description, .page-casino__feature-description {
    font-size: 16px;
  }

  .page-casino__list-item::before {
    font-size: 16px;
  }

  .page-casino__btn {
    padding: 10px 20px;
    font-size: 15px;
  }

  /* HERO Section Mobile */
  .page-casino__hero-section {
    margin-top: -100px; /* Mobile negative margin */
  }

  .page-casino__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Products Section Mobile */
  .page-casino__products-section {
    padding: 40px 15px;
  }
  
  .page-casino__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids vertically stacked */
    gap: 15px;
  }
  
  .page-casino__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-casino__products-grid--small .page-casino__product-card {
    aspect-ratio: 1 / 1;
  }
  
  .page-casino__products-grid--small .page-casino__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  
  .page-casino__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .page-casino__products-grid--large .page-casino__product-card {
    aspect-ratio: 1 / 1;
  }
  
  .page-casino__products-grid--large .page-casino__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .page-casino__grid--3-cols, .page-casino__grid--2-cols {
    grid-template-columns: 1fr;
  }

  .page-casino__card, .page-casino__blog-card, .page-casino__feature-item {
    padding: 20px;
  }

  .page-casino__card-title {
    font-size: 20px;
  }

  .page-casino__game-title {
    font-size: 24px;
  }

  .page-casino__blog-title {
    font-size: 18px;
  }

  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-casino__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and containers are responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__products-section,
  .page-casino__products-container,
  .page-casino__product-card,
  .page-casino__blog-card,
  .page-casino__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__hero-section .page-casino__hero-container, .page-casino__hero-section .page-casino__hero-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}