/* Portfolio, agent strip and channel badges.
   Shared by the homepage and /website-design so they can never drift apart. */

/* ---------------------------------------------------------- filter tabs */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 2.25rem auto 0;
}
.pf-filter {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-300);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.pf-filter span {
  color: var(--slate-500);
  font-weight: 700;
  margin-left: 0.3rem;
}
.pf-filter:hover { border-color: rgba(59, 130, 246, 0.45); color: #fff; }
.pf-filter.is-active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.pf-filter.is-active span { color: rgba(255, 255, 255, 0.75); }

/* -------------------------------------------------------------- the grid */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 1.75rem;
  max-width: 72rem;
  margin: 2rem auto 0;
}
.pf-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 20px 50px -18px rgba(59, 130, 246, 0.4);
}
.pf-card[hidden] { display: none; }

/* --------------------------------------------------------- screenshot */
.pf-shot { position: relative; background: #0b1220; }
.pf-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pf-badges {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 1.4rem);
}
.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pf-badge--live { background: rgba(2, 6, 23, 0.8); border: 1px solid rgba(74, 222, 128, 0.45); color: #4ade80; }
.pf-badge--agent { background: rgba(2, 6, 23, 0.8); border: 1px solid rgba(96, 165, 250, 0.5); color: #93c5fd; }
.pf-badge--client { background: rgba(2, 6, 23, 0.8); border: 1px solid rgba(34, 197, 94, 0.45); color: #4ade80; }
.pf-pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pfpulse 2.2s infinite;
}
@keyframes pfpulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 0.45rem rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* -------------------------------------------------------------- body */
.pf-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.pf-head h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0; }
.pf-niche { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--blue-400); }
.pf-desc { color: var(--slate-300); font-size: 0.93rem; line-height: 1.7; margin: 0 0 1rem; }
.pf-list { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.pf-list li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.pf-check { color: var(--blue-400); flex-shrink: 0; margin-top: 0.12rem; }
.pf-try {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  color: var(--slate-300);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.pf-try strong { color: #93c5fd; }
.pf-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pf-url {
  font-size: 0.74rem;
  color: var(--slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}
.pf-link { color: var(--blue-400); font-weight: 700; font-size: 0.86rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap .2s, color .2s; }
.pf-link:hover { gap: 0.55rem; color: #93c5fd; }
.pf-note { text-align: center; color: var(--slate-500); font-size: 0.88rem; margin: 2.25rem auto 0; max-width: 44rem; line-height: 1.75; }
.pf-empty { text-align: center; color: var(--muted); margin: 2rem auto; }

/* ------------------------------------------------- "see it working" strip */
.ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.1rem;
  max-width: 68rem;
  margin: 0 auto;
}
.ag-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.14), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 1rem;
  padding: 1.25rem 1.2rem;
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ag-card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.6); box-shadow: 0 16px 36px -16px rgba(59, 130, 246, 0.5); }
.ag-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #4ade80; }
.ag-name { font-size: 1.05rem; font-weight: 800; color: #fff; }
.ag-niche { font-size: 0.74rem; color: var(--blue-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ag-prompt { color: var(--slate-300); font-size: 0.86rem; line-height: 1.55; margin-top: 0.3rem; }
.ag-go { color: var(--blue-400); font-size: 0.82rem; font-weight: 700; margin-top: 0.5rem; }
.ag-caption { text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin: 1.6rem auto 0; max-width: 44rem; }
.ag-caption a { color: var(--blue-400); font-weight: 600; }

/* ----------------------------------------------------- channel badges */
.ch-list { list-style: none; padding: 0; margin: 0 auto; max-width: 34rem; display: flex; flex-direction: column; gap: 0.55rem; }
.ch-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  padding: 0.65rem 0.9rem;
  color: var(--slate-300);
  font-size: 0.92rem;
}
.ch-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--slate-500); flex-shrink: 0; }
.ch-item[data-channel-state="live"] .ch-dot { background: #4ade80; }
.ch-state { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-500); }
.ch-item[data-channel-state="live"] .ch-state { color: #4ade80; }
.ch-waitlist { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 1.1rem auto 0; max-width: 34rem; line-height: 1.6; }
.ch-waitlist a { color: var(--blue-400); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .pf-pulse { animation: none; }
  .pf-card:hover, .ag-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .pf-body { padding: 1.15rem 1.1rem 1.3rem; }
  .pf-url { max-width: 100%; }
}
