/* style/support.css */

/* General Styles for the Support Page */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is black from shared.css */
}

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

.page-support__section-title {
  font-size: 36px;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* CTA Button Styles (Reusing from prompt example, adapting to BEM and colors) */
.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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.15);
  border: none;
  cursor: pointer;
  margin: 10px;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-support__cta-button--primary {
  background: #FFD700; /* Auxiliary color */
  color: #0A192F; /* Main color for text on auxiliary background */
}

.page-support__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button--secondary {
  background: #0A192F; /* Main color */
  color: #FFD700; /* Auxiliary color for text on main background */
  border: 2px solid #FFD700;
}

.page-support__cta-button--secondary:hover {
  background: #06101f;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px; /* Adjust padding-top to account for fixed header */
  padding-top: var(--header-offset, 120px); /* Ensure top spacing for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
  background: linear-gradient(135deg, #0A192F 0%, #000000 100%); /* Dark gradient background */
}

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-support__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-support__main-title {
  font-size: 48px;
  color: #FFD700; /* Auxiliary color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-support__description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
  background: #0d0d0d; /* Slightly lighter dark background */
}

.page-support__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-support__method-card {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-support__method-icon {
  width: 120px; /* Increased size for icons */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make it circular */
  border: 2px solid #FFD700;
  padding: 10px;
  background-color: #0A192F;
}

.page-support__method-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__method-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1; /* Make description take available space */
}

.page-support__method-link {
  display: inline-block;
  padding: 10px 25px;
  background: #0A192F;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #FFD700;
}

.page-support__method-link:hover {
  background: #FFD700;
  color: #0A192F;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background: #000000;
}

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

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #FFD700;
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: #0A192F; /* Dark background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
}

/* 问题样式 */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Darker background for question */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFD700; /* Auxiliary color for question text */
}

.page-support__faq-question:hover {
  background: #2a2a2a;
  border-color: #e6c200;
}

.page-support__faq-question:active {
  background: #3a3a3a;
}

/* 问题标题样式 */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: inherit; /* Inherit color from parent (.page-support__faq-question) */
}

/* 切换图标 */
.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Auxiliary color for toggle icon */
  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: 32px;
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* A common visual for '-' from '+' */
}

/* Link within FAQ answer */
.page-support__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}
.page-support__faq-answer a:hover {
  color: #e6c200;
}

/* Quick Guides Section */
.page-support__guides-section {
  padding: 80px 0;
  background: #0d0d0d;
}

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

.page-support__guide-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-support__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-support__guide-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-support__guide-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__guide-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__guide-link {
  display: inline-block;
  padding: 10px 20px;
  background: #0A192F;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #FFD700;
  text-align: center;
  margin-top: auto; /* Push link to bottom */
}

.page-support__guide-link:hover {
  background: #FFD700;
  color: #0A192F;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling {
  padding: 80px 0;
  text-align: center;
  background: #0A192F; /* Main color background */
  color: #ffffff;
}

/* Feedback Section */
.page-support__feedback-section {
  padding: 80px 0;
  text-align: center;
  background: #000000;
  color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-support__container {
    padding: 0 15px;
  }

  .page-support__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

  .page-support__description {
    font-size: 16px;
  }

  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-support__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 0; /* Remove horizontal margin when stacked */
  }
  
  /* Ensure button containers are also responsive */
  .page-support__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container if needed */
  }

  .page-support__section-title {
    font-size: 28px;
  }

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

  .page-support__methods-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-support__method-card,
  .page-support__guide-card {
    padding: 20px;
  }

  .page-support__method-icon {
    width: 80px;
    height: 80px;
  }

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

  .page-support__method-description {
    font-size: 15px;
  }

  .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;
  }

  /* Image responsive rules for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__hero-image,
  .page-support__method-icon,
  .page-support__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Ensure images scale */
    object-fit: cover; /* Maintain aspect ratio without stretching */
  }

  /* Ensure all sections and containers handle overflow */
  .page-support__hero-section,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__responsible-gambling,
  .page-support__feedback-section,
  .page-support__container,
  .page-support__methods-grid,
  .page-support__guides-grid,
  .page-support__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding adjustments for mobile sections */
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__responsible-gambling,
  .page-support__feedback-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter is used on images */
.page-support img {
  filter: none !important;
}

/* Specific styling for link in FAQ answer */
.page-support__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}
.page-support__faq-answer a:hover {
  color: #e6c200;
}