/* Community tier list editor (transient, no persistence) */

.tl-board {
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(2,6,23,0.55);
}

.tl-tier {
    display: grid;
    grid-template-columns: 110px 1fr 44px;
    border-bottom: 1px solid rgba(0,0,0,0.55);
    min-height: 68px;
}
.tl-tier:last-child { border-bottom: none; }

.tl-tier-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    font-weight: 800;
    font-size: 1.15rem;
    color: #0f172a;
    text-align: center;
    word-break: break-word;
    cursor: text;
    min-width: 0;
}
.tl-tier-label:focus { outline: 2px solid rgba(59,130,246,0.8); outline-offset: -2px; }

.tl-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    min-height: 66px;
    align-content: flex-start;
    background: rgba(2,6,23,0.35);
}
.tl-items.tl-drop-hover { box-shadow: inset 0 0 0 2px rgba(96,165,250,0.8); }

.tl-tier-gear {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,41,59,0.7);
    border-left: 1px solid rgba(148,163,184,0.2);
    border-top: none;
    border-right: none;
    border-bottom: none;
    color: #cbd5e1;
    font-size: 1.1rem;
}
.tl-tier-gear:hover { background: rgba(51,65,85,0.9); color: #fff; }

.tl-gear-menu {
    position: fixed;
    z-index: 3000;
    min-width: 190px;
    background: #1e293b;
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.tl-gear-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #e2e8f0;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.tl-gear-menu button:hover { background: rgba(59,130,246,0.25); }
.tl-gear-menu button.tl-danger:hover { background: rgba(239,68,68,0.3); }

.tl-item {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(30,41,59,0.85);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 8px;
    padding: 5px 9px 5px 5px;
    max-width: 220px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.tl-item:active { cursor: grabbing; }
.tl-item-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
}
.tl-item-img.tl-round { border-radius: 50%; }
.tl-item-txt { min-width: 0; }
.tl-item-name {
    display: block;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.tl-item-sub { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: #94a3b8; }
.tl-item-sub img { width: 16px; height: 16px; object-fit: contain; }

.tl-ghost {
    position: fixed;
    z-index: 4000;
    pointer-events: none;
    opacity: 0.92;
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}
.tl-drag-src { opacity: 0.35; }

.tl-slot {
    flex: 0 0 auto;
    width: 6px;
    min-height: 54px;
    border-radius: 3px;
    background: rgba(96,165,250,0.9);
}

.tl-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    min-height: 110px;
    max-height: 46vh;
    overflow-y: auto;
    background: rgba(2,6,23,0.45);
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 10px;
    align-content: flex-start;
}
.tl-pool.tl-drop-hover { box-shadow: inset 0 0 0 2px rgba(96,165,250,0.8); }

.tl-empty-note { color: #94a3b8; font-size: 0.9rem; padding: 10px; }

@media (max-width: 767.98px) {
    .tl-tier { grid-template-columns: 74px 1fr 38px; min-height: 60px; }
    .tl-tier-label { font-size: 0.95rem; }
    .tl-item { max-width: 170px; padding-right: 7px; }
    .tl-item-img { width: 36px; height: 36px; }
    .tl-item-name { max-width: 100px; font-size: 0.75rem; }
    .tl-gear-menu { min-width: 170px; }
}
