/* tiktok/assets/css/style.css — painel de frases para live (usa as variáveis de /assets/css/tm-base.css) */

.tk-header {
  padding: 28px 24px 20px;
  text-align: center;
}

.tk-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--gold);
}

.tk-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.tk-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── busca ────────────────────────────────────────────────────── */
.tk-search-wrap {
  position: relative;
  margin-bottom: 18px;
}

.tk-search {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 14px 16px 14px 44px;
}

.tk-search:focus {
  outline: none;
  border-color: var(--gold);
}

.tk-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

/* ── filtros ──────────────────────────────────────────────────── */
.tk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tk-chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}

.tk-chip:hover {
  border-color: rgba(212, 175, 55, .5);
  color: var(--text);
}

.tk-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0B0B;
}

.tk-chip.active:hover {
  transform: translateY(-1px);
}

.tk-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.tk-btn-action {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
  text-align: center;
}

.tk-btn-action:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.tk-btn-random {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0B0B0B;
  border: none;
}

.tk-btn-live {
  background: var(--bg3);
  border-color: rgba(212, 175, 55, .4);
  color: var(--gold);
}

.tk-btn-translate.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--bg3);
}

/* ── painel do tradutor ───────────────────────────────────────── */
.tk-translate-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: -10px 0 24px;
}

.tk-translate-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  resize: vertical;
}

.tk-translate-input:focus {
  outline: none;
  border-color: var(--gold);
}

.tk-translate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.tk-translate-row .tk-filters {
  margin: 0;
}

.tk-translate-go {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0B0B0B;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tk-translate-go:disabled {
  opacity: .5;
  cursor: default;
}

.tk-translate-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.tk-translate-phrase {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.tk-translate-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}

.tk-count {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: .3px;
}

/* ── grid de cards ────────────────────────────────────────────── */
.tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.tk-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-card:hover {
  border-color: rgba(212, 175, 55, .5);
  transform: translateY(-3px);
}

.tk-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tk-card-lang {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.tk-fav-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  color: rgba(255, 255, 255, .25);
  transition: color .15s, transform .15s;
}

.tk-fav-btn:hover {
  transform: scale(1.15);
}

.tk-fav-btn.active {
  color: var(--gold);
}

.tk-card-phrase {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.tk-card-pron {
  font-size: 12px;
  color: var(--gold2);
  font-style: italic;
}

.tk-card-mean {
  font-size: 13px;
  color: var(--muted);
}

.tk-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ── overlay de detalhe ───────────────────────────────────────── */
.tk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tk-overlay.hidden {
  display: none;
}

.tk-detail {
  width: 100%;
  max-width: 640px;
  background: var(--bg2);
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  position: relative;
}

.tk-detail-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.tk-detail-close:hover {
  color: #fff;
}

.tk-detail-lang {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.tk-detail-phrase {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 16px;
}

.tk-detail-pron {
  font-size: 15px;
  color: var(--gold2);
  font-style: italic;
  margin-bottom: 10px;
}

.tk-detail-mean {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
}

.tk-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}

.tk-detail-actions button {
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.tk-detail-actions button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tk-detail-actions button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #0B0B0B;
}

.tk-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tk-detail-nav button {
  flex: 1;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.tk-detail-nav button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.tk-detail-nav button:disabled {
  opacity: .3;
  cursor: default;
}

/* ── modo live ────────────────────────────────────────────────── */
.tk-live {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 300000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.tk-live.hidden {
  display: none;
}

.tk-live-exit {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}

.tk-live-exit:hover {
  color: #fff;
  border-color: #fff;
}

.tk-live-lang {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.tk-live-phrase {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  max-width: 1100px;
  margin-bottom: 24px;
}

.tk-live-pron {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--gold2);
  font-style: italic;
  margin-bottom: 12px;
}

.tk-live-mean {
  font-size: clamp(16px, 2.2vw, 26px);
  color: rgba(255, 255, 255, .55);
  margin-bottom: 48px;
}

.tk-live-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.tk-live-controls button {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .8);
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.tk-live-controls button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tk-live-controls .tk-live-random {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0B0B0B;
  border: none;
}

.tk-live-fade {
  animation: tkFade .25s ease;
}

@keyframes tkFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tk-toast-copy {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0B0B0B;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  z-index: 400000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.tk-toast-copy.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

@media (max-width: 640px) {
  .tk-title { font-size: 26px; }
  .tk-detail { padding: 30px 22px; }
  .tk-detail-phrase { font-size: 26px; }
  .tk-btn-action { min-width: 100%; }
}
