/* style/game-guides-roulette.css */

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

/* Base styles for the page content */
.page-game-guides-roulette {
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--page-bg); /* Page background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

/* Main sections */
.page-game-guides-roulette__section {
  padding: 60px 20px;
}

.page-game-guides-roulette__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--page-bg); /* Ensure content area matches page bg */
  color: var(--text-main);
}

.page-game-guides-roulette__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
  text-align: center;
  overflow: hidden;
}

.page-game-guides-roulette__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-game-guides-roulette__hero-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: cover;
}

.page-game-guides-roulette__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: var(--text-main);
}

.page-game-guides-roulette__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides-roulette__intro-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-game-guides-roulette__section-title {
  font-size: 2.5rem;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-guides-roulette__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: 2px;
}

.page-game-guides-roulette__sub-section-title {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}

/* Text elements */
.page-game-guides-roulette p {
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-game-guides-roulette a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-game-guides-roulette a:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

/* Lists */
.page-game-guides-roulette__list,
.page-game-guides-roulette__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-game-guides-roulette__ordered-list {
  list-style-type: decimal;
}

.page-game-guides-roulette__list li,
.page-game-guides-roulette__ordered-list li {
  margin-bottom: 10px;
  color: var(--text-main);
}

/* Buttons */
.page-game-guides-roulette__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-game-guides-roulette__cta-buttons--center {
  margin-top: 50px;
  text-align: center;
}

.page-game-guides-roulette__btn-primary,
.page-game-guides-roulette__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides-roulette__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color) inset;
}

.page-game-guides-roulette__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow-color) inset;
  opacity: 0.9;
}

.page-game-guides-roulette__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-game-guides-roulette__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--page-bg);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Images */
.page-game-guides-roulette img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.page-game-guides-roulette__image-full-width {
  width: 100%;
  height: auto;
  max-height: 500px;
}

/* Cards */
.page-game-guides-roulette__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-game-guides-roulette__card,
.page-game-guides-roulette__feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides-roulette__card:hover,
.page-game-guides-roulette__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-game-guides-roulette__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

/* Table */
.page-game-guides-roulette__table-responsive {
  overflow-x: auto;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-game-guides-roulette__payout-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background-color: var(--card-bg);
  color: var(--text-main);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides-roulette__payout-table th,
.page-game-guides-roulette__payout-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--divider-color);
}

.page-game-guides-roulette__payout-table th {
  background-color: var(--deep-green-color);
  color: var(--gold-color);
  font-weight: bold;
  text-transform: uppercase;
}

.page-game-guides-roulette__payout-table tr:last-child td {
  border-bottom: none;
}

.page-game-guides-roulette__payout-table tbody tr:hover {
  background-color: rgba(var(--primary-color), 0.2);
}

/* FAQ */
.page-game-guides-roulette__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides-roulette__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-game-guides-roulette__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color);
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-guides-roulette__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-guides-roulette__faq-question:hover {
  background-color: var(--primary-color);
}

.page-game-guides-roulette__faq-qtext {
  flex-grow: 1;
}

.page-game-guides-roulette__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--glow-color);
}

.page-game-guides-roulette__faq-item[open] .page-game-guides-roulette__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides-roulette__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
}

.page-game-guides-roulette__faq-item:not([open]) .page-game-guides-roulette__faq-answer {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides-roulette__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-game-guides-roulette__section-title {
    font-size: 2rem;
  }
  .page-game-guides-roulette__sub-section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .page-game-guides-roulette__section,
  .page-game-guides-roulette__content-area {
    padding: 30px 15px;
  }

  .page-game-guides-roulette__hero-section {
    padding: 10px 15px 40px;
  }

  .page-game-guides-roulette__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-game-guides-roulette__intro-text {
    font-size: 1rem;
  }

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

  .page-game-guides-roulette__btn-primary,
  .page-game-guides-roulette__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .page-game-guides-roulette__grid-3-cols,
  .page-game-guides-roulette__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides-roulette img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-game-guides-roulette__section,
  .page-game-guides-roulette__card,
  .page-game-guides-roulette__container,
  .page-game-guides-roulette__payout-table,
  .page-game-guides-roulette__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-game-guides-roulette__payout-table {
    display: block;
    width: auto; /* Allow table to scroll horizontally if needed */
  }

  .page-game-guides-roulette__payout-table thead,
  .page-game-guides-roulette__payout-table tbody,
  .page-game-guides-roulette__payout-table th,
  .page-game-guides-roulette__payout-table td,
  .page-game-guides-roulette__payout-table tr {
    display: block;
  }

  .page-game-guides-roulette__payout-table th {
    text-align: center;
    background-color: var(--deep-green-color);
    color: var(--gold-color);
  }

  .page-game-guides-roulette__payout-table td {
    border-bottom: 1px solid var(--divider-color);
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .page-game-guides-roulette__payout-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 15px;
    font-weight: bold;
    text-align: left;
    color: var(--secondary-color);
  }
  
  .page-game-guides-roulette__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-game-guides-roulette__faq-answer {
    font-size: 0.9rem;
    padding: 15px;
  }
}