@charset "UTF-8";

/*
    enchantment-reference-v1_0.css
    Estilos específicos da página "Tabela de Referência de Encantamentos".
    Depende de principal-v3_0.css e dos componentes genéricos de tools-v1_1.css
    (reaproveita .result-grid e .result-card de lá).
*/

/* ── Estatísticas rápidas ───────────────────────────────────────────────── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.stat-mini-card {
    background: var(--color05);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
}

.stat-mini-value {
    font-family: monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

.stat-mini-label {
    font-size: 0.72em;
    color: var(--color04);
    margin-top: 4px;
}

/* ── Busca e filtro de edição ───────────────────────────────────────────── */
.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 220px;
    background-color: var(--color06);
    color: white;
    border: 2px solid var(--color01);
    border-radius: 8px;
    height: 46px;
    padding: 0 16px;
    font-size: 1em;
}

.search-input:focus {
    border-color: var(--color02);
    box-shadow: 0 0 5px var(--color02);
    outline: none;
}

.edition-filter-select {
    width: auto;
    min-width: 180px;
}

/* ── Filtro de categorias ───────────────────────────────────────────────── */
.category-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.category-pill {
    background: var(--color05);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.82em;
    color: #cfd8dc;
    cursor: pointer;
}

.category-pill:hover {
    border-color: var(--color01);
}

.category-pill.is-active {
    background: var(--color06);
    border-color: #3d5aa8;
    color: white;
}

/* ── Tabela de encantamentos ────────────────────────────────────────────── */
.enchant-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.enchant-ref-table th {
    text-align: left;
    font-size: 0.7em;
    color: var(--color04);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.enchant-ref-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: white;
    vertical-align: top;
}

.enchant-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 220px;
}

.enchant-name-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 2px;
}

.enchant-name-title {
    font-weight: bold;
    color: white;
    font-size: 0.95em;
}

.enchant-name-desc {
    font-size: 0.82em;
    color: var(--color04);
    margin-top: 2px;
    line-height: 1.4;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85em;
    background: var(--color06);
    color: #cfd8dc;
}

.level-badge.is-max {
    background: rgba(217, 69, 69, 0.25);
    color: #ff8080;
}

.item-pill {
    display: inline-block;
    background: var(--color06);
    color: #cfd8dc;
    font-size: 0.78em;
    padding: 3px 9px;
    border-radius: 10px;
    margin: 2px 3px 2px 0;
    white-space: nowrap;
}

.incompatible-pill {
    display: inline-block;
    background: rgba(217, 69, 69, 0.18);
    color: #ff8080;
    font-size: 0.78em;
    font-weight: bold;
    padding: 3px 9px;
    border-radius: 10px;
    margin: 2px 3px 2px 0;
    white-space: nowrap;
}

.no-incompatible {
    color: var(--color04);
}

.rarity-text {
    font-weight: bold;
    font-size: 0.88em;
    white-space: nowrap;
}

.rarity-text.rarity-comum { color: #3ac9a0; }
.rarity-text.rarity-incomum { color: #4fd1c5; }
.rarity-text.rarity-raro { color: #c9a6ff; }
.rarity-text.rarity-muitoraro { color: var(--color01); }

.edition-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #cfd8dc;
    white-space: nowrap;
}

.edition-badge.is-java {
    background: rgba(61, 90, 168, 0.35);
    color: #7fb3ff;
}

.no-results-row td {
    text-align: center;
    color: var(--color04);
    padding: 30px 10px;
}

/* ── Legenda de raridade ────────────────────────────────────────────────── */
.rarity-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.82em;
}

.rarity-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cfd8dc;
}

.rarity-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rarity-legend-dot.rarity-comum { background: #3ac9a0; }
.rarity-legend-dot.rarity-incomum { background: #4fd1c5; }
.rarity-legend-dot.rarity-raro { background: #c9a6ff; }
.rarity-legend-dot.rarity-muitoraro { background: var(--color01); }

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
    .stats-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 700px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .enchant-ref-table {
        font-size: 0.75em;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .enchant-name-cell {
        min-width: 180px;
        white-space: normal;
    }
}