/* Khary Finds — camada visual sobre o LittleLink.
   Cores ficam todas aqui em variáveis: para mudar o tema, edite só este bloco. */
:root {
  --kf-bg: #e9e9ec;          /* fundo da página */
  --kf-card: #f4f4f6;        /* cartão central */
  --kf-item: #ffffff;        /* botões da lista */
  --kf-text: #111111;
  --kf-muted: #6b6b73;
  --kf-accent: #25d366;      /* destaque (WhatsApp) */
  --kf-shadow: 0 1px 3px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) {
  :root.theme-auto {
    --kf-bg: #0e0e10; --kf-card: #18181b; --kf-item: #232327;
    --kf-text: #f2f2f2; --kf-muted: #a1a1aa; --kf-shadow: none;
  }
}
:root.theme-dark {
  --kf-bg: #0e0e10; --kf-card: #18181b; --kf-item: #232327;
  --kf-text: #f2f2f2; --kf-muted: #a1a1aa; --kf-shadow: none;
}

:root body, :root.theme-auto body, :root.theme-dark body {
  background: var(--kf-bg);
  color: var(--kf-text);
}
.container { width: 100% !important; max-width: 30rem; padding: 16px; }

.kf-card {
  background: var(--kf-card);
  border-radius: 24px;
  padding: 40px 20px 28px;
}

.kf-card h1 { font-size: var(--scale-2); margin: 16px 0 4px; color: var(--kf-text); }
.kf-card .kf-subtitle { margin: 0 0 16px !important; color: var(--kf-text); line-height: 1.4; }

.kf-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 28px; }
.kf-socials a { color: var(--kf-text) !important; display: inline-flex; transition: transform .15s; }
.kf-socials a:hover { transform: scale(1.1); }
.kf-socials svg { width: 28px; height: 28px; fill: currentColor; }

.kf-links { display: flex; flex-direction: column; gap: 12px; }
.kf-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--kf-item);
  border-radius: 14px;
  padding: 8px 48px 8px 8px;   /* espaço à direita equilibra a thumb e centraliza o texto */
  min-height: 64px;
  box-shadow: var(--kf-shadow);
  text-decoration: none !important;
  color: var(--kf-text) !important;
  transition: transform .15s;
}
.kf-link:hover { transform: translateY(-2px); }
.kf-thumb {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.kf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kf-thumb--whatsapp { background: var(--kf-accent); }
.kf-thumb--whatsapp img { width: 28px; height: 28px; }
.kf-text { flex: 1; display: flex; flex-direction: column; text-align: center; line-height: 1.3; }
.kf-title { font-weight: 700; }
.kf-meta { font-size: .8rem; color: var(--kf-muted); }

.kf-card .kf-disclaimer { margin: 28px 0 0 !important; line-height: 1.4; font-size: .75rem; color: var(--kf-muted); }
.kf-thumb--icon svg { width: 28px; height: 28px; fill: #fff; }

/* Foto e logo em círculo, com zoom/posição vindos do config */
.kf-avatar, .kf-logo { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; }
.kf-avatar { width: 128px; height: 128px; }
.kf-avatar img, .kf-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-card h1.kf-name { display: flex; align-items: center; justify-content: center; gap: 10px; }
.kf-logo { width: 36px; height: 36px; }
.kf-card .kf-disclaimer { white-space: pre-line; }

/* Painel "conectado" abaixo de um link (destaques + lojas) */
.kf-group { display: flex; flex-direction: column; }
.kf-group .kf-link { position: relative; z-index: 1; }
.kf-extra {
  margin-top: -14px;                 /* topo escondido atrás do botão */
  padding: 28px 18px 18px;
  border-radius: 0 0 14px 14px;
  background: color-mix(in srgb, var(--kf-item) 45%, var(--kf-card));
  box-shadow: var(--kf-shadow);
}
.kf-feats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
  text-align: left;
}
.kf-feats li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .8rem; line-height: 1.25; color: var(--kf-text); }
.kf-feats svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kf-stores { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.kf-store {
  width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--kf-item); box-shadow: var(--kf-shadow);
  font-size: .65rem; font-weight: 700; color: var(--kf-text) !important; text-decoration: none !important;
  line-height: 1.1; text-align: center; padding: 4px; box-sizing: border-box;
}
.kf-store img { object-fit: contain; display: block; }
.kf-store:has(img) { padding: 0; }
@media (max-width: 340px) { .kf-feats { grid-template-columns: 1fr; } }
