/* style/casino.css */

/* Custom Colors */
:root {
  --page-casino-bg: #08160F;
  --page-casino-card-bg: #11271B;
  --page-casino-text-main: #F2FFF6;
  --page-casino-text-secondary: #A7D9B8;
  --page-casino-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-casino-border: #2E7A4E;
  --page-casino-glow: #57E38D;
  --page-casino-gold: #F2C14E;
  --page-casino-divider: #1E3A2A;
  --page-casino-deep-green: #0A4B2C;
}

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

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-casino-text-main);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-casino-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: var(--page-casino-btn-gradient);
  color: var(--page-casino-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-casino__btn-secondary:hover {
  background-color: var(--page-casino-glow);
  color: var(--page-casino-bg);
  transform: translateY(-2px);
}

.page-casino__card {
  background-color: var(--page-casino-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--page-casino-text-main);
  border: 1px solid var(--page-casino-border);
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-casino-bg);
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  object-fit: cover;
  max-height: 675px;
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  z-index: 1;
}

.page-casino__main-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--page-casino-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-casino__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-casino-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg);
}

.page-casino__grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  color: var(--page-casino-text-secondary);
}

.page-casino__text-block a {
  margin-top: 20px;
  display: inline-block;
}

.page-casino__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Video Section */
.page-casino__video-section {
  padding: 80px 0;
  background-color: var(--page-casino-deep-green);
  text-align: center;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 0 auto 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-casino__video-cta {
  margin-top: 20px;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg);
}

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

.page-casino__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-casino__game-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-casino__game-title a {
  color: var(--page-casino-gold);
  text-decoration: none;
}

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

.page-casino__game-description {
  color: var(--page-casino-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: var(--page-casino-deep-green);
}

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-casino__promo-card {
  text-align: center;
}

.page-casino__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-casino__promo-title a {
  color: var(--page-casino-text-main);
  text-decoration: none;
}

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

.page-casino__promo-description {
  color: var(--page-casino-text-secondary);
  margin-bottom: 20px;
}

.page-casino__promotions-cta {
    margin-top: 50px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg);
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--page-casino-deep-green);
}

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

.page-casino__faq-item {
  background-color: var(--page-casino-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--page-casino-border);
  overflow: hidden;
}

.page-casino__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-casino-text-main);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-casino-glow);
}

.page-casino__faq-answer {
  padding: 0 25px 20px;
  color: var(--page-casino-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.page-casino__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg);
  text-align: center;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Global image styles to prevent small icons */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__grid-2-col {
    grid-template-columns: 1fr;
  }

  .page-casino__image-block {
    order: -1; /* Image first on smaller screens for about section */
    margin-bottom: 30px;
  }
}

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

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

  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__video-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 40px 0;
  }

  .page-casino__hero-image {
    max-height: 400px;
  }

  .page-casino__hero-content {
    margin-top: 20px;
  }

  .page-casino__main-title {
    font-size: clamp(30px, 8vw, 40px);
  }

  .page-casino__hero-description {
    font-size: clamp(16px, 4vw, 18px);
  }

  .page-casino__hero-cta-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__games-grid,
  .page-casino__promotions-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image and video responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure content images are not too small in CSS */
.page-casino__image-block img,
.page-casino__game-image,
.page-casino__promo-image {
    min-width: 200px;
    min-height: 200px;
}

.page-casino__dark-section {
    background-color: var(--page-casino-bg);
    color: var(--page-casino-text-main);
}

.page-casino__deep-green {
    background-color: var(--page-casino-deep-green);
    color: var(--page-casino-text-main);
}

/* No filter properties for images */
.page-casino img {
    filter: none;
}