/* style/casino.css */

/* Variables */
:root {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-1: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 */
  --bg-light-1: #f8f8f8;
  --border-color: #e0e0e0;
}

/* Base styles for the page-casino scope */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default for dark body background */
  background-color: var(--bg-dark-1); /* Inherit from body if dark, or set a default */
}

/* Fixed navigation bar spacing for the first content module */
.page-casino__hero-banner {
  padding-top: 120px; /* Desktop */
}

@media (max-width: 768px) {
  .page-casino__hero-banner {
    padding-top: 100px; /* Mobile */
  }
}

/* General container for content */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.page-casino__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

/* Text blocks */
.page-casino__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}

.page-casino__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  margin-right: 15px;
}

.page-casino__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-casino__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-large {
  padding: 15px 35px;
  font-size: 18px;
}

/* Color Contrast Handling */
.page-casino__dark-bg {
  background-color: var(--bg-dark-1);
  color: var(--text-light);
}

.page-casino__light-bg {
  background-color: var(--bg-light-1);
  color: var(--text-dark);
}

/* HERO Banner */
.page-casino__hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  text-align: left;
  margin-right: 40px;
}

.page-casino__hero-title {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.page-casino__hero-actions {
  display: flex;
  gap: 15px;
}

.page-casino__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  max-width: 600px;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-casino__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Games Overview */
.page-casino__games-overview {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-casino__game-card-large {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-casino__game-card-large:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-casino__game-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

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

.page-casino__game-title {
  font-size: 22px;
  font-weight: bold;
  margin: 15px 20px 10px 20px;
  color: var(--primary-color);
}

.page-casino__game-description {
  font-size: 15px;
  margin: 0 20px 20px 20px;
  color: var(--text-dark);
}

/* Promo Section */
.page-casino__promo-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-casino__promo-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-casino__promo-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security & Support */
.page-casino__security-support {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-casino__feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-casino__feature-description {
  font-size: 15px;
  color: var(--text-dark);
}

/* FAQ Section */
.page-casino__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: var(--primary-color);
  transform: rotate(45deg);
}

.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.3s ease;
  padding: 0 25px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
}

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

/* Latest News */
.page-casino__latest-news {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-casino__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-casino__news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-casino__news-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 20px 10px 20px;
  color: var(--primary-color);
}

.page-casino__news-excerpt {
  font-size: 15px;
  margin: 0 20px 15px 20px;
  color: var(--text-dark);
  flex-grow: 1;
}

.page-casino__news-date {
  font-size: 13px;
  color: #777777;
  margin: 0 20px 15px 20px;
  display: block;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, darken(var(--primary-color), 15%) 100%);
}

.page-casino__cta-title {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-casino__cta-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-banner {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-bottom: 40px;
  }

  .page-casino__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }

  .page-casino__hero-title {
    font-size: 42px;
  }

  .page-casino__hero-description {
    font-size: 18px;
  }

  .page-casino__hero-actions {
    justify-content: center;
  }

  .page-casino__hero-image-wrapper {
    max-width: 80%;
  }

  .page-casino__section-title {
    font-size: 30px;
  }

  .page-casino__section-subtitle {
    font-size: 16px;
  }

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

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

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

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

  .page-casino__cta-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-casino__hero-banner,
  .page-casino__intro-section,
  .page-casino__games-overview,
  .page-casino__promo-section,
  .page-casino__security-support,
  .page-casino__faq-section,
  .page-casino__latest-news,
  .page-casino__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-casino__hero-title {
    font-size: 32px;
  }

  .page-casino__hero-description {
    font-size: 16px;
  }

  .page-casino__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100%;
    margin-right: 0;
  }

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

  .page-casino__section-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .page-casino__text-block {
    font-size: 14px;
  }

  .page-casino__games-grid-display,
  .page-casino__promo-grid,
  .page-casino__features-grid,
  .page-casino__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-casino__game-title,
  .page-casino__promo-title,
  .page-casino__feature-title,
  .page-casino__news-title {
    font-size: 18px;
  }

  .page-casino__game-description,
  .page-casino__promo-description,
  .page-casino__feature-description,
  .page-casino__news-excerpt {
    font-size: 14px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
  }

  .page-casino__faq-question h3 {
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-casino__faq-answer {
    padding: 0 20px;
  }

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }

  .page-casino__cta-title {
    font-size: 28px;
  }

  .page-casino__cta-description {
    font-size: 16px;
  }

  .page-casino__btn-large {
    padding: 12px 25px;
    font-size: 16px;
  }
}