/* LR Typeahead — shared styles for the site-wide champion/tag autocomplete.
   Used by the search page (lr-suggest*) and by enhanced selects (lr-ta*). */

/* ---------- Dropdown ---------- */

.lr-suggest-anchor {
    position: relative;
}

.lr-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    overflow-y: auto;
    max-height: min(320px, 42vh);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.58);
    /* One elevation step LIGHTER than the warm-grey input so the list visibly
       floats, staying in the same warm-neutral family as the fields. */
    background: #35322f;
    box-shadow: 0 14px 30px rgba(0,0,0,.55);
    display: none;
    /* Themed scrollbar so the default OS bar doesn't break the panel look */
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.45) transparent;
}

    .lr-suggest::-webkit-scrollbar {
        width: 8px;
    }

    .lr-suggest::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.4);
        border-radius: 8px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

    .lr-suggest::-webkit-scrollbar-track {
        background: transparent;
    }

    .lr-suggest.open {
        display: block;
    }

.lr-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    color: #f6efe0;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    text-align: left;
}

    .lr-suggest-item:last-child {
        border-bottom: none;
    }

    .lr-suggest-item.active,
    .lr-suggest-item:hover {
        background: rgba(200, 155, 60, 0.18);
    }

    .lr-suggest-item b {
        color: var(--light-gold-color, #e6d9a3);
    }

.lr-suggest-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lr-suggest-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.45);
    object-fit: cover;
    background: #10141c;
}

.lr-suggest-type {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--light-gold-color, #e6d9a3);
    opacity: .9;
}

.lr-suggest-hint {
    padding: 11px 16px;
    font-size: 0.92rem;
    color: #f6efe0;
    opacity: .85;
    cursor: default;
    text-align: left;
}

    .lr-suggest-hint b {
        color: var(--light-gold-color, #e6d9a3);
    }

/* Sticky action bar at the bottom of the open list */
.lr-suggest-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    background: #1a1f29;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    color: rgba(235, 222, 180, 0.75);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lr-suggest-done {
    all: unset;
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d8b355, #b98f33);
    color: #10141c;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    font-family: 'MainFont', serif;
}

    .lr-suggest-done:hover,
    .lr-suggest-done:focus {
        filter: brightness(1.12);
    }

/* ---------- Enhanced select box (chips + input) ---------- */

/* Source <select> elements awaiting enhancement: keep them out of the layout
   so the page doesn't flash a native multi-select before JS runs. */
select.lr-ta-src {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

/* Reserve the box height before JS enhances, so the content below doesn't
   jump when the typeahead mounts. (Old browsers without :has just keep the shift.) */
div:has(> select.lr-ta-src) {
    min-height: 52px;
}


.lr-ta {
    position: relative;
    width: 100%;
    text-align: left;
}

.lr-ta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 52px;
    padding: 9px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #302e2c, #292725);
    border: 1px solid rgba(200, 170, 110, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 14px rgba(0, 0, 0, 0.35);
    cursor: text;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    /* Gold magnifier — a flex child so it scales with compact variants */
    .lr-ta-box::before {
        content: "";
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8aa6e' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") no-repeat center / contain;
        opacity: .8;
        margin-right: 2px;
        pointer-events: none;
    }

    .lr-ta-box:hover {
        border-color: rgba(212, 175, 55, 0.65);
    }

    .lr-ta-box:focus-within {
        border-color: rgba(212, 175, 55, 0.9);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(212, 175, 55, 0.14), 0 0 18px rgba(200, 155, 60, 0.22);
    }

.lr-ta-chips {
    display: contents;
}

/* Chips follow the site's pill language: dark fill, gold ring, parchment text */
.lr-ta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px 4px 10px;
    border-radius: 999px;
    background: rgba(200, 155, 60, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: #f0e6d2;
    font-weight: 600;
    font-size: 0.92rem;
    font-family: 'MainFont', serif;
    line-height: 1.2;
    white-space: nowrap;
}

    .lr-ta-chip:hover {
        border-color: rgba(212, 175, 55, 0.85);
        background: rgba(200, 155, 60, 0.2);
    }

.lr-ta-chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(240, 230, 210, 0.5);
    object-fit: cover;
    margin-left: -4px;
}

.lr-ta-chip-x {
    all: unset;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 2px;
    color: var(--gold-color, #c8aa6e);
    opacity: .8;
}

    .lr-ta-chip-x:hover,
    .lr-ta-chip-x:focus {
        opacity: 1;
    }

.lr-ta-input {
    flex: 1 1 120px;
    min-width: 110px;
    border: none;
    outline: none;
    background: transparent;
    color: #f0e6d2;
    font-size: 1.05rem;
    font-family: 'MainFont', serif;
    letter-spacing: .02em;
    padding: 4px 2px;
}

    /* Spaced small-caps placeholder in bright parchment so it pops as a label */
    .lr-ta-input::placeholder {
        color: #efe6d0;
        text-transform: uppercase;
        font-size: .88em;
        font-weight: 600;
        letter-spacing: .1em;
        opacity: 1;
    }
