/* style/casino.css */

/* Base styles for the casino page content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* #FFF6D6 */
  background-color: var(--background-color); /* #0A0A0A */
}

/* Color variables based on provided scheme */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg-color: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

/* General section styling */
.page-casino__section-title {
  font-size: 2.5em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__section-subtitle {
  font-size: 1.2em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.8;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Desktop: Fixed header spacing */
  background-color: var(--background-color); /* Fallback for image */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for the hero image */
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino__hero-content {
  position: relative; /* Ensure content is above image wrapper if z-index is used */
  padding: 40px 20px;
  z-index: 2; /* Ensure text is above any potential image overlay */
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over image for better visual flow */
  background: rgba(10, 10, 10, 0.7); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
}

.page-casino__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--secondary-color); /* Using auxiliary for title for contrast */
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  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%;
}

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: #333333; /* Dark text for light/medium gradient button for contrast */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.3);
}

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

.page-casino__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-color); /* Dark text for light background on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
}

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

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

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

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

/* Game Categories Section */
.page-casino__game-categories-section {
  padding: 60px 0;
  background-color: var(--card-bg-color); /* Slightly different dark background */
}

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

.page-casino__category-card {
  background: var(--background-color); /* Darker background for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.15);
}

.page-casino__category-icon {
  width: 30px; /* Allowed small size */
  height: 30px; /* Allowed small size */
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--glow-color)); /* Add a subtle glow */
}

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

.page-casino__category-description {
  color: var(--text-main-color);
  opacity: 0.75;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1; /* Ensure descriptions take available space */
}

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

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__promotion-card {
  background: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-casino__promotion-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 225px; /* Ensure minimum display height */
  max-height: 300px;
}

.page-casino__promotion-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-casino__promotion-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__promotion-description {
  color: var(--text-main-color);
  opacity: 0.8;
  margin-bottom: 25px;
  flex-grow: 1;
  font-size: 1.05em;
}

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

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

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

.page-casino__feature-item {
  background: var(--background-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-casino__feature-icon {
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-casino__feature-description {
  color: var(--text-main-color);
  opacity: 0.75;
  font-size: 0.95em;
}

.page-casino__responsible-gaming-cta {
  text-align: center;
  margin-top: 40px;
}

/* Payment Section */
.page-casino__payment-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-casino__payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-casino__payment-logo {
  width: 167px; /* Allowed specific size */
  height: 127px; /* Allowed specific size */
  object-fit: contain;
  background: var(--card-bg-color);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__payment-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-casino__faq-list {
  margin-top: 40px;
}

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

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

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* Initial padding 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main-color);
  opacity: 0.8;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 20px 20px; /* Restore padding on active */
}

.page-casino__faq-answer p {
  margin: 0;
  padding-top: 10px; /* Small padding inside p for better spacing */
  color: var(--text-main-color);
  opacity: 0.8;
}