/* ═══════════════════════════════════════════════════════════════
   Examples — filter pills, results table, lock section
   Loaded by examples.html and example_detail.html.
   ═══════════════════════════════════════════════════════════════ */

/* ── Filter Pills ── */
.examples-filter-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mkt-card-border);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--muted-foreground);
  font-family: var(--mk-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-decoration: none; /* anchor pills must look identical to button pills */
}
.examples-filter-pill:hover {
  border-color: var(--mkt-card-border-hover);
  color: var(--foreground);
}
.examples-filter-pill.active {
  background: var(--foreground);
  border-color: var(--foreground);
  color: hsl(0 0% 100%);
}

/* ── Results Table ── */
.examples-results-table {
  border-collapse: collapse;
  font-family: var(--mk-font-body);
  font-size: 13px;
}

/* Company avatar — bg/color set inline via avatar_hue */
.examples-company-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mk-font-mono);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Skeleton loading state (tbody lazy-load) ── */
@keyframes examples-skeleton-pulse {
  0%,
  100% {
    background-color: hsl(0 0% 94%);
  }
  50% {
    background-color: hsl(0 0% 97%);
  }
}

.examples-skeleton-row {
  border-bottom: 1px solid var(--mkt-card-border);
}

.examples-skeleton-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  animation: examples-skeleton-pulse 1.4s ease-in-out infinite;
}

.examples-skeleton-bar {
  height: 10px;
  border-radius: 4px;
  animation: examples-skeleton-pulse 1.4s ease-in-out infinite;
}

.examples-skeleton-bar-name {
  width: 60%;
  max-width: 140px;
}
.examples-skeleton-bar-domain {
  width: 70%;
  max-width: 140px;
}
.examples-skeleton-bar-desc {
  width: 95%;
  margin-bottom: 6px;
}
.examples-skeleton-bar-desc-short {
  width: 60%;
}
.examples-skeleton-bar-hq {
  width: 55%;
  max-width: 120px;
}

/* Stagger the animation across rows so it reads as one table, not 10 cells */
.examples-skeleton-row:nth-child(odd) .examples-skeleton-avatar,
.examples-skeleton-row:nth-child(odd) .examples-skeleton-bar {
  animation-delay: 0.2s;
}

/* ── Empty + error states (tbody partials) ── */
.examples-empty-cell,
.examples-error-cell {
  padding: 48px 24px;
  text-align: center;
}

.examples-empty-title,
.examples-error-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  margin: 0 0 4px;
}

.examples-empty-subtitle,
.examples-error-subtitle {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 0;
}

/* ── Browse card ── */
.example-browse-card {
  background: var(--card);
  border: 1px solid var(--mkt-card-border);
  text-decoration: none;
  transition:
    transform var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}
.example-browse-card:hover {
  transform: translateY(-4px);
  border-color: var(--mkt-card-border-hover);
  box-shadow: 0 10px 28px hsl(24 18% 13% / 0.08);
}

.example-browse-card__holo {
  display: inline-block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  opacity: 0.92;
  filter: saturate(0.96);
  transform-origin: center;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.example-browse-card__holo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.example-browse-card:hover .example-browse-card__holo {
  opacity: 1;
  filter: saturate(1.08);
  transform: rotate(6deg) scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .example-browse-card__holo {
    transition: opacity 150ms ease;
  }
  .example-browse-card:hover .example-browse-card__holo {
    transform: none;
    filter: saturate(1);
  }
}

.example-browse-card__pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mkt-card-border);
  border-radius: 999px;
  background: var(--mkt-bg-warm, hsl(40 12% 97%));
  color: var(--mkt-sage-text);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

.example-browse-card__title {
  margin: 1.125rem 0 0 0;
  color: var(--foreground);
  font-family: var(--mk-font-display, inherit);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.example-browse-card__desc {
  margin: 0.5rem 0 0 0;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: -0.002em;
}

.example-browse-card__cta {
  margin-top: auto;
  padding-top: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  color: var(--foreground);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.example-browse-card__cta svg {
  transition: transform 300ms ease;
}
.example-browse-card:hover .example-browse-card__cta svg {
  transform: translateX(2px);
}

/* ── Pagination ── */
.examples-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
}

.examples-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--mkt-card-border);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-decoration: none; /* anchor pagination buttons must look identical to <button> */
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}
.examples-pagination__btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--mkt-card-border-hover);
  color: var(--foreground);
}
.examples-pagination__btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.examples-pagination__btn.is-active {
  background: var(--foreground);
  border-color: var(--foreground);
  color: hsl(0 0% 100%);
  cursor: default;
}
.examples-pagination__btn--icon {
  width: 32px;
  min-width: 32px;
  padding: 0;
}
.examples-pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 4px;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .examples-results-table {
    font-size: 12px;
  }
}

/* Mobile readability: bump sub-12px labels to 12px on small screens (WCAG
   soft floor). Desktop typography preserved. */
@media (max-width: 768px) {
  .examples-filter-pill,
  .examples-company-avatar,
  .example-browse-card__pill,
  .example-browse-card__cta {
    font-size: 12px;
  }
}
