/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css, ensuring consistency */
}

/* Fixed navigation spacing for the first content section */
.page-casino__intro-section {
  padding-top: 120px; /* Desktop padding to clear fixed header */
}

@media (max-width: 768px) {
  .page-casino__intro-section {
    padding-top: 100px; /* Mobile padding to clear fixed header */
  }
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.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 */
.page-casino__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #0a0a0a; /* Dark background for consistency */
}

.page-casino__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small cards and 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%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter 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.5);
}

.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;
}

/* General Section Styles */
.page-casino__section {
  padding: 60px 20px;
  background-color: #0a0a0a;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino__heading {
  font-size: 3em;
  color: #ffd700; /* Golden color for headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-casino__sub-heading {
  font-size: 2em;
  color: #ffd700;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-casino__paragraph {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__link-inline {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__link-inline:hover {
  color: #fff;
  text-decoration: underline;
}

/* Grid Layouts */
.page-casino__grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

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

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

/* Card Styles */
.page-casino__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

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

.page-casino__card-title {
  font-size: 1.5em;
  color: #ffd700;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-casino__dark-bg {
  background: #000080; /* Dark blue background for some cards */
  color: #ffffff; /* White text for dark blue background */
}

/* Button Styles */
.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;
  cursor: pointer;
  white-space: nowrap;
}

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

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

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

.page-casino__btn-secondary:hover {
  background: #ffd700;
  color: #000000; /* Black text on hover for golden background */
}

.page-casino__btn-centered {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 250px;
}

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

.page-casino__game-category:last-of-type {
  border-bottom: none;
}

.page-casino__game-image-wrapper {
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

/* Blog Section */
.page-casino__blog-card {
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.page-casino__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-casino__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__blog-title {
  font-size: 1.3em;
  color: #ffd700;
  margin-bottom: 10px;
  font-weight: 600;
  flex-grow: 1;
}

.page-casino__blog-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-casino__blog-date {
  font-size: 0.85em;
  color: #aaa;
  text-align: right;
}

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficient height */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-casino__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffd700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-casino__faq-toggle {
  font-size: 24px;
  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; /* 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: #fff;
  transform: rotate(45deg); /* Plus to X effect */
}

/* Floating CTA for Mobile */
.page-casino__floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  display: none; /* Hidden by default, shown only on mobile */
}

.page-casino__floating-cta--mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .page-casino__floating-cta--mobile-only {
    display: block;
  }
}

.page-casino__floating-btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #ffd700; /* Golden background */
  color: #000000; /* Black text for contrast */
  border-radius: 50px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-casino__floating-btn:hover {
  background-color: #e6c200;
  transform: scale(1.02) translateX(-50%);
}

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

  .page-casino__heading {
    font-size: 2.5em;
  }

  .page-casino__sub-heading {
    font-size: 1.8em;
  }

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

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

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-casino__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__products-section {
    padding: 40px 15px;
  }
  
  .page-casino__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids vertically */
    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; /* Square */
  }
  
  .page-casino__products-grid--small .page-casino__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-casino__products-grid--large {
    grid-template-columns: 1fr; /* Each card takes full width */
    gap: 15px;
  }
  
  .page-casino__products-grid--large .page-casino__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-casino__products-grid--large .page-casino__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }

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

  .page-casino__container,
  .page-casino__card,
  .page-casino__game-category,
  .page-casino__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-casino__sub-heading {
    font-size: 1.5em;
  }

  .page-casino__paragraph {
    font-size: 1em;
  }

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

  .page-casino__card {
    padding: 20px;
  }

  .page-casino__card-title {
    font-size: 1.3em;
  }

  .page-casino__blog-image {
    height: 180px;
  }

  .page-casino__blog-title {
    font-size: 1.1em;
  }

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

@media (max-width: 480px) {
  .page-casino__products-grid--small {
    grid-template-columns: 1fr; /* Single column for very small screens */
  }
  .page-casino__grid--3-cols {
    grid-template-columns: 1fr;
  }
  .page-casino__heading {
    font-size: 1.8em;
  }
  .page-casino__sub-heading {
    font-size: 1.3em;
  }
  .page-casino__btn-centered {
    max-width: 100%;
  }
}