/* style/support.css */

/* Custom properties for brand colors */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set body background as white is default */
}

.page-support__section {
  padding: 60px 20px;
  text-align: center;
}

.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding to prevent content from touching edges */
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Using brand colors */
  color: var(--text-light);
}

.page-support__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-support__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
  font-size: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-support__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-support__btn-primary:hover {
  background: #e6c200; /* Darker gold */
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}


/* Contact Methods Section */
.page-support__contact-methods {
  background-color: var(--background-light);
}

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

.page-support__contact-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark); /* Ensure dark text on light background */
}

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

.page-support__contact-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 300px; /* Limit image size for smaller cards */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__contact-card .page-support__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-support__contact-card .page-support__card-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to take available space */
}

/* FAQ Section */
.page-support__faq-section {
  background: var(--secondary-color); /* Darker background for contrast */
  color: var(--text-light);
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
  color: var(--text-light);
}

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

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* 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 15px;
  opacity: 0;
  color: var(--text-dark);
}

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

/* 问题样式 */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark); /* Ensure dark text on light background */
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* 问题标题样式 */
.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: var(--text-dark);
}

/* 切换图标 */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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(--primary-color); /* Use brand color for active toggle */
  transform: rotate(45deg); /* Change from + to x */
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  background-color: #ffffff;
}

.page-support__responsible-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-support__responsible-text {
  flex: 1;
}

.page-support__responsible-text h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-support__responsible-text p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
}

.page-support__responsible-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__responsible-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Security & Fairness Section */
.page-support__security-fairness {
  background-color: var(--background-light);
}

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