/* =====================================================
   NasusRP Account Cards — Catálogo de cuentas (1.10.0)
   Buscador de las categorías «Unranked» y cuentas destacadas.
   Usa los colores del tema (--nx-*), con respaldo si no están.
   ===================================================== */

/* ---------- Buscador ---------- */
.nx-acc-buscador {
    --nxa-gold: #ffc857;
    --nxa-pink: #ff3366;
    margin: 26px 0 0;
    padding: 18px 20px;
    max-width: 1180px;
    border: 1px solid var(--nx-line-2, rgba(255, 255, 255, .14));
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(0, 240, 255, .07), rgba(255, 255, 255, .02));
    color: var(--nx-ink, #f5f5f7);
    font-family: var(--nx-font-sans, system-ui, sans-serif);
    text-align: left;
}
.nx-acc-buscador.is-activo { border-color: rgba(0, 240, 255, .45); }
.nx-acc-buscador-tit {
    margin: 0 0 12px;
    font-family: var(--nx-font-mono, ui-monospace, monospace);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nx-accent, #00f0ff);
}
.nx-acc-buscador-fila {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}
.nx-acc-campo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin: 0;
}
.nx-acc-campo > span {
    font-family: var(--nx-font-mono, ui-monospace, monospace);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--nx-ink-dim, #9a9aab);
}
.nx-acc-campo--skin { flex: 1 1 300px; }
.nx-acc-campo--min { flex: 0 0 180px; }
.nx-acc-buscador input[type="search"],
.nx-acc-buscador select {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--nx-line-2, rgba(255, 255, 255, .14));
    border-radius: 12px;
    background: rgba(7, 7, 12, .75);
    color: var(--nx-ink, #f5f5f7);
    font: inherit;
    font-size: 16px; /* 16px: el iPhone no hace zoom al tocar */
}
.nx-acc-buscador select { cursor: pointer; }
.nx-acc-buscador select option { background: #12121c; color: #f5f5f7; }
.nx-acc-buscador input[type="search"]::placeholder { color: var(--nx-ink-low, #5c5c6e); }
.nx-acc-buscador input[type="search"]:focus,
.nx-acc-buscador select:focus {
    outline: none;
    border-color: var(--nx-accent, #00f0ff);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, .18);
}
.nx-acc-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nx-acc-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--nx-line-2, rgba(255, 255, 255, .14));
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, background .2s ease;
}
.nx-acc-check input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.nx-acc-check--def input { accent-color: var(--nxa-gold); }
.nx-acc-check--leg input { accent-color: var(--nxa-pink); }
.nx-acc-check small {
    margin-left: 2px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-family: var(--nx-font-mono, ui-monospace, monospace);
    font-size: 11px;
}
.nx-acc-check--def:hover, .nx-acc-check--def:has(input:checked) { border-color: var(--nxa-gold); background: rgba(255, 200, 87, .12); }
.nx-acc-check--leg:hover, .nx-acc-check--leg:has(input:checked) { border-color: var(--nxa-pink); background: rgba(255, 51, 102, .1); }
.nx-acc-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nx-acc-btn {
    height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: var(--nx-accent, #00f0ff);
    color: var(--nx-bg, #07070c);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}
.nx-acc-btn:hover { box-shadow: 0 8px 24px rgba(0, 240, 255, .35); transform: translateY(-1px); }
.nx-acc-limpiar {
    font-size: 13px;
    color: var(--nx-ink-dim, #9a9aab);
    text-decoration: underline;
    white-space: nowrap;
}
.nx-acc-limpiar:hover { color: var(--nx-ink, #f5f5f7); }

/* Atajos: definitivas y legendarias disponibles */
.nx-acc-atajos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}
.nx-acc-atajos-tit {
    margin-right: 4px;
    font-size: 12px;
    color: var(--nx-ink-dim, #9a9aab);
    white-space: nowrap;
}
.nx-acc-atajo {
    padding: 5px 11px;
    border: 1px solid var(--nx-line-2, rgba(255, 255, 255, .14));
    border-radius: 999px;
    font-size: 12.5px;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--nx-ink, #f5f5f7);
    transition: background .2s ease, border-color .2s ease;
}
.nx-acc-atajo small { opacity: .7; }
.nx-acc-atajos--def .nx-acc-atajo { border-color: rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .08); color: #ffe2a3; }
.nx-acc-atajos--def .nx-acc-atajo:hover,
.nx-acc-atajos--def .nx-acc-atajo.is-on { background: var(--nxa-gold); border-color: var(--nxa-gold); color: #07070c; }
.nx-acc-atajos--leg .nx-acc-atajo { border-color: rgba(255, 51, 102, .45); background: rgba(255, 51, 102, .07); color: #ffb3c4; }
.nx-acc-atajos--leg .nx-acc-atajo:hover,
.nx-acc-atajos--leg .nx-acc-atajo.is-on { background: var(--nxa-pink); border-color: var(--nxa-pink); color: #fff; }
.nx-acc-buscador-nota {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--nx-accent, #00f0ff);
}

.nx-acc-movil { display: none; }

@media (max-width: 767px) {
    .nx-acc-pc { display: none; }
    .nx-acc-movil { display: inline; }
    .nx-acc-buscador { margin-top: 18px; padding: 14px; border-radius: 14px; }
    .nx-acc-campo--skin { flex-basis: 100%; }
    .nx-acc-campo--min { flex: 1 1 100%; }
    .nx-acc-checks { width: 100%; }
    .nx-acc-check { flex: 1 1 0; justify-content: center; gap: 6px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
    .nx-acc-check small { padding: 1px 5px; font-size: 10px; }
    .nx-acc-acciones { width: 100%; }
    .nx-acc-btn { flex: 1; }
    /* Atajos en una fila que se desliza (no ocupan media pantalla) */
    .nx-acc-atajos { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .nx-acc-atajos::-webkit-scrollbar { display: none; }
}

/* ---------- Tarjetas destacadas en el catálogo ---------- */
html body ul.products li.product.nx-acc-def .shop__item {
    border-color: rgba(255, 200, 87, .6) !important;
    background: linear-gradient(180deg, rgba(255, 200, 87, .13), rgba(255, 255, 255, .015) 55%) !important;
    box-shadow: 0 0 0 1px rgba(255, 200, 87, .35), 0 10px 34px rgba(255, 200, 87, .15) !important;
}
html body ul.products li.product.nx-acc-def:hover .shop__item {
    box-shadow: 0 0 0 1px rgba(255, 200, 87, .7), 0 18px 44px rgba(255, 200, 87, .28) !important;
}
html body ul.products li.product.nx-acc-leg .shop__item {
    border-color: rgba(255, 51, 102, .5) !important;
    background: linear-gradient(180deg, rgba(255, 51, 102, .1), rgba(255, 255, 255, .015) 55%) !important;
    box-shadow: 0 0 0 1px rgba(255, 51, 102, .25), 0 10px 30px rgba(255, 51, 102, .12) !important;
}
html body ul.products li.product.nx-acc-leg:hover .shop__item {
    box-shadow: 0 0 0 1px rgba(255, 51, 102, .6), 0 18px 40px rgba(255, 51, 102, .24) !important;
}

/* Cinta sobre la foto */
.nx-acc-cinta {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--nx-font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.2;
    pointer-events: none;
    white-space: nowrap;
}
.nx-acc-cinta--def {
    background: linear-gradient(135deg, #ffe08a, #ffc857 45%, #f59e0b);
    color: #1a1204;
    box-shadow: 0 4px 16px rgba(255, 200, 87, .55);
}
.nx-acc-cinta--leg {
    background: linear-gradient(135deg, #ff6b8e, #ff3366);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 51, 102, .5);
}

/* Foto oficial de la skin: retrato, se centra arriba (la cara) */
html body ul.products .shop__item-thumb img.nx-acc-foto {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 22% !important;
}

/* Etiquetas debajo del título */
.nx-acc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 6px;
}
.nx-acc-tag {
    max-width: 100%;
    overflow: hidden;
    padding: 4px 7px;
    border: 1px solid var(--nx-line, rgba(255, 255, 255, .08));
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    color: var(--nx-ink-dim, #9a9aab);
    font-family: var(--nx-font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nx-acc-tag--def { border-color: rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .12); color: #ffd98a; }
.nx-acc-tag--leg { border-color: rgba(255, 51, 102, .45); background: rgba(255, 51, 102, .1); color: #ff9ab1; }

@media (max-width: 767px) {
    .nx-acc-cinta { top: 14px; right: 14px; padding: 4px 8px; font-size: 10px; }
    .nx-acc-tag { font-size: 10px; padding: 3px 6px; }
}
