/* IPTV Charleroi v1.3.11 — Premium FAQ Command Center
   Purpose: transform the homepage FAQ into a compact, modern assistance component without external libraries. */

.faq-command-center {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 26px;
  padding: 31px 32px 28px;
  border: 1px solid rgba(237, 13, 18, .11);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .88)),
    radial-gradient(circle at 100% 0%, rgba(237, 13, 18, .13), transparent 38%);
  box-shadow: 0 28px 70px rgba(15, 15, 18, .09), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.faq-command-center::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(237, 13, 18, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(237, 13, 18, .035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(145deg, rgba(0,0,0,.22), transparent 58%);
  pointer-events: none;
}

.faq-card-glow {
  position: absolute;
  top: -90px;
  right: -90px;
  z-index: -1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 13, 18, .20), rgba(237, 13, 18, 0) 68%);
  pointer-events: none;
}

.faq-command-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 17px;
}

.faq-command-center .section-label {
  display: inline-flex;
  margin-bottom: 8px;
}

.faq-command-center h3 {
  margin: 0;
  font-size: clamp(25px, 2vw, 34px);
  line-height: .98;
  letter-spacing: -1.1px;
}

.faq-command-intro {
  max-width: 430px;
  margin: 12px 0 0;
  color: #686872;
  font-size: 12.5px;
  line-height: 1.62;
  font-weight: 600;
}

.faq-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(237, 13, 18, .14);
  border-radius: 999px;
  color: #b70710;
  background: rgba(237, 13, 18, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 900;
}

.faq-status-pill .fa-solid {
  width: 13px;
  height: 13px;
}

.faq-quick-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 15px;
  padding: 6px;
  border: 1px solid rgba(17, 17, 20, .06);
  border-radius: 17px;
  background: rgba(247, 247, 248, .74);
}

.faq-quick-topics span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  border-radius: 12px;
  color: #303038;
  background: #fff;
  box-shadow: 0 8px 20px rgba(10, 10, 12, .045);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.faq-quick-topics .fa-solid,
.faq-quick-topics .fa-regular,
.faq-quick-topics .fa-brands {
  width: 12px;
  height: 12px;
  color: #ed0d12;
}

.faq-command-list {
  display: grid;
  gap: 9px;
}

.faq-command-center .faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 24, .07);
  border-radius: 17px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 30px rgba(18, 18, 20, .055);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}

.faq-command-center .faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #ed0d12, rgba(237, 13, 18, .12));
  opacity: 0;
  transition: opacity .25s ease;
}

.faq-command-center .faq-item.open {
  border-color: rgba(237, 13, 18, .20);
  background: linear-gradient(145deg, #fff, #fff8f8);
  box-shadow: 0 18px 42px rgba(237, 13, 18, .08), 0 12px 34px rgba(15, 15, 18, .055);
}

.faq-command-center .faq-item.open::before {
  opacity: 1;
}

.faq-command-center .faq-question {
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px 12px 15px;
  color: #111116;
}

.faq-q-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ed0d12, #b70710);
  box-shadow: 0 12px 24px rgba(237, 13, 18, .23);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.2px;
}

.faq-q-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.faq-q-copy strong {
  color: #17171c;
  font-size: 13.5px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.18px;
}

.faq-q-copy small {
  color: #777780;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}

.faq-command-center .faq-question > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #16161a;
  background: #f7f7f8;
  box-shadow: inset 0 0 0 1px rgba(17,17,20,.07);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.faq-command-center .faq-item.open .faq-question > i {
  color: #fff;
  background: #ed0d12;
  box-shadow: 0 10px 22px rgba(237,13,18,.22);
  transform: rotate(180deg);
}

.faq-command-center .faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 54px 0 61px;
  opacity: 0;
  color: #5f5f68;
  font-size: 11.5px;
  line-height: 1.62;
  font-weight: 600;
  transition: max-height .34s ease, opacity .24s ease, padding-bottom .24s ease;
}

.faq-command-center .faq-answer p {
  margin: 0;
}

.faq-command-center .faq-item.open .faq-answer {
  max-height: 170px;
  padding-bottom: 16px;
  opacity: 1;
}

.faq-command-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.faq-command-center .faq-more,
.faq-support-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
}

.faq-command-center .faq-more {
  min-width: 154px;
  padding: 0 15px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #111116, #24242a);
  box-shadow: 0 14px 26px rgba(12, 12, 14, .12);
}

.faq-support-link {
  padding: 0 12px;
  color: #ed0d12;
  background: rgba(237,13,18,.055);
  border: 1px solid rgba(237,13,18,.12);
}

@media (min-width: 1081px) {
  .bottom-grid .faq-command-center {
    align-self: start;
    position: sticky;
    top: 104px;
  }

  .admin-bar .bottom-grid .faq-command-center {
    top: 136px;
  }
}

@media (max-width: 1180px) {
  .faq-command-center {
    margin-top: 4px;
  }
}

@media (max-width: 760px) {
  .faq-command-center {
    padding: 23px 18px 20px;
    border-radius: 20px;
  }

  .faq-command-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-status-pill {
    justify-self: start;
  }

  .faq-quick-topics {
    grid-template-columns: 1fr;
  }

  .faq-command-center .faq-question {
    grid-template-columns: 31px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 11px 11px 11px 12px;
  }

  .faq-q-index {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .faq-q-copy strong {
    font-size: 12.8px;
  }

  .faq-command-center .faq-answer {
    padding-left: 53px;
    padding-right: 18px;
  }

  .faq-command-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-command-center .faq-more,
  .faq-support-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-command-center .faq-item,
  .faq-command-center .faq-question > i,
  .faq-command-center .faq-answer {
    transition: none;
  }
}
