/* public/docs/help.css */
:root {
  --bg-color: #020617;
  --glass-bg: rgba(17, 24, 39, 0.5);
  --border-color: rgba(107, 114, 128, 0.2);
  --glow-color: #4f46e5;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --aurora-1: #7c3aed;
  --aurora-2: #4f46e5;
  --aurora-3: #db2777;
  --aurora-4: #22d3ee;
  --animation-delay: 0ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.aurora {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.4;
  filter: blur(80px);
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  animation: move 25s infinite linear alternate;
}
.aurora::before {
  background: radial-gradient(circle, var(--aurora-1), transparent 60%);
  top: -20%;
  left: -20%;
}
.aurora::after {
  background: radial-gradient(circle, var(--aurora-2), transparent 60%);
  bottom: -20%;
  right: -20%;
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}

#star-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes move {
  from {
    transform: translate(-20%, -20%) rotate(0deg);
  }
  to {
    transform: translate(20%, 20%) rotate(360deg);
  }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

header {
  background-color: rgba(2, 6, 23, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

.text-glow {
  color: var(--text-primary);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.3),
    0 0 20px var(--glow-color);
  transition: all 0.3s;
}
.logo-glow {
  filter: drop-shadow(0 0 8px var(--glow-color));
  transition: filter 0.3s;
}
header a:hover .text-glow,
header a:hover .logo-glow {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 30px var(--glow-color);
  filter: drop-shadow(0 0 12px var(--glow-color));
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  padding: 8px 0;
}
.nav-link > span {
  display: flex;
  align-items: center;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--glow-color);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--glow-color);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-glass {
  background-color: rgba(2, 6, 23, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
}
.nav-link-mobile {
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}
.nav-link-mobile:hover,
.nav-link-mobile.active {
  background-color: var(--glass-bg);
  color: var(--text-primary);
  transform: translateX(5px);
}
.nav-link-mobile > span {
  display: flex;
  align-items: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: var(--animation-delay);
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background-image: linear-gradient(to right, var(--glow-color), #7c3aed);
  color: var(--text-primary);
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  transform: translateY(0);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.section-title.\!mb-4 {
  margin-bottom: 1rem !important;
}

.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}

.tilt-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s;
  overflow: hidden;
  transform-style: preserve-3d;
}
.tilt-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--glow-color));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.tilt-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--glow-color);
  border-color: rgba(79, 70, 229, 0.5);
}
.tilt-card:hover::before {
  opacity: 1;
}
.card-content {
  transform: translateZ(20px);
  text-align: center;
}
.card-icon {
  font-size: 2.5rem;
  color: var(--glow-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--glow-color);
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.card-description {
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.faq-item[open] {
  border-color: rgba(79, 70, 229, 0.5);
  background: rgba(17, 24, 39, 0.8);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-arrow {
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
}
.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer > p,
.faq-answer > ul {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
  padding-top: 1rem;
  overflow: hidden;
}
.faq-answer ul {
  list-style-position: inside;
  padding-left: 1.7rem;
}
.faq-answer li {
  margin-bottom: 0.5rem;
}
.text-link {
  color: var(--glow-color);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.text-link:hover {
  border-bottom-color: var(--glow-color);
  text-shadow: 0 0 5px var(--glow-color);
}
code {
  background-color: rgba(79, 70, 229, 0.1);
  color: #a78bfa;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  border-radius: 6px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.cta-glass-card {
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.5),
    rgba(30, 41, 59, 0.5)
  );
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  margin-top: 4rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition: all 0.3s ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  background-color: rgba(79, 70, 229, 0.2);
  border-color: var(--glow-color);
  color: var(--text-primary);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
  outline-color: var(--glow-color);
}

.cta-link:active {
  transform: translateY(-2px) scale(0.98);
  background-color: rgba(79, 70, 229, 0.1);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.cta-link i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--glow-color);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.cta-link:hover i,
.cta-link:focus-visible i {
  color: var(--text-primary);
  transform: scale(1.1);
}

.footer-glass {
  background: rgba(2, 6, 23, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  margin-top: 6rem;
}
.footer-link {
  color: var(--text-tertiary);
  font-size: 1.25rem;
  transition: all 0.3s;
}
.footer-link:hover {
  color: var(--text-primary);
  transform: scale(1.2) translateY(-2px);
  text-shadow: 0 0 10px var(--glow-color);
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background-color: var(--glow-color);
  box-shadow: 0 0 15px var(--glow-color);
  transform: scale(1.1);
}

.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 2.5rem;
}
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-20 {
  margin-bottom: 5rem;
}
.mb-28 {
  margin-bottom: 7rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.font-bold {
  font-weight: 700;
}
.hidden {
  display: none;
}
@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
  .md\:flex {
    display: flex;
  }
}
