/* ════════════════════════════════════════════════════════════════
   ATP PREDICTIVE — Dropdown de escritura predictiva
   ════════════════════════════════════════════════════════════════ */

.atp-pred-dropdown{
  position: fixed;
  background: #181818;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4);
  font-family: var(--ff-sans, -apple-system, system-ui, sans-serif);
  font-size: 13px;
  color: #e8e8e8;
  overflow-y: auto;
  max-height: 320px;
  padding: 4px 0;
  animation: atpPredFadeIn 120ms ease-out;
}

@keyframes atpPredFadeIn{
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.atp-pred-item{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 60ms;
}
.atp-pred-item:hover,
.atp-pred-item.atp-pred-selected{
  background: rgba(232,184,75,.10);
  border-left-color: var(--gold, #e8b84b);
}

.atp-pred-tag{
  flex-shrink: 0;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: var(--ff-mono, monospace);
  border: 1px solid;
  margin-top: 1px;
  min-width: 44px;
  text-align: center;
}
.atp-pred-tag-safe{
  color: #4ad0d8;
  border-color: rgba(74,208,216,.4);
  background: rgba(74,208,216,.08);
}
.atp-pred-tag-combo{
  color: #d878a0;
  border-color: rgba(216,120,160,.4);
  background: rgba(216,120,160,.08);
}
.atp-pred-tag-wild{
  color: #a04ae8;
  border-color: rgba(160,74,232,.45);
  background: rgba(160,74,232,.10);
}
.atp-pred-tag-wildmax{
  color: #e8b84b;
  border-color: rgba(232,184,75,.5);
  background: rgba(232,184,75,.12);
  font-weight: 700;
}

/* Personal corpus badge — "✦ you". Verde-azulado, distinto del resto
   para que el usuario reconozca inmediatamente que es vocabulario suyo. */
.atp-pred-tag-personal{
  color: #6be3a8;
  border-color: rgba(107,227,168,.5);
  background: rgba(107,227,168,.12);
  font-weight: 700;
}
.atp-pred-item.atp-pred-personal{
  background: rgba(107,227,168,.04);
  border-left-color: rgba(107,227,168,.35);
}
.atp-pred-item.atp-pred-personal:hover,
.atp-pred-item.atp-pred-personal.atp-pred-selected{
  background: rgba(107,227,168,.12);
  border-left-color: #6be3a8;
}
.atp-pred-count{
  display: inline-block;
  margin-left: 6px;
  padding: 0 4px;
  font-size: 10px;
  font-family: var(--ff-mono, monospace);
  color: #6be3a8;
  background: rgba(107,227,168,.10);
  border: 1px solid rgba(107,227,168,.30);
  border-radius: 3px;
  vertical-align: 1px;
}

.atp-pred-text{
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  word-break: break-word;
  color: #e8e8e8;
}

.atp-pred-footer{
  padding: 6px 10px;
  border-top: 1px solid #2a2a2a;
  margin-top: 4px;
  font-size: 11px;
  color: #888;
  font-family: var(--ff-mono, monospace);
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.atp-pred-footer kbd{
  display: inline-block;
  padding: 1px 5px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 3px;
  font-size: 10px;
  color: #c8c8c8;
  font-family: var(--ff-mono, monospace);
  margin-right: 2px;
}

/* Scrollbar fino para el dropdown */
.atp-pred-dropdown::-webkit-scrollbar{ width: 8px; }
.atp-pred-dropdown::-webkit-scrollbar-track{ background: transparent; }
.atp-pred-dropdown::-webkit-scrollbar-thumb{
  background: #3a3a3a;
  border-radius: 4px;
}
.atp-pred-dropdown::-webkit-scrollbar-thumb:hover{ background: #4a4a4a; }
