/* ============================================================
   FilexFlow - faq.css
   Estilos específicos para faq.html
   Usa layout.css como base.
   ============================================================ */

/* Layout principal FAQ */
.layout-faq {
  align-items: flex-start;
}

@media (min-width: 960px) {
  .layout-faq {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------
   CARD IZQUIERDO: FAQ principal
   ------------------------------------------------------------ */

.faq-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.layout-faq .card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 4px;
}

.layout-faq .card-subtitle {
  font-size: 0.9rem;
  max-width: 640px;
}

/* Buscador */

.faq-search {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-search-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.faq-search-input-wrapper {
  max-width: 420px;
}

.faq-search-input {
  font-size: 0.9rem;
}

/* Filtros */

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 6px;
}

.faq-filter {
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.05s ease;
}

.faq-filter:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--text);
}

/* Activo: mismo color que botón "Sign up free", sin sombra */
.faq-filter-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: none;
}

/* Grupos */

.faq-group {
  margin-top: 18px;
}

.faq-group + .faq-group {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.faq-group-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

/* Items FAQ (acordeón) */

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.82);
  overflow: hidden;
  color: inherit;
}

.faq-item + .faq-item {
  margin-top: 8px;
}

/* Modo light: fondo blanco en el card izquierdo */
body[data-theme="light"] .faq-item {
  background: #ffffff;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: inherit;
}

.faq-icon {
  font-size: 1.1rem;
  opacity: 0.85;
  transform-origin: center;
  transition: transform 0.15s ease;
}

/* Estado abierto */
.faq-item-open .faq-icon {
  transform: rotate(45deg); /* + -> x */
}

/* Respuesta */
.faq-answer {
  display: none;
  padding: 0 14px 12px 14px;
  font-size: 0.86rem;
}

/* Mostrar contenido cuando esté abierto */
.faq-item-open .faq-answer {
  display: block;
}

/* Listas */
.faq-list-bullets {
  margin-top: 6px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-list-bullets li {
  list-style: disc;
}

/* Colores de texto acordeón por tema para mejor contraste */

body[data-theme="dark"] .faq-question {
  color: #e5e7eb;
}

body[data-theme="dark"] .faq-answer {
  color: #9ca3af;
}

body[data-theme="light"] .faq-question {
  color: #0f172a;
}

body[data-theme="light"] .faq-answer {
  color: #4b5563;
}

/* ------------------------------------------------------------
   CARD DERECHO: Quick links + Status
   ------------------------------------------------------------ */

.faq-side {
  display: flex;
  flex-direction: column;
}

/* Card-right base: panel oscuro */
.layout-faq .card-right .card-inner {
  background: #020617;
  color: #e5e7eb;
}

/* Secciones internas del card-right */
.faq-side-section + .faq-side-section {
  margin-top: 16px; /* aire entre bloques grandes (3 boxes y status) */
}

/* Título y subtítulo del bloque Quick links */
.faq-side-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-side-sub {
  font-size: 0.8rem;
  color: #cbd5f5;
  margin-bottom: 10px;
}

/* Bloques Quick links: fondo oscuro */
.faq-side-block {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Aire vertical elegante entre cada uno de los 3 boxes */
.faq-side-block + .faq-side-block {
  margin-top: 12px;
}

.faq-side-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-side-block-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
}

.faq-side-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #9ca3af;
}

.faq-side-text {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Botones del card-right: reutilizan header-auth-btn */
.faq-side-btn {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 0.8rem;
  padding-inline: 16px;
}

/* Box de STATUS: mismo estilo que los otros boxes
   y un poco más cerca de ellos (ajustado con margin-top en .faq-side-section) */

.faq-side-status {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  flex-direction: column;
}

.faq-status-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-status-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
}

.faq-status-text {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.faq-status-dot {
  font-size: 0.78rem;
  color: #4ade80;
}

/* Más aire entre el texto "All systems operational" y el botón */
.faq-status-btn {
  margin-top: 10px; /* separa el botón del texto de status */
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 720px) {
  .faq-search-input-wrapper {
    max-width: 100%;
  }

  .faq-side {
    gap: 14px;
  }
}
