/* css/wildrift-ranking.css */

.character-container {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    perspective: 1000px;
    transition: transform 0.2s ease-out;
    cursor: grab;
}

.character-container:active {
    cursor: grabbing;
}

.character-container:hover {
    z-index: 10;
}

.character-icon {
    width: var(--character-size, 60px);
    height: var(--character-size, 60px);
    border-radius: 8px;
    border: 2px solid rgba(200, 170, 110, 0.5); /* Hextech Gold */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.1s ease-out, box-shadow 0.2s ease;
    background-color: #010a13;
    pointer-events: none;
}

.character-container:hover .character-icon {
    box-shadow: 0 8px 16px rgba(10, 190, 185, 0.4); /* Hextech Cyan Glow */
    border-color: #0abeb9;
}

#scrollable-ranking-container {
    max-height: calc(100vh - 360px); 
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #c8aa6e #091428;
}

.gu-mirror {
    position: fixed !important;
    margin: 0 !important;
    z-index: 9999 !important;
    opacity: 0.9;
    scale: 1.1;
    pointer-events: none;
}

.gu-mirror .character-icon {
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: #c8aa6e;
}

.rank-tier {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.rank-tier-label {
    width: 100%;
    min-height: 45px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tier-search-container {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 10;
}

.tier-name-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin: 0;
}

.tier-controls-buttons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.tier-controls-buttons button {
    padding: 6px 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tier-controls-buttons button:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.tier-characters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.05);
    align-content: flex-start;
}

.character-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background-color: rgba(9, 20, 40, 0.4);
    border: 1px solid rgba(200, 170, 110, 0.1);
    border-radius: 8px;
    min-height: 100px;
}

.custom-context-menu, #character-info-popup {
    position: fixed;
    z-index: 10000;
    display: none;
    background-color: #010a13;
    border: 1px solid #c8aa6e;
    border-radius: 4px;
    padding: 5px 0;
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.3);
    min-width: 150px;
}

.custom-context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    list-style: none;
    color: #cdd6f4;
}

.custom-context-menu li:hover {
    background-color: #1e2328;
    color: #c8aa6e;
}

.tier-search-input {
    background-color: rgba(0,0,0,0.5) !important;
    border-color: rgba(200, 170, 110, 0.3) !important;
    color: #fff !important;
    font-size: 0.7rem;
    padding: 2px 5px;
}

.search-results-popup {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #010a13;
    border: 1px solid #c8aa6e;
    width: 200px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}

.search-result-item:hover {
    background: #1e2328;
}

.search-result-item img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}