/* 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-border: #2E7A4E;
  --page-casino-glow: #57E38D;
  --page-casino-gold: #F2C14E;
  --page-casino-divider: #1E3A2A;
  --page-casino-deep-green: #0A4B2C;
  --page-casino-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles header-offset, small padding-top here */
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-casino__main-title {
  color: var(--page-casino-gold);
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-casino__description {
  font-size: 1.1em;
  color: var(--page-casino-text-secondary);
  margin-bottom: 30px;
}

.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background: var(--page-casino-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-casino__btn-secondary {
  background: transparent;
  color: var(--page-casino-glow);
  border: 2px solid var(--page-casino-glow);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-casino__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

/* General Section Styling */
.page-casino__intro-section,
.page-casino__games-section,
.page-casino__dealer-section,
.page-casino__promotions-section,
.page-casino__guide-section,
.page-casino__security-support-section,
.page-casino__faq-section,
.page-casino__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-casino-divider);
}

.page-casino__section-title {
  font-size: 2.5em;
  color: var(--page-casino-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-casino__text-block {
  font-size: 1.05em;
  color: var(--page-casino-text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__highlight-text {
  color: var(--page-casino-glow);
  font-weight: bold;
}

.page-casino__link {
  color: var(--page-casino-glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__link:hover {
  color: var(--page-casino-gold);
  text-decoration: underline;
}

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

.page-casino__game-card {
  background-color: var(--page-casino-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-casino-text-main);
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-casino__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no CSS filter */
}

.page-casino__game-card h3,
.page-casino__game-card p,
.page-casino__game-card a {
  padding: 0 25px;
}

.page-casino__game-title {
  font-size: 1.6em;
  color: var(--page-casino-gold);
  margin: 20px 0 10px 0;
  font-weight: 600;
}

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

.page-casino__btn-text {
  color: var(--page-casino-glow);
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 20px;
  display: block;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: var(--page-casino-gold);
  text-decoration: underline;
}

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

.page-casino__card {
  background-color: var(--page-casino-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-casino-text-main);
  padding-bottom: 25px;
}

.page-casino__card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no CSS filter */
  margin-bottom: 20px;
}

.page-casino__card-title {
  font-size: 1.5em;
  color: var(--page-casino-gold);
  margin: 0 25px 10px 25px;
  font-weight: 600;
}

.page-casino__card-text {
  font-size: 0.95em;
  color: var(--page-casino-text-secondary);
  margin: 0 25px 20px 25px;
  flex-grow: 1;
}

.page-casino__card .page-casino__btn-primary {
  margin: 0 25px;
  align-self: flex-start;
  width: auto;
}

/* Guide Section */
.page-casino__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__guide-item {
  background-color: var(--page-casino-card-bg);
  border-left: 5px solid var(--page-casino-glow);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__guide-step-title {
  font-size: 1.8em;
  color: var(--page-casino-gold);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__guide-step-description {
  font-size: 1em;
  color: var(--page-casino-text-main);
  margin-bottom: 20px;
}

/* Video Section */
.page-casino__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-casino-deep-green);
  border-bottom: 1px solid var(--page-casino-divider);
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: none; /* Ensure no CSS filter */
}

.page-casino__video-caption {
  font-style: italic;
  color: var(--page-casino-text-secondary);
  font-size: 0.95em;
}

/* Security & Support Section */
.page-casino__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__security-item {
  background-color: var(--page-casino-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-casino__security-title {
  font-size: 1.5em;
  color: var(--page-casino-glow);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__security-description {
  font-size: 0.95em;
  color: var(--page-casino-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

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

.page-casino__faq-item summary:hover {
  background-color: rgba(17, 39, 27, 0.8);
}

.page-casino__faq-qtext {
  flex-grow: 1;
  color: var(--page-casino-gold);
}

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

.page-casino__faq-item[open] .page-casino__faq-question {
  background-color: var(--page-casino-deep-green);
  border-bottom: 1px solid var(--page-casino-border);
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−';
}

.page-casino__faq-answer {
  padding: 20px 25px 25px 25px;
  font-size: 1em;
  color: var(--page-casino-text-secondary);
  background-color: var(--page-casino-card-bg);
}

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

.page-casino__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

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

  .page-casino__section-title {
    font-size: 2em;
  }

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

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

  .page-casino__security-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 10px 0 40px 0;
  }

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

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

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

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

  .page-casino__intro-section,
  .page-casino__games-section,
  .page-casino__dealer-section,
  .page-casino__promotions-section,
  .page-casino__guide-section,
  .page-casino__security-support-section,
  .page-casino__faq-section,
  .page-casino__conclusion-section {
    padding: 40px 0;
  }

  .page-casino__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino__text-block {
    font-size: 0.95em;
  }

  /* Image and Video Responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__hero-image-wrapper,
  .page-casino__game-card,
  .page-casino__card,
  .page-casino__guide-item,
  .page-casino__security-item,
  .page-casino__faq-item,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__game-grid,
  .page-casino__promotion-cards,
  .page-casino__security-list,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-casino__card-image {
    height: 150px;
  }

  .page-casino__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 15px 20px;
  }
  
  .page-casino__video-section {
    padding-top: 10px !important;
  }
}