/* style/payment-methods.css */

/* Base styles for the payment methods page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* General section styling */
.page-payment-methods__section {
  padding: 60px 0;
  text-align: center;
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  color: inherit;
  line-height: 1.2;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Inline links within content */
.page-payment-methods__link-inline {
  color: #26A9E0;
  text-decoration: underline;
}

.page-payment-methods__link-inline:hover {
  color: #EA7C07;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 80px; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: #ffffff;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Button styles */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-payment-methods__btn-primary:hover {
  background-color: #1a7fb3;
  border-color: #1a7fb3;
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-payment-methods__btn-text {
  display: inline-flex;
  align-items: center;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-payment-methods__btn-text:hover {
  color: #EA7C07;
}

.page-payment-methods__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-payment-methods__btn-text:hover .page-payment-methods__arrow {
  transform: translateX(5px);
}

/* Card styles */
.page-payment-methods__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height in grids */
  display: flex;
  flex-direction: column;
  text-align: left;
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card .page-payment-methods__feature-icon,
.page-payment-methods__card .page-payment-methods__method-icon,
.page-payment-methods__card .page-payment-methods__promo-image,
.page-payment-methods__card .page-payment-methods__step-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__card .page-payment-methods__feature-title,
.page-payment-methods__card .page-payment-methods__method-title,
.page-payment-methods__card .page-payment-methods__promo-title,
.page-payment-methods__card .page-payment-methods__step-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-payment-methods__card .page-payment-methods__feature-description,
.page-payment-methods__card .page-payment-methods__method-description,
.page-payment-methods__card .page-payment-methods__promo-description,
.page-payment-methods__card .page-payment-methods__step-description {
  font-size: 1em;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Specific background colors */
.page-payment-methods__dark-section {
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

.page-payment-methods__light-bg .page-payment-methods__card {
  background: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__light-bg .page-payment-methods__card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__feature-title,
.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__method-title,
.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__promo-title,
.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__step-title {
  color: #000000;
}

.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__feature-description,
.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__method-description,
.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__promo-description,
.page-payment-methods__light-bg .page-payment-methods__card .page-payment-methods__step-description {
  color: #555555;
}

/* Overview section grid */
.page-payment-methods__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Deposit Methods */
.page-payment-methods__method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-payment-methods__method-list li {
  margin-bottom: 10px;
  color: inherit;
}

.page-payment-methods__method-subtitle {
  font-size: 1.1em;
  font-weight: 600;
  color: inherit;
  margin-bottom: 5px;
}

.page-payment-methods__cta-deposit {
  margin-top: 60px;
}

/* Withdrawal Process */
.page-payment-methods__withdrawal-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-item {
  position: relative;
  padding-top: 50px; /* Space for step number */
}

.page-payment-methods__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  border: 3px solid #000000;
}

.page-payment-methods__step-item .page-payment-methods__card .page-payment-methods__step-title {
  text-align: center;
}

.page-payment-methods__step-item .page-payment-methods__card .page-payment-methods__step-description {
  text-align: center;
}

.page-payment-methods__cta-withdrawal {
  margin-top: 60px;
}

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

.page-payment-methods__cta-promo {
  margin-top: 60px;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-payment-methods__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  width: 25px;
  text-align: center;
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-payment-methods__faq-answer p {
  margin-bottom: 10px;
}

.page-payment-methods__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-payment-methods__faq-answer a:hover {
  color: #EA7C07;
}

/* Call to Action at the bottom */
.page-payment-methods__call-to-action {
  padding: 80px 0;
}

.page-payment-methods__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1.1em;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__container {
    padding: 0 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__text-block,
  .page-payment-methods__hero-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button responsiveness */
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  /* Card image sizing in mobile */
  .page-payment-methods__card .page-payment-methods__feature-icon,
  .page-payment-methods__card .page-payment-methods__method-icon,
  .page-payment-methods__card .page-payment-methods__promo-image,
  .page-payment-methods__card .page-payment-methods__step-image {
    height: auto; /* Allow height to adjust */
    min-height: 200px; /* Ensure minimum size */
  }

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

  .page-payment-methods__step-number {
    font-size: 1.2em;
    width: 35px;
    height: 35px;
  }

  .page-payment-methods__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-payment-methods__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Ensure content containers also adapt */
  .page-payment-methods__hero-section,
  .page-payment-methods__overview,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-process,
  .page-payment-methods__promotions,
  .page-payment-methods__faq-section,
  .page-payment-methods__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Body handles header offset, this is for visual spacing */
  }
}

@media (max-width: 480px) {
  .page-payment-methods__section-title {
    font-size: 1.6em;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-payment-methods__text-block,
  .page-payment-methods__hero-description {
    font-size: 0.95em;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-payment-methods__card .page-payment-methods__feature-title,
  .page-payment-methods__card .page-payment-methods__method-title,
  .page-payment-methods__card .page-payment-methods__promo-title,
  .page-payment-methods__card .page-payment-methods__step-title {
    font-size: 1.3em;
  }
  .page-payment-methods__card .page-payment-methods__feature-description,
  .page-payment-methods__card .page-payment-methods__method-description,
  .page-payment-methods__card .page-payment-methods__promo-description,
  .page-payment-methods__card .page-payment-methods__step-description {
    font-size: 0.9em;
  }
}