/* TubeMate FAQ page — cinematic glass universe */

body.faq-page {
  overflow-x: clip;
  color: #e2e8f0;
  background: #03050f;
}

.faq-universe {
  --fq-magenta: #f472b6;
  --fq-magenta-bright: #ff4d8d;
  --fq-blue: #60a5fa;
  --fq-purple: #a78bfa;
  --fq-muted: rgb(203 213 225 / 0.88);
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgb(88 28 135 / 0.35), transparent 55%),
    radial-gradient(ellipse 55% 40% at 88% 35%, rgb(236 72 153 / 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 12% 55%, rgb(59 130 246 / 0.15), transparent 50%),
    linear-gradient(180deg, #03050f 0%, #0a0f2e 40%, #0c0820 70%, #03050f 100%);
}

.faq-universe__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.faq-universe__ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1px 1px at 75% 28%, rgb(244 114 182 / 0.55), transparent),
    radial-gradient(1px 1px at 48% 70%, rgb(167 139 250 / 0.45), transparent);
  animation: fqParticles 24s linear infinite;
}

.faq-universe__ambient::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: conic-gradient(from 160deg at 55% 45%, transparent, rgb(244 63 94 / 0.06), transparent, rgb(59 130 246 / 0.06), transparent);
  animation: fqAmbientSpin 50s linear infinite;
}

.fq-shell {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 88rem;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .fq-shell {
    padding: 0 2rem;
  }
}

.fq-glass {
  background: linear-gradient(145deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.04) inset,
    0 24px 48px rgb(0 0 0 / 0.45);
}

.fq-glass--neon {
  border-color: rgb(244 114 182 / 0.35);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.06) inset,
    -20px 0 55px rgb(236 72 153 / 0.14),
    20px 0 55px rgb(59 130 246 / 0.12),
    0 28px 56px rgb(0 0 0 / 0.5);
}

.fq-breadcrumb {
  padding: 5.5rem 0 0.5rem;
  font-size: 0.8125rem;
  color: rgb(148 163 184 / 0.9);
}

.fq-breadcrumb a {
  color: rgb(203 213 225 / 0.85);
}

.fq-breadcrumb a:hover {
  color: var(--fq-magenta-bright);
}

.fq-breadcrumb span {
  color: #fff;
  font-weight: 600;
}

.fq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fce7f3;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(244 114 182 / 0.45);
  border-radius: 9999px;
  box-shadow: 0 0 24px rgb(236 72 153 / 0.25);
}

.fq-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.fq-title .fq-gradient {
  background: linear-gradient(100deg, #ff8fab 0%, #ff4d6d 35%, #a78bfa 65%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fq-quick-card {
  margin-top: 1.5rem;
  padding: 1.15rem 1.3rem 1.15rem 1.1rem;
  max-width: 36rem;
  background: rgb(88 28 135 / 0.18);
  border: 1px solid rgb(192 132 252 / 0.3);
  border-left: 3px solid var(--fq-magenta-bright);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 32px rgb(168 85 247 / 0.18);
}

.fq-quick-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.fq-quick-card strong {
  color: var(--fq-magenta-bright);
}

.fq-link {
  font-weight: 700;
  color: var(--fq-magenta-bright);
}

.fq-link:hover {
  color: #fda4af;
}

/* ========== HERO ========== */
.fq-hero {
  position: relative;
  z-index: 1;
  padding: 1rem 0 2rem;
  min-height: calc(100vh - 4rem);
  min-height: calc(100dvh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fq-hero__shell {
  position: relative;
}

.fq-hero__panel {
  padding: 2rem 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .fq-hero__panel {
    padding: 2.5rem 2.5rem 1.5rem;
  }
}

.fq-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(236 72 153 / 0.06) 0%, transparent 40%, rgb(59 130 246 / 0.05) 100%);
  pointer-events: none;
}

.fq-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .fq-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Speech bubble scene */
.fq-bubble-scene {
  position: relative;
  min-height: 20rem;
  perspective: 1400px;
}

.fq-bubble-orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fq-bubble-orbit--1 {
  width: 92%;
  height: 74%;
  border: 1px solid rgb(244 114 182 / 0.42);
  box-shadow: 0 0 40px rgb(236 72 153 / 0.25);
  animation: fqOrbit 22s linear infinite;
}

.fq-bubble-orbit--2 {
  width: 108%;
  height: 86%;
  border: 1px solid rgb(96 165 250 / 0.28);
  animation: fqOrbit 32s linear infinite reverse;
}

.fq-bubble-orbit--3 {
  width: 75%;
  height: 58%;
  border: 1px solid rgb(167 139 250 / 0.22);
  opacity: 0.7;
  animation: fqOrbit 18s linear infinite;
}

.fq-bubble-platform {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 52%;
  height: 2.75rem;
  transform: translateX(-50%) rotateX(72deg);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(236 72 153 / 0.5) 0%, rgb(59 130 246 / 0.35) 45%, transparent 70%);
  box-shadow: 0 0 60px rgb(236 72 153 / 0.35), 0 0 80px rgb(59 130 246 / 0.25);
}

.fq-bubble-main {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(11rem, 42vw);
  aspect-ratio: 1.05;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.05));
  border: 2px solid rgb(255 255 255 / 0.35);
  border-radius: 2rem 2rem 2rem 0.65rem;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 35px 70px rgb(0 0 0 / 0.5),
    0 0 90px rgb(236 72 153 / 0.4),
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset -8px 0 24px rgb(96 165 250 / 0.15);
  animation: fqBubbleFloat 7s ease-in-out infinite;
}

.fq-bubble-main__mark {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(160deg, #ff8fab, #ff4d6d 50%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgb(255 77 109 / 0.7));
}

.fq-bubble-float {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.05));
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 0.7rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.4);
  animation: fqIconFloat 5.5s ease-in-out infinite;
}

.fq-bubble-float--faq {
  top: 8%;
  right: 14%;
  color: #fda4af;
  box-shadow: 0 0 28px rgb(236 72 153 / 0.45);
}

.fq-bubble-float--chat {
  top: 22%;
  left: 6%;
  animation-delay: -1.2s;
  font-size: 1rem;
}

.fq-bubble-float--book {
  bottom: 32%;
  right: 6%;
  animation-delay: -2.5s;
  font-size: 1.1rem;
  color: #c4b5fd;
}

.fq-bubble-float--search {
  bottom: 18%;
  left: 12%;
  animation-delay: -3.8s;
  color: #93c5fd;
  box-shadow: 0 0 24px rgb(96 165 250 / 0.4);
}

/* Hero tabs */
.fq-hero-tabs {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  border-radius: 0 0 1.15rem 1.15rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: linear-gradient(180deg, rgb(0 0 0 / 0.15), rgb(255 255 255 / 0.03));
}

.fq-hero-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4.25rem;
  padding: 0.55rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgb(203 213 225 / 0.85);
  border-radius: 0.65rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.fq-hero-tabs a:hover,
.fq-hero-tabs a.is-active {
  color: var(--fq-magenta-bright);
  background: rgb(236 72 153 / 0.12);
  box-shadow: 0 0 20px rgb(236 72 153 / 0.25);
}

.fq-hero-tabs a.is-active {
  border-bottom-color: var(--fq-magenta-bright);
}

.fq-hero-tabs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.9rem;
}

.fq-hero-tabs a.is-active .fq-hero-tabs__icon {
  background: rgb(236 72 153 / 0.25);
  border-color: rgb(244 114 182 / 0.5);
  box-shadow: 0 0 18px rgb(236 72 153 / 0.45);
}

/* ========== FAQ LIST SECTION ========== */
.fq-list-section {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5rem;
}

.fq-list-panel {
  padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
  .fq-list-panel {
    padding: 2.5rem;
  }
}

.fq-list__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .fq-list__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

.fq-list__header {
  margin-bottom: 1.25rem;
}

.fq-list__header h2 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}

.fq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fq-accordion-item {
  border-radius: 0.75rem;
  background: rgb(0 0 0 / 0.22);
  border: 1px solid rgb(255 255 255 / 0.1);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fq-accordion-item:hover,
.fq-accordion-item.is-open {
  border-color: rgb(244 114 182 / 0.35);
  box-shadow: 0 0 28px rgb(236 72 153 / 0.12);
}

.fq-accordion-item button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

.fq-accordion-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  flex-shrink: 0;
}

.fq-accordion-item--shield .fq-accordion-item__icon {
  color: #fda4af;
  border-color: rgb(244 114 182 / 0.35);
  box-shadow: 0 0 16px rgb(236 72 153 / 0.2);
}

.fq-accordion-item--star .fq-accordion-item__icon {
  color: #fbbf24;
  border-color: rgb(251 191 36 / 0.35);
}

.fq-accordion-item--music .fq-accordion-item__icon {
  color: #c4b5fd;
  border-color: rgb(167 139 250 / 0.35);
}

.fq-accordion-item--lock .fq-accordion-item__icon {
  color: #93c5fd;
  border-color: rgb(96 165 250 / 0.35);
}

.fq-accordion-item__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.65rem;
  color: rgb(203 213 225 / 0.8);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 50%;
  transition: transform 0.2s;
}

.fq-accordion-item.is-open .fq-accordion-item__chevron {
  transform: rotate(180deg);
  border-color: rgb(244 114 182 / 0.4);
  color: var(--fq-magenta-bright);
}

.fq-accordion-item__body {
  padding: 0 1.15rem 1.15rem 4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--fq-muted);
}

.fq-accordion-item__body a {
  color: var(--fq-magenta-bright);
  font-weight: 600;
}

.fq-accordion-item__body a:hover {
  color: #fda4af;
}

.fq-list-visual {
  position: sticky;
  top: 6rem;
}

.fq-list-visual .fq-bubble-scene {
  min-height: 18rem;
}

.fq-list-visual .fq-bubble-main {
  width: min(9rem, 36vw);
}

.fq-list-visual .fq-bubble-main__mark {
  font-size: 3.5rem;
}

body.faq-page .site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(3 5 15 / 0.95);
}

body.faq-page .site-header--dark .site-nav a[aria-current="page"]::after {
  background: var(--fq-magenta-bright);
}

body.faq-page .mobile-menu-panel {
  background: rgb(10 14 32 / 0.96);
  border-color: rgb(255 255 255 / 0.12);
}

body.faq-page .mobile-menu-panel a {
  color: rgb(203 213 225 / 0.9);
}

body.faq-page .mobile-menu-panel a:hover {
  background: rgb(236 72 153 / 0.15);
  color: #fff;
}

@keyframes fqParticles {
  from { transform: translateY(0); }
  to { transform: translateY(-35px); }
}

@keyframes fqAmbientSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes fqBubbleFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotateY(-4deg); }
  50% { transform: translate(-50%, -50%) translateY(-14px) rotateY(4deg); }
}

@keyframes fqIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-universe__ambient::before,
  .faq-universe__ambient::after,
  .fq-bubble-orbit,
  .fq-bubble-main,
  .fq-bubble-float {
    animation: none;
  }
}
