@import url("vendor/fonts/montserrat.css?v=1");

:root {
  --thundr-bg-deep: #121212;
  --thundr-bg-mid: #1a1a1a;
  --thundr-pink: #ff66cc;
  --thundr-pink-hot: #ff3ad6;
  --thundr-text: #f8eef5;
  --thundr-text-muted: rgba(248, 238, 245, 0.6);
  --faq-surface: rgba(24, 24, 24, 0.74);
  --faq-surface-2: rgba(34, 34, 34, 0.85);
  --faq-border: rgba(255, 102, 204, 0.32);
  --faq-radius: 14px;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--thundr-text);
  background-color: var(--thundr-bg-mid);
  background-image:
    radial-gradient(
      ellipse 120% 80% at 50% -30%,
      rgba(255, 102, 204, 0.14),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 50% at 0% 100%,
      rgba(255, 255, 255, 0.06),
      transparent 50%
    ),
    radial-gradient(
      ellipse 70% 50% at 100% 100%,
      rgba(255, 255, 255, 0.06),
      transparent 50%
    ),
    radial-gradient(
      circle at 8% 12%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 28%
    ),
    radial-gradient(
      circle at 92% 18%,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 26%
    ),
    linear-gradient(
      180deg,
      var(--thundr-bg-mid) 0%,
      var(--thundr-bg-deep) 100%
    );
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

.light-theme {
  --thundr-bg-deep: #efe7ef;
  --thundr-bg-mid: #f5edf4;
  --thundr-text: #2f1d2d;
  --thundr-text-muted: rgba(47, 29, 45, 0.65);
  --faq-surface: rgba(255, 255, 255, 0.76);
  --faq-surface-2: rgba(255, 255, 255, 0.9);
  --faq-border: rgba(255, 102, 204, 0.28);
}

.sidebar,
.main-content {
  position: relative;
  z-index: 1;
}

.sidebar {
  width: 320px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border-right: 1px solid var(--faq-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-content {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  padding: 2rem clamp(1.25rem, 2.5vw, 3rem);
  max-width: min(1600px, 100%);
}

.main-content h2,
.main-content h3 {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-content h3 {
  color: rgba(255, 230, 245, 0.9);
  text-shadow: 0 0 10px rgba(255, 102, 204, 0.4);
}

.logo-container {
  border-bottom: 1px solid var(--faq-border);
}

.logo-container img {
  filter: drop-shadow(0 0 20px rgba(255, 102, 204, 0.35))
    drop-shadow(0 0 48px rgba(255, 58, 214, 0.15));
}

.nav-category {
  padding: 0.6rem 1rem;
  margin: 0.5rem 0.75rem 0.35rem;
  border-radius: 999px;
  color: var(--thundr-text);
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid var(--faq-border);
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease, color 0.25s ease;
}

.nav-category:hover {
  border-color: rgba(255, 102, 204, 0.9);
  box-shadow: 0 0 16px rgba(255, 102, 204, 0.28);
}

.nav-category.active {
  color: #fff;
  border-color: rgba(255, 102, 204, 0.95);
  box-shadow: 0 0 18px rgba(255, 102, 204, 0.45),
    0 0 36px rgba(255, 58, 214, 0.2);
}

.nav-category:focus-visible {
  outline: none;
  border-color: rgba(255, 102, 204, 0.95);
  box-shadow: 0 0 0 0.2rem rgba(255, 102, 204, 0.2);
}

.question-item {
  padding: 0.75rem 0.95rem;
  margin: 0.15rem 0.75rem;
  border-radius: 10px;
  color: var(--thundr-text-muted);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  font-size: 0.98rem;
  line-height: 1.25;
  border: 1px solid transparent;
  text-wrap: pretty;
}

.question-item:hover {
  color: var(--thundr-text);
  background: rgba(32, 32, 32, 0.88);
  border-color: rgba(255, 102, 204, 0.9);
  box-shadow: 0 0 16px rgba(255, 102, 204, 0.28);
  transform: translateY(-1px);
}

.question-item.active {
  color: #fff;
  background: rgba(32, 32, 32, 0.92);
  border: 1px solid rgba(255, 102, 204, 0.95);
  box-shadow: 0 0 18px rgba(255, 102, 204, 0.45),
    0 0 36px rgba(255, 58, 214, 0.2);
}

.question-item:focus-visible {
  outline: none;
  border-color: rgba(255, 102, 204, 0.95);
  box-shadow: 0 0 0 0.2rem rgba(255, 102, 204, 0.2);
}

.search-box {
  padding: 1rem;
  border-bottom: 1px solid var(--faq-border);
}

.faq-search {
  position: relative;
}

.faq-search .form-control {
  padding-right: 2.25rem;
}

.faq-search-clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--thundr-text-muted);
}

.faq-search-clear:hover {
  background: rgba(255, 102, 204, 0.14);
  color: var(--thundr-text);
}

.answer-content {
  background: linear-gradient(180deg, var(--faq-surface-2), var(--faq-surface));
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 1.75rem;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.answer-content h2,
.faq-list-question {
  color: rgba(255, 230, 245, 0.9);
  text-shadow: 0 0 10px rgba(255, 102, 204, 0.42),
    0 0 22px rgba(255, 58, 214, 0.2);
}

.answer-content h2 {
  letter-spacing: 0.06em;
}

.nav-category.empty-category {
  background: transparent;
  color: var(--thundr-text-muted);
  border: 1px dashed var(--faq-border);
}

.nav-items {
  flex: 1;
  overflow-y: auto;
}

.form-control {
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid var(--faq-border);
  color: var(--thundr-text);
  border-radius: 12px;
}

.form-control::placeholder {
  color: var(--thundr-text-muted);
}

.form-control:focus {
  background: rgba(32, 32, 32, 0.85);
  color: var(--thundr-text);
  border-color: rgba(255, 102, 204, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(255, 102, 204, 0.2);
}

.btn-dark,
.btn-outline-secondary {
  border-color: rgba(255, 102, 204, 0.4);
  background: rgba(24, 24, 24, 0.72);
  color: #fff;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-dark:hover,
.btn-outline-secondary:hover {
  border-color: rgba(255, 102, 204, 0.95);
  background: rgba(32, 32, 32, 0.88);
  box-shadow: 0 0 18px rgba(255, 102, 204, 0.45),
    0 0 36px rgba(255, 58, 214, 0.2);
  color: #fff;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1040;
}

.answer-content-scroll {
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.sidebar,
.answer-content-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 102, 204, 0.42) rgba(255, 255, 255, 0.06);
}

.sidebar::-webkit-scrollbar,
.answer-content-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.sidebar::-webkit-scrollbar-track,
.answer-content-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb,
.answer-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 102, 204, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.answer-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 102, 204, 0.52);
  background-clip: padding-box;
}

.answer-content.answer-content-scroll {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.answer-content.answer-content-scroll > * {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.answer-content.answer-content-scroll > *:first-child {
  padding-top: 1.75rem;
}

.answer-content.answer-content-scroll > *:last-child {
  padding-bottom: 1.75rem;
}

.answer-content article h3 {
  color: var(--thundr-text);
  line-height: 1.2;
}

.faq-card {
  background: linear-gradient(180deg, var(--faq-surface-2), var(--faq-surface));
  border: 1px solid var(--faq-border);
  border-radius: calc(var(--faq-radius) + 8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  padding: 1.25rem 1.25rem 1.1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scroll-margin-top: 1.25rem;
  overflow: hidden;
}

.faq-card:has(.faq-card-toggle) {
  padding: 0;
}

.faq-card > :last-child {
  margin-bottom: 0;
}

.faq-card.is-expanded {
  border-color: rgba(255, 102, 204, 0.75);
}

.faq-card-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-card-toggle:hover .faq-list-question {
  color: #ffc2ea;
}

.faq-card-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 102, 204, 0.55);
}

.faq-card-toggle-main {
  min-width: 0;
  flex: 1;
}

.faq-card-chevron {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--thundr-text-muted);
  font-size: 1.1rem;
}

.faq-card.is-expanded .faq-card-chevron {
  color: var(--thundr-pink);
}

.faq-card-body {
  padding: 0 1.25rem 1.25rem;
}

.faq-card-body > :last-child {
  margin-bottom: 0;
}

.faq-card-summary {
  color: var(--thundr-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}

.faq-category-section {
  scroll-margin-top: 1.25rem;
}

.faq-category-heading {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 230, 245, 0.9);
  text-shadow: 0 0 10px rgba(255, 102, 204, 0.42),
    0 0 22px rgba(255, 58, 214, 0.2);
}

.faq-list-question {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  font-size: 1.05rem;
  line-height: 1.3;
}

.light-theme .faq-category-heading,
.light-theme .faq-list-question,
.light-theme .answer-content h2 {
  text-shadow: none;
  color: var(--thundr-text);
}

.light-theme .form-control {
  background: rgba(255, 255, 255, 0.92);
  color: var(--thundr-text);
  border-color: rgba(255, 102, 204, 0.28);
}

.light-theme .form-control::placeholder {
  color: rgba(47, 29, 45, 0.55);
}

.light-theme .form-control:focus {
  background: #ffffff;
  color: var(--thundr-text);
  border-color: rgba(255, 102, 204, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(255, 102, 204, 0.18);
}

.light-theme .faq-search-clear {
  color: rgba(47, 29, 45, 0.55);
}

.light-theme .faq-search-clear:hover {
  color: var(--thundr-text);
}

.answer-content .badge.text-bg-secondary {
  background: rgba(24, 24, 24, 0.8) !important;
  border: 1px solid var(--faq-border);
  color: var(--thundr-text) !important;
  font-weight: 600;
}

.answer-content a {
  color: #ff9ee0;
  text-decoration-color: rgba(255, 158, 224, 0.45);
  text-underline-offset: 3px;
}

.answer-content a:hover {
  color: #ffc2ea;
  text-decoration-color: rgba(255, 194, 234, 0.7);
}

@media (max-width: 768px) {
  .sidebar {
    width: 300px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.22s ease-in-out;
    z-index: 1050;
  }

  .sidebar.sidebar-mobile-open {
    transform: translateX(0);
  }

  .main-content {
    padding-top: 74px;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .mobile-menu-toggle {
    z-index: 1060;
  }
}
