/**
 * TURAN Product Footer — universal credit bar for product sites
 * https://turanjp.com
 *
 * Usage:
 *   <link rel="stylesheet" href="turan-product-footer.css" />
 *   <!-- paste snippet from snippet.html -->
 *
 * Themes:  data-theme="light" | "dark"
 * Locales: data-locale="zh" | "ja" | "en"
 */

.tpf {
  --tpf-bg: transparent;
  --tpf-border: rgba(10, 10, 10, 0.1);
  --tpf-text: #3a3a3a;
  --tpf-text-faint: #8a8a8a;
  --tpf-accent: #0b5c55;
  --tpf-accent-hover: #074540;
  --tpf-product-link: #0a0a0a;

  border-top: 1px solid var(--tpf-border);
  background: var(--tpf-bg);
  color: var(--tpf-text);
  font-family: "Noto Sans SC", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.tpf[data-theme='dark'] {
  --tpf-border: rgba(250, 250, 250, 0.12);
  --tpf-text: rgba(250, 250, 250, 0.72);
  --tpf-text-faint: rgba(250, 250, 250, 0.45);
  --tpf-product-link: #fafafa;
}

.tpf__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
}

.tpf__product {
  margin: 0;
  color: var(--tpf-text-faint);
}

.tpf__product-link {
  color: var(--tpf-product-link);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.tpf__product-link:hover {
  opacity: 0.72;
}

.tpf__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tpf-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tpf__credit:hover {
  color: var(--tpf-accent);
}

.tpf__credit:hover .tpf__credit-domain {
  color: var(--tpf-accent);
}

.tpf__mark {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.88;
}

.tpf__credit-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.tpf__credit-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tpf__credit-domain {
  color: var(--tpf-text-faint);
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

@media (max-width: 480px) {
  .tpf__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
