/* style/support.css */

/* Global styles for the page-support scope */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000) */
  padding-top: 10px; /* Default padding-top to account for fixed header, adjusted in media queries */
}

.page-support a {
  color: var(--primary-color, #FFD700); /* Primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support a:hover {
  color: var(--secondary-color, #DC143C);
  text-decoration: underline;
}

.page-support__inline-link {
  color: var(--primary-color, #FFD700);
  text-decoration: underline;
}

.page-support__inline-link:hover {
  color: var(--secondary-color, #DC143C);
}

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

.page-support__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color, #FFD700);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px; /* Ensure section titles are not too close to the top of the section */
}

.page-support__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-support__hero-section {
  padding: 80px 20px 60px;
  text-align: center;
  /* Body background is #000, so this section inherits dark background and uses light text */
}

.page-support__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color, #FFD700);
  color: #000000; /* Dark text on primary color button for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-button:hover {
  background: var(--secondary-color, #DC143C);
  color: #ffffff; /* Light text on secondary color button for contrast */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-support__cta-button--secondary {
  background: transparent;
  color: var(--primary-color, #FFD700);
  border: 2px solid var(--primary-color, #FFD700);
  box-shadow: none;
}

.page-support__cta-button--secondary:hover {
  background: var(--primary-color, #FFD700);
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Use !important and large value for expansion */
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a1a1a; /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0; /* Light text for dark answer background */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a; /* Dark background for question */
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.page-support__faq-question:active {
  background: #4a4a4a;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* Light text for question */
  pointer-events: none;
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color, #FFD700);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--secondary-color, #DC143C);
  transform: rotate(45deg); /* Rotate for minus sign */
}

/* Contact Section */
.page-support__contact-section {
  padding: 80px 0;
  background-color: #000; /* Inherit body dark background */
  text-align: center;
}

.page-support__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-support__contact-card {
  background: #1a1a1a; /* Dark background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-support__contact-icon {
  width: 100px; /* Min 200x200, but icon can be displayed smaller */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow */
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__contact-card-title {
  font-size: 24px;
  color: var(--primary-color, #FFD700);
  margin-bottom: 15px;
}

.page-support__contact-card p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

.page-support__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color, #FFD700);
  color: #000000; /* Dark text on primary color button for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary:hover {
  background: var(--secondary-color, #DC143C);
  color: #ffffff; /* Light text on secondary color button for contrast */
  transform: translateY(-1px);
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  text-align: center;
}

.page-support__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 700px;
  text-align: left;
  color: #f0f0f0;
}

.page-support__responsible-gaming-list li {
  background: #1a1a1a;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 17px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-support__responsible-gaming-list li::before {
  content: "✓";
  color: var(--primary-color, #FFD700);
  font-weight: bold;
  margin-right: 10px;
  font-size: 20px;
}

/* Security Section */
.page-support__security-section {
  padding: 80px 0;
  background-color: #000; /* Inherit body dark background */
  text-align: center;
}

.page-support__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 50px auto 0;
}

.page-support__security-item {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-support__security-icon {
  width: 100px; /* Min 200x200, but icon can be displayed smaller */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow */
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__security-item-title {
  font-size: 22px;
  color: var(--primary-color, #FFD700);
  margin-bottom: 15px;
}

.page-support__security-item p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 42px;
  }
  .page-support__section-title {
    font-size: 34px;
  }
  .page-support__hero-description,
  .page-support__section-description {
    font-size: 17px;
  }
  .page-support__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-support {
    padding-top: 10px !important; /* Mobile padding-top for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__hero-section {
    padding: 60px 15px 40px;
  }

  .page-support__main-title {
    font-size: 32px;
  }

  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-support__section-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-top: 30px;
  }

  .page-support__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-support__cta-button {
    width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ Mobile */
  .page-support__faq-section {
    padding: 60px 0;
  }

  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-support__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-support__faq-answer {
    padding: 0 15px;
  }

  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }

  /* Contact Mobile */
  .page-support__contact-section {
    padding: 60px 0;
  }

  .page-support__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__contact-card {
    padding: 25px;
  }

  .page-support__contact-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-support__contact-card-title {
    font-size: 20px;
  }

  .page-support__contact-card p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-support__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px;
    font-size: 15px;
  }

  /* Responsible Gaming Mobile */
  .page-support__responsible-gaming-section {
    padding: 60px 0;
  }

  .page-support__responsible-gaming-list {
    margin: 30px auto;
    padding: 0 10px;
  }

  .page-support__responsible-gaming-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

  /* Security Mobile */
  .page-support__security-section {
    padding: 60px 0;
  }

  .page-support__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-support__security-item {
    padding: 25px;
  }

  .page-support__security-icon {
    width: 80px;
    height: 80px;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-support__security-item-title {
    font-size: 20px;
  }

  .page-support__security-item p {
    font-size: 15px;
  }
  
  /* Image and Video responsive adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}