/* =========================================================
   Niche Finder – Channel Cards
   White, calm, research-style
   ========================================================= */

.nf-card{
  background:#fff;
  border:1px solid rgba(15,19,32,.08);
  border-radius:var(--r-lg);
  box-shadow:0 14px 40px rgba(12,24,60,.08);
  padding:22px 26px;
  margin-bottom:18px;
}

.nf-card__inner{}

/* =========================================================
   Header row: Profile + Metrics on same baseline
   ========================================================= */

.nf-row{
  display:flex;
  align-items:center;               /* same height baseline */
  justify-content:space-between;
  gap:28px;
  min-width:0;
}

/* ---------- Identity (must be shrinkable so metrics stay on row) ---------- */
.nf-ident{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;

  /* IMPORTANT: do NOT let identity eat all available width */
  flex:0 1 auto;                    /* was 1 1 auto */
  max-width:56%;                    /* keeps room for metrics */
}

.nf-avatar{
  width:52px;
  height:52px;
  border-radius:999px;
  overflow:hidden;
  flex:0 0 auto;
  background:#111;
}
.nf-avatar img{ width:100%; height:100%; object-fit:cover; }

.nf-namebox{ min-width:0; }

.nf-name{
  margin:0;
  font-weight:700;
  font-size:1.02rem;
  color:var(--text);
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

.nf-handle{
  margin:4px 0 0;
  font-size:.9rem;
  color:var(--muted-2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

/* =========================================================
   Metrics — left-aligned, content-driven, calm typography
   - width determined by content (no fixed widths)
   - readable numbers (less weight, tabular)
   - spacious gaps
   ========================================================= */

.nf-metrics{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:56px;                         /* more spacing between metrics */
  margin:0;
  flex:0 0 auto;
  min-width:0;
  margin-right:auto;                 /* push to the right */
  white-space:nowrap;               /* safety: keep on one line */
  font-variant-numeric: tabular-nums;
}

.nf-metric{
  display:flex;
  flex-direction:column;
  align-items:flex-start;           /* left aligned */
  gap:6px;
  min-width:max-content;            /* width driven by content */
  padding:2px 0;
}

.nf-metric__v{
  margin:0;
  font-size:1.05rem;                /* slightly smaller */
  line-height:1.15;
  font-weight:600;                  /* less heavy than before */
  color:var(--text);
  white-space:nowrap;
}

.nf-metric__k{
  margin:0;
  font-size:.88rem;                 /* slightly smaller */
  line-height:1.2;
  font-weight:500;
  color:var(--muted-2);
  text-transform:none;
  letter-spacing:0;
}

/* ---------- Responsive metrics wrapping ---------- */
@media (max-width: 1100px){
  .nf-row{ align-items:flex-start; }

  .nf-ident{ max-width:100%; }

  .nf-metrics{
    flex-wrap:wrap;
    row-gap:18px;
    column-gap:40px;
    justify-content:flex-start;
    white-space:normal;
    margin-left:0;
  }
}

@media (max-width: 720px){
  .nf-row{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .nf-metrics{
    gap:22px;
    flex-wrap:wrap;
  }

  .nf-metric__v{ white-space:normal; }
}

/* =========================================================
   Proof videos — 4-up grid, fills card width
   YouTube-ish look: slightly sharper corners, airy typography
   ========================================================= */

.nf-proof{
  margin-top:20px;
  padding-top:18px;
  padding-bottom:18px;
  border-top:1px solid rgba(15,19,32,.06);
  border-bottom:1px solid rgba(15,19,32,.06);
}

.nf-proof__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

.nf-proof__h{
  margin:0;
  font-size:1rem;
  font-weight:650;
  color:var(--text);
}

/* Grid: 4 thumbs fill the card width */
.nf-proof__rail{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:20px;
  align-items:start;
}

/* Card link */
.nf-proof__card{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* Thumbnail */
.nf-proof__img{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  background:transparent;
  border-radius:12px;               /* less rounded than before */
  overflow:hidden;
  margin-bottom:10px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.nf-proof__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.nf-proof__badge{
  position:absolute;
  left:10px;
  bottom:10px;
  font-size:.7rem;
  font-weight:600;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.75);
  color:#fff;
}

/* Hover: subtle lift like YouTube cards */
.nf-proof__card:hover .nf-proof__img{
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(12,24,60,.12);
}

/* Text */
.nf-proof__meta{
  padding:0 2px;
  display:flex;
  flex-direction:column;
  gap:8px;                          /* air */
}

/* Title: left aligned, bigger, lighter */
.nf-proof__title{
  margin:0;
  text-align:left;
  font-size:1.0rem;
  font-weight:520;                  /* lighter than 600 */
  line-height:1.35;
  color:var(--text);

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Meta line: bigger + airy, not bold */
.nf-proof__line{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:.9rem;
  color:var(--muted-2);
  line-height:1.35;
  font-weight:420;
}

.nf-proof__dot{ opacity:.6; }

/* Revenue: numbers only, slightly stronger but not heavy */
.nf-proof__rev{
  color:var(--text);
  font-weight:500;
}

/* Responsive */
@media (max-width: 1100px){
  .nf-proof__rail{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .nf-proof__rail{ grid-template-columns:1fr; }
}

/* Card must be positioning context */
.nf-card{
  position:relative;
}
/* =========================================================
   Card footer – verification
   ========================================================= */

.nf-footer{
  display:flex;
  align-items:center;
  justify-content:space-between; /* links chips, rechts verified */
  gap:14px;
  padding-top:14px;              /* Luft nach Trennlinie */
}
.nf-footer__left{
  flex:1 1 auto;
  min-width:0;
}
.nf-footer__right{
  flex:0 0 auto;
}


.nf-verified{
  display:flex;
  align-items:center;
  gap:4px;

  font-size:.88rem;                 /* wie metric label */
  font-weight:500;
  color:var(--muted-2);
}

.nf-verified img{
  width:20px;
  height:20px;
}

/* Secondary labels (chips) */
.nf-tags{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}

.nf-tag{
  display:inline-flex;
  align-items:center;

  padding:8px 10px;
  border-radius:8px;
  background:rgba(15,19,32,.06);

  font-size:.88rem;      /* wie metric label */
  font-weight:500;
  color:var(--muted-2);
  line-height:1;
  white-space:nowrap;

  cursor:pointer;
  user-select:none;
}

.nf-tag:hover {
  background:var(--surface); 
}

.nf-tag--more{
  font-weight:600;
}

@media (max-width: 720px){
  .nf-footer{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .nf-footer__right{
    align-self:flex-end;
  }
}


/* =========================================================
   Results spacing (more distance from searchbar)
   ========================================================= */

.nf-results{
  margin-top:26px; /* mehr Abstand nach Search/Trust/Loader */
}

/* falls du es noch stärker willst: 34px */

/* Optional: extra Luft oben in der Liste */
.nf-list{
  margin-top:10px;
}

/* =========================================================
   Rotates pill (top-right above results)
   ========================================================= */

.nf-results__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px; /* Abstand zur ersten Card */
}

.nf-results__spacer{ flex:1 1 auto; }

.nf-rotates{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:4px;

  padding:16px 16px;
  border-radius:8px;
  background:rgba(15,19,32,.06);

  color:var(--muted-2);
  font-weight:600;
  font-size:.88rem;
  line-height:1;
  font-variant-numeric: tabular-nums;
}

.nf-rotates__icon{
  width:20px;
  height:20px;
  opacity:.65;
  flex:0 0 auto;
}

/* ======================================================================
   Locked blur (demo / non-PRO)
   - Blurs: avatar, name/handle, video thumbnails, video titles
   - Keeps metrics + views/age readable for proof
   ====================================================================== */

.nf-card.is-locked .nf-avatar img,
.nf-card.is-locked .nf-namebox,
.nf-card.is-locked .nf-proof__img img,
.nf-card.is-locked .nf-proof__title{
  filter: blur(4px);
  transform: translateZ(0);
  
  transition: filter .22s ease;
  will-change: filter;
}

/* Only the hovered thumbnail gets slightly clearer */
.nf-card.is-locked .nf-proof__card:hover .nf-proof__img img{
  filter: blur(3px);
}
.nf-card.is-locked .nf-proof__card:hover .nf-proof__title{
  filter: blur(3px);
}

/* Disable selection (but keep hover) */
.nf-card.is-locked .nf-namebox,
.nf-card.is-locked .nf-proof__title{
  user-select: none;
}

/* Keep hover active; JS blocks navigation */
.nf-card.is-locked .nf-avatar,
.nf-card.is-locked .nf-proof__card{
  user-select: none;
}

/* Prevent dragging images */
.nf-card.is-locked img{
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto; /* optional but recommended */
}

/* Keep title height consistent */
.nf-card.is-locked .nf-proof__title{
  min-height: 2.6em;
}

/* =========================================================
   Topics Marquee (under searchbar)
   - white rounded cards
   - right-to-left infinite loop
   - fading edges aligned to searchbar width
   ========================================================= */

.nf-topics{
  width:auto;
  margin:12px auto 2px;
  position:relative;
}

.nf-topics__viewport{
  overflow:hidden;
  border-radius:14px;
}

.nf-topics__track{
  display:flex;
  align-items:center;
  gap:12px;
  width:max-content;
  padding:6px 0;
  will-change: transform;

  /* random start offset is injected via --nf-topics-offset */
  transform: translateX(var(--nf-topics-offset, 0px));

  animation: nfTopicsMarquee 90s linear infinite;
}


.nf-topic{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 16px;
  border-radius:8px;

  background:#fff;
  border:1px solid rgba(15,19,32,.08);

  font-size:.92rem;
  font-weight:600;
  color:var(--text);
  line-height:1;
  white-space:nowrap;

  cursor:pointer;
  user-select:none;
}



.nf-topics__fade{
  position:absolute;
  top:0;
  bottom:0;
  width:56px;
  pointer-events:none;
  z-index:2;
}



@keyframes nfTopicsMarquee{
  from { transform: translateX(var(--nf-topics-offset, 0px)); }
  to   { transform: translateX(calc(var(--nf-topics-offset, 0px) - 50%)); }
}

.nf-topics:hover .nf-topics__track{
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce){
  .nf-topics__track{ animation:none; }
}
