/* style/casino.css */

/* --- Color Variables (from custom palette) --- */
.page-casino {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* --- Base Styles --- */
.page-casino {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--background); /* Overall background from custom palette */
}

.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); /* Responsive H1/H2 font size */
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-game,
.page-casino__btn-promo {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--main-color); /* Main Color */
  border: 2px solid var(--main-color); /* Main Color */
}

.page-casino__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-casino__btn-game,
.page-casino__btn-promo {
  background: var(--button-gradient);
  color: var(--text-main); /* Text Main */
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
}

.page-casino__btn-game:hover,
.page-casino__btn-promo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: var(--background);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px; /* Slightly rounded corners for visual appeal */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(36px, 5vw, 60px); /* Responsive H1 font size */
  color: var(--gold); /* Gold color for main title */
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-casino__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
  font-weight: 300;
}

.page-casino__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* --- About Section / Dark Section --- */
.page-casino__dark-section {
  background-color: var(--card-bg); /* Darker background from custom palette */
  padding: 80px 0;
  color: var(--text-main);
}

.page-casino__about-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-title,
.page-casino__testimonials-section .page-casino__section-title,
.page-casino__responsible-gaming-section .page-casino__section-title {
  color: var(--gold);
}

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

.page-casino__feature-item {
  text-align: center;
  padding: 30px;
  background-color: var(--background); /* Slightly lighter dark for contrast */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

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

.page-casino__feature-title {
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__feature-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

.page-casino__game-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__game-title {
  font-size: 22px;
  color: var(--gold); /* Gold for game titles */
  margin-bottom: 10px;
  font-weight: bold;
  padding: 0 15px;
}

.page-casino__game-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-casino__game-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take up available space */
  padding: 0 15px;
}

.page-casino__btn-game {
  margin-top: auto; /* Pushes button to the bottom */
  padding: 10px 20px;
  border-radius: 6px;
}

/* --- Promotions Section --- */
.page-casino__promotions-section {
  padding: 80px 0;
}

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

.page-casino__promo-card {
  background-color: var(--background); /* Slightly lighter dark for contrast */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__promo-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
  padding: 0 15px;
}

.page-casino__promo-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-casino__promo-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__btn-promo {
  margin-top: auto;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* --- How To Start Section --- */
.page-casino__how-to-start-section {
  padding: 80px 0;
  background-color: var(--background);
}

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

.page-casino__step-item {
  text-align: center;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.page-casino__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: var(--deep-green);
  padding: 15px;
}

.page-casino__step-title {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__step-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Testimonials Section --- */
.page-casino__testimonials-section {
  padding: 80px 0;
}

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

.page-casino__testimonial-card {
  background-color: var(--background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  text-align: left;
}

.page-casino__testimonial-text {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.page-casino__testimonial-author {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: bold;
}

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

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

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

.page-casino__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--deep-green); /* Darker green for summary */
  transition: background-color 0.3s ease;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-casino__faq-item summary:hover {
  background-color: var(--main-color); /* Lighter on hover */
}

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

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold); /* Gold for the toggle icon */
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--divider);
}

/* --- Responsible Gaming Section --- */
.page-casino__responsible-gaming-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-casino__cta-final-section .page-casino__section-title {
  color: var(--gold);
}

.page-casino__cta-final-section .page-casino__cta-group {
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-casino__hero-content {
    padding: 0 15px;
  }
}