/* Shared styles and variables are in shared.css */

/* Page-specific styles for Payment Methods */
.page-payment-methods {
  background: var(--color-background-dark, #08160F);
  color: var(--color-text-main, #F2FFF6);
  font-family: Arial, sans-serif;
}

.page-payment-methods__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  background: var(--color-card-bg, #11271B);
}

.page-payment-methods__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-payment-methods__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff; /* Ensure white text on darkened image */
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--color-gold, #F2C14E);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
  font-size: clamp(1em, 1.5vw, 1.25em);
  margin-bottom: 30px;
  color: #F2FFF6;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  background: var(--color-card-bg, #11271B);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-payment-methods__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--color-gold, #F2C14E);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-payment-methods__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F, #13994A);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-payment-methods__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--color-text-main, #F2FFF6);
  margin-bottom: 20px;
  text-align: justify;
}

.page-payment-methods__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-payment-methods__grid-container--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-payment-methods__grid-container--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-payment-methods__card {
  background: var(--color-deep-green, #0A4B2C);
  border: 1px solid var(--color-border, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--color-text-main, #F2FFF6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__card-title {
  font-size: 1.6em;
  color: var(--color-gold, #F2C14E);
  margin-bottom: 15px;
  text-align: center;
}

.page-payment-methods__card-subtitle {
  font-size: 1.2em;
  color: var(--color-secondary, #A7D9B8);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-payment-methods__card-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--color-text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-payment-methods__list,
.page-payment-methods__list-ordered {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--color-text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-payment-methods__list-ordered {
  list-style-type: decimal;
}

.page-payment-methods__list li,
.page-payment-methods__list-ordered li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button adapts to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: var(--color-glow, #57E38D);
  border: 2px solid var(--color-glow, #57E38D);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__btn-secondary:hover {
  background: var(--color-glow, #57E38D);
  color: #08160F;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-payment-methods__cta-buttons--center {
  justify-content: center;
}

.page-payment-methods__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__image-margin-top {
  margin-top: 30px;
}

.page-payment-methods__dark-section {
  background: var(--color-background, #08160F);
  color: #ffffff;
  padding: 50px 20px;
}

.page-payment-methods__dark-section .page-payment-methods__section-title {
  color: var(--color-glow, #57E38D);
}

.page-payment-methods__dark-section .page-payment-methods__card {
  background: var(--color-card-bg, #11271B);
  border-color: var(--color-divider, #1E3A2A);
}

.page-payment-methods__dark-section .page-payment-methods__card-title {
  color: var(--color-gold, #F2C14E);
}

.page-payment-methods__dark-section .page-payment-methods__card-description,
.page-payment-methods__dark-section .page-payment-methods__list li {
  color: var(--color-text-secondary, #A7D9B8);
}

/* FAQ Styles - using details/summary */
details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #2E7A4E);
  overflow: hidden;
  background: var(--color-deep-green, #0A4B2C);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--color-text-main, #F2FFF6);
  font-weight: 600;
  font-size: 1.1em;
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: rgba(46, 122, 78, 0.3); /* Slightly lighter hover for deep green */
}

.page-payment-methods__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text-main, #F2FFF6);
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 0 0 10px 10px;
  color: var(--color-text-secondary, #A7D9B8);
  font-size: 1em;
  line-height: 1.7;
}

.page-payment-methods__faq-answer p {
  margin-bottom: 0;
  color: var(--color-text-secondary, #A7D9B8);
}

/* Global image responsiveness */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Default max-width for content containers */
.page-payment-methods__section,
.page-payment-methods__card,
.page-payment-methods__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* CSS for game trial shell (required to be present even if not used on this page) */
@media (max-width: 1023px) {
  .page-payment-methods__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__hero-brand,
  .page-payment-methods__hero-jackpot {
    display: none !important;
  }
  .page-payment-methods__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-topbar,
  .page-payment-methods__game-trial-bottombar {
    display: none !important;
  }
  .page-payment-methods__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-payment-methods__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-payment-methods__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-payment-methods__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-payment-methods__hero-brand,
  .page-payment-methods__hero-jackpot,
  .page-payment-methods__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-payment-methods__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-payment-methods__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-payment-methods__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Placeholder for other desktop specific styles like promo-strip, hot-games, etc. */
  .page-payment-methods__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-payment-methods__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-payment-methods__hot-games-item-name,
  .page-payment-methods__hot-games-item-rtp,
  .page-payment-methods__hot-games-item-desc {
    display: block;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-payment-methods__section {
    padding: 20px 15px;
    margin-bottom: 20px;
    border-radius: 0;
  }

  .page-payment-methods__hero-content {
    padding: 15px;
  }

  .page-payment-methods__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-payment-methods__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-title::after {
    margin-top: 10px;
  }

  .page-payment-methods__section-text {
    font-size: 1em;
    line-height: 1.6;
  }

  .page-payment-methods__grid-container,
  .page-payment-methods__grid-container--two-cols,
  .page-payment-methods__grid-container--three-cols {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

  .page-payment-methods__card-subtitle {
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 8px;
  }

  .page-payment-methods__card-description {
    font-size: 0.95em;
  }

  .page-payment-methods__list,
  .page-payment-methods__list-ordered {
    margin-left: 15px;
    font-size: 0.95em;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-payment-methods__faq-qtext {
    font-size: 1em;
  }
  .page-payment-methods__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }

  /* Example for promo-strip (if on this page) */
  .page-payment-methods__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for 2 columns on mobile */
    overflow-x: hidden !important;
    gap: 10px;
  }
  .page-payment-methods__promo-card-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Example for hot-games (if on this page) */
  .page-payment-methods__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .page-payment-methods__hot-games-item-name,
  .page-payment-methods__hot-games-item-rtp,
  .page-payment-methods__hot-games-item-desc {
    display: none !important;
  }

  /* Winner ticker (if on this page) */
  .page-payment-methods__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
  }
  body {
    padding-bottom: 50px; /* Adjust for ticker height */
  }
}

/* Game trial shell specific styles */
.page-payment-methods__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-payment-methods__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-payment-methods__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-payment-methods__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-payment-methods__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-payment-methods__reward-modal-content {
  background: var(--color-card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  color: var(--color-text-main, #F2FFF6);
}
.page-payment-methods__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-secondary, #A7D9B8);
  cursor: pointer;
}
.page-payment-methods__reward-modal-title {
  color: var(--color-gold, #F2C14E);
  margin-bottom: 15px;
}
.page-payment-methods__reward-modal-text {
  color: var(--color-text-secondary, #A7D9B8);
  margin-bottom: 25px;
}
.page-payment-methods__reward-modal-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
}

/* Contrast fix classes */
.page-payment-methods__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-payment-methods__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}