/* ============================
   FUCKBOT.CSS (FAQ Wheel + Bot)
   Works block:
   - .faq, .faq__grid
   - .faqwheel + #faqUp/#faqDown + #faqWheelList
   - details.faq__item + .faq__answer
   - .faqbot + #faqbotChat + #faqbotForm + #faqbotInput
   - .faqbot__chips + .faqbot__chip (optional)
   ============================ */

/* Base */
.faq {
  padding: 64px 0;
}

.faq .container,
.faq .c {
  max-width: var(--container, 1120px);
  margin: 0 auto;
  padding: 0 16px;
}

.faq__title {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .2px;
}

.faq__subtitle {
  margin: 0 0 18px;
  opacity: .82;
  line-height: 1.5;
}

/* Layout: FAQ wheel + visible bot */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   FAQ WHEEL (vertical carousel)
   ============================ */

.faqwheel {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  padding: 12px;
  position: relative;
}

/* Top bar with label + buttons */
.faqwheel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 10px;
}

.faqwheel__label {
  font-weight: 900;
  opacity: .95;
  letter-spacing: .2px;
}

.faqwheel__controls {
  display: flex;
  gap: 8px;
}

.faqwheel__btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.faqwheel__btn:hover {
  background: rgba(255, 255, 255, .12);
}

.faqwheel__btn:active {
  transform: translateY(1px);
}

/* The "wheel" itself */
.faq__list {
  max-height: 520px;
  overflow-y: auto;
  padding: 6px;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* scrollbar */
.faq__list::-webkit-scrollbar {
  width: 10px;
}
.faq__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}
.faq__list::-webkit-scrollbar-track {
  background: transparent;
}

/* Each item (accordion card) */
.faq__item {
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  background: rgba(0, 0, 0, .22);
  margin: 10px 0;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Summary line */
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hide default marker */
.faq__item > summary::-webkit-details-marker {
  display: none;
}

/* Arrow */
.faq__item > summary::after {
  content: "▸";
  margin-left: auto;
  opacity: .75;
  transition: transform .18s ease, opacity .18s ease;
}

.faq__item[open] > summary::after {
  transform: rotate(90deg);
  opacity: 1;
}

/* Answer */
.faq__answer {
  padding: 0 14px 14px 14px;
  line-height: 1.55;
  opacity: .92;
}

/* Hover / focus */
.faq__item:hover {
  border-color: rgba(255, 255, 255, .18);
}

/* Active highlight (JS can add .is-active to the element) */
.faq__item.is-active {
  border-color: rgba(124,58,237,.50);
  box-shadow: 0 0 0 1px rgba(124,58,237,.18);
  background: rgba(80, 60, 180, .08);
}

/* Small hint line */
.faqwheel__hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: .7;
  padding: 0 6px 4px;
}

/* ============================
   SMART BOT (make it visible)
   ============================ */

.faqbot {
  position: sticky;
  top: 14px;

  border-radius: 18px;
  border: 1px solid rgba(124,58,237,.45);
  background: linear-gradient(
    180deg,
    rgba(124,58,237,.16),
    rgba(255, 255, 255, .04)
  );
  box-shadow:
    0 0 0 1px rgba(124,58,237,.16),
    0 22px 70px rgba(0, 0, 0, .40);
  padding: 16px;
}

/* In your HTML you have header/title/desc (older variant) */
.faqbot__header {
  margin-bottom: 10px;
}

.faqbot__title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .2px;
}

.faqbot__desc {
  opacity: .86;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
}

/* If you use badge (new variant), support it too */
.faqbot__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.faqbot__chat {
  margin-top: 12px;
  height: 320px;
  overflow: auto;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .10);
}

/* Messages */
.faqbot__msg {
  margin: 10px 0;
  display: flex;
  gap: 10px;
}

.faqbot__bubble {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 92%;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-wrap;
}

.faqbot__msg--user .faqbot__bubble {
  margin-left: auto;
  background: rgba(255, 255, 255, .12);
}

.faqbot__msg--bot .faqbot__bubble {
  background: rgba(255, 255, 255, .07);
}

/* Form */
.faqbot__form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.faqbot__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .18);
  color: inherit;
  outline: none;
}

.faqbot__input:focus {
  border-color: rgba(42,92,255,.55);
  box-shadow: 0 0 0 3px rgba(42,92,255,.14);
}

.faqbot__btn {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  font-weight: 900;
}

.faqbot__btn:hover {
  background: rgba(255, 255, 255, .16);
}

/* Optional chips */
.faqbot__chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faqbot__chip {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

.faqbot__chip:hover {
  background: rgba(255, 255, 255, .12);
}

/* Mobile tuning: bot not sticky on small screens */
@media (max-width: 980px) {
  .faqbot {
    position: static;
  }
  .faqbot__chat {
    height: 260px;
  }
}

/* ===== VVZ FIX (v1.1) ===== */
/* Show only first 2 FAQ items by default */
.faq__item.is-hidden { display: none; }

/* Toggle button */
.faq__moreBtn{
  margin-top: 12px;
  width: fit-content;
}

/* Grid sizing: keep bot compact on desktop */
.faq__grid{
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 380px;
}
@media (max-width: 980px){
  .faq__grid{ grid-template-columns: 1fr; }
}

/* Bot: cap height + make chat scroll */
.faqbot{
  max-height: 560px;
}
#faqbotChat{
  max-height: 360px;
  overflow: auto;
}

/* Make FAQ answers readable */
.faq__answer{
  line-height: 1.6;
}
