/* style/casino.css */
/* body already has padding-top: var(--header-offset); from shared.css */

:root {
  --okplay-primary: #F2C14E;
  --okplay-secondary: #FFD36B;
  --okplay-bg: #0A0A0A;
  --okplay-card-bg: #111111;
  --okplay-text-main: #FFF6D6;
  --okplay-border: #3A2A12;
  --okplay-glow: #FFD36B;
  --okplay-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-casino {
  font-family: Arial, sans-serif;
  color: var(--okplay-text-main); /* Light text for dark background */
  background-color: var(--okplay-bg);
  line-height: 1.6;
  font-size: 16px;
}

/* Ensure all images are responsive by default */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--okplay-bg);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%; /* Ensure image fills its wrapper */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  color: var(--okplay-primary);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-casino__hero-description {
  font-size: 1.1em;
  color: var(--okplay-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-casino__btn-primary {
  background: var(--okplay-btn-gradient);
  color: #ffffff; /* White text for gradient button */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.5);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--okplay-primary);
  border: 2px solid var(--okplay-primary);
}

.page-casino__btn-secondary:hover {
  background: var(--okplay-primary);
  color: var(--okplay-bg);
  transform: translateY(-3px);
}

.page-casino__btn-text {
  background: none;
  border: none;
  color: var(--okplay-primary);
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-casino__btn-text:hover {
  color: var(--okplay-secondary);
}


/* General Section Styling */
.page-casino__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--okplay-primary);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-casino__about-section,
.page-casino__games-section,
.page-casino__live-section,
.page-casino__promo-section,
.page-casino__security-section,
.page-casino__payments-section,
.page-casino__support-section,
.page-casino__faq-section,
.page-casino__blog-news-section,
.page-casino__cta-bottom-section {
  background-color: var(--okplay-bg);
  padding: 60px 0;
  border-bottom: 1px solid var(--okplay-border);
}

.page-casino__image-full {
  width: 100%;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Game Categories */
.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-casino__category-card {
  background-color: var(--okplay-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--okplay-border);
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px; /* Allowed small icon size */
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--okplay-glow)); /* Only allowed glow, not color change */
}

.page-casino__category-title {
  font-size: 1.5em;
  color: var(--okplay-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__category-link {
  color: var(--okplay-secondary);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
}

.page-casino__category-link:hover {
  text-decoration: underline;
}

/* Live Video Section */
.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%; /* Ensure video wrapper doesn't overflow */
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden; /* Hide overflow from video */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.page-casino__video-link {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000; /* Fallback background */
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-casino__video-link:hover .page-casino__video-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.page-casino__play-icon {
  font-size: 3em;
  color: var(--okplay-primary);
  margin-bottom: 10px;
}

.page-casino__video-cta {
  font-size: 1.2em;
}

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

.page-casino__promo-card {
  background-color: var(--okplay-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--okplay-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
}

.page-casino__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__promo-title {
  font-size: 1.4em;
  color: var(--okplay-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Payment Icons */
.page-casino__payment-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-casino__payment-icon {
  width: 80px; /* Allowed small icon size */
  height: 50px; /* Allowed small icon size */
  object-fit: contain;
  filter: brightness(0.8) drop-shadow(0 0 5px rgba(255, 211, 107, 0.3)); /* Only allowed brightness and glow, not color change */
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background-color: var(--okplay-card-bg);
  border: 1px solid var(--okplay-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--okplay-card-bg);
  color: var(--okplay-primary);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #1a1a1a; /* Slightly lighter dark */
}

.page-casino__faq-title {
  margin: 0;
  color: var(--okplay-primary);
  font-size: 1.1em;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--okplay-secondary);
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--okplay-text-main);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 20px;
}

/* Blog/News Section */
.page-casino__article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-casino__article-card {
  background-color: var(--okplay-card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--okplay-border);
}

.page-casino__article-card:hover {
  transform: translateY(-5px);
}

.page-casino__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__article-title a {
  color: var(--okplay-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__article-title a:hover {
  color: var(--okplay-secondary);
  text-decoration: underline;
}

.page-casino__article-date {
  font-size: 0.9em;
  color: #ccc;
  margin-bottom: 10px;
}

.page-casino__article-excerpt {
  font-size: 1em;
  color: var(--okplay-text-main);
  margin-bottom: 15px;
}

.page-casino__view-all-button {
  text-align: center;
  margin-top: 40px;
}

/* Bottom CTA */
.page-casino__cta-bottom-section .page-casino__section-title {
  margin-bottom: 20px;
}

.page-casino__cta-bottom-section p {
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-casino__section-title {
    font-size: clamp(1.8em, 4vw, 2.2em);
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 15px;
    line-height: 1.5;
  }

  .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(1.8em, 7vw, 2.5em);
  }

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

  .page-casino__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-text {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  /* Images and containers responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__video-wrapper,
  .page-casino__video-link,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__live-section,
  .page-casino__promo-section,
  .page-casino__security-section,
  .page-casino__payments-section,
  .page-casino__support-section,
  .page-casino__faq-section,
  .page-casino__blog-news-section,
  .page-casino__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__promo-image,
  .page-casino__article-image {
    height: auto; /* Allow height to adjust for smaller screens */
    min-height: 150px; /* Adjust min height for mobile */
  }

  .page-casino__game-categories,
  .page-casino__promo-cards,
  .page-casino__article-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-casino__faq-title {
    font-size: 1em;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-casino__payment-icons {
    gap: 15px;
  }
  .page-casino__payment-icon {
    width: 60px;
    height: 40px;
  }
}