﻿/* ==========================================================================
   FindPaidFocusGroup — /focus-groups/ lean-feed listing page
   Loaded after home.css (design tokens, base components).
   ========================================================================== */

/* ---------- Breadcrumbs ---------- */
.fp .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.fp .crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-muted); }
.fp .crumbs a:hover { color: var(--brand); text-decoration: underline; }
.fp .crumbs span { color: var(--ink); }

/* ---------- Page header ---------- */
.fp .fg-header {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Sticky type-filter bar ---------- */
.fp .fg-filter {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.fp .fg-filter .wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 64px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fp .fg-filter .wrap::-webkit-scrollbar { display: none; }
.fp .fg-filter .sp { flex: 1; }

/* ---------- Two-column layout ---------- */
.fp .fg-body { padding: 32px 0 64px; }
.fp .fg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.fp .fg-layout > * { min-width: 0; }
.fp .fg-aside {
  position: sticky;
  top: 80px;
  display: grid;
  gap: 20px;
}

/* ---------- Row list ---------- */
.fp .fg-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fp .fg-list .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .1s;
}
.fp .fg-list .row:last-child { border-bottom: 0; }
.fp .fg-list .row:hover { background: var(--surface-100); }

.fp .fg-list .row-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.fp .fg-list .row h3 { font-size: 17px; line-height: 24px; font-weight: 700; }
.fp .fg-list .row .meta { margin-top: 4px; font-size: 14px; }

/* Row tags */
.fp .row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fp .row-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* In-feed ad slot */
.fp .fg-infeed {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--surface-100);
  height: 120px;
  margin: 16px 0;
}

/* ---------- Sidebar widgets ---------- */
.fp .fg-widget {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.fp .fg-widget h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.fp .fg-top-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
}
.fp .fg-top-item + .fp .fg-top-item { border-top: 1px solid var(--line); }
.fp .fg-top-item:hover { color: var(--brand); }
.fp .fg-top-item__pay { color: var(--pay); font-weight: 800; flex-shrink: 0; }
.fp .fg-top-item__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }

/* ---------- Pagination ---------- */
.fp .fg-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.fp .fg-pagination .chip { text-decoration: none; }
.fp .fg-pagination .chip.on { cursor: default; }

/* ---------- Prose / How it works ---------- */
.fp .fg-prose { max-width: 820px; font-size: 17px; line-height: 28px; }
.fp .fg-prose h3 { margin: 24px 0 6px; }

.fp .fg-pay-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.fp .fg-pay-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fp .fg-pay-table td:last-child { text-align: right; font-weight: 700; color: var(--pay); }

/* ---------- FAQ ---------- */
.fp details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.fp summary {
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.fp summary::-webkit-details-marker { display: none; }
.fp summary::after { content: "+"; color: var(--brand); font-size: 22px; flex-shrink: 0; }
.fp details[open] summary::after { content: "−"; }
.fp details p { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--ink-muted); }

/* ---------- Topic grid ---------- */
.fp .fg-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.fp .topic-group h3 { font-size: 15px; line-height: 22px; margin-bottom: 10px; }
.fp .topic-group .chips { gap: 8px; }
.fp .topic-count { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }

/* ---------- Search results form ---------- */
.fp .sr-form { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; }
.fp .sr-fields { display: flex; flex-direction: column; gap: 10px; }
.fp .sr-fields-row { display: flex; gap: 10px; align-items: center; }
.fp .sr-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: 16px var(--font-sans);
  color: var(--ink);
}
.fp .sr-input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.fp .sr-select {
  flex: 1;
  height: 44px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2352615a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  font: 15px var(--font-sans);
  color: var(--ink);
  appearance: none;
  cursor: pointer;
  min-width: 0;
}
.fp .sr-select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.fp .sr-form .btn { height: 44px; flex-shrink: 0; }

/* Active filter chips row */
.fp .sr-active { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.fp .sr-active .chip { gap: 6px; }
.fp .sr-active .chip-x { font-size: 16px; line-height: 1; color: var(--ink-muted); }
.fp .sr-active .chip-x:hover { color: var(--ink); }

/* No results */
.fp .sr-noresults { padding: 60px 0; text-align: center; }
.fp .sr-noresults h2 { font-size: 22px; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fp .fg-layout { grid-template-columns: minmax(0, 1fr); }
  .fp .fg-aside { position: static; }
  .fp .fg-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 640px) {
  .fp .fg-header { padding: 20px 0 18px; }
  .fp .fg-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .fp .fg-list .row { padding: 14px 16px; gap: 12px; }
}
