﻿.item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.item {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: visible; /* ✅ CHO PHÉP TOOLTIP TRÀN */
}
    .item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* Common - Xanh lá */
.common {
    border: 2px solid #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.6), inset 0 0 5px rgba(46, 204, 113, 0.3);
}

/* Rare - Xanh dương */
.rare {
    border: 2px solid #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.6), inset 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Epic - Tím */
.epic {
    border: 2px solid #9b59b6;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.6), inset 0 0 5px rgba(155, 89, 182, 0.3);
}

/* Legendary - Vàng */
.legendary {
    border: 2px solid #f1c40f;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.6), inset 0 0 5px rgba(241, 196, 15, 0.3);
}

/* Mythic - Đỏ */
.mythic {
    border: 2px solid #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6), inset 0 0 5px rgba(231, 76, 60, 0.3);
}

.label {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.common-label {
    color: #2ecc71;
}

.rare-label {
    color: #3498db;
}

.epic-label {
    color: #9b59b6;
}

.legendary-label {
    color: #f1c40f;
}

.mythic-label {
    color: #e74c3c;
}

.item:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
.item-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 999;
}

/* Hiện tooltip khi hover */
.item:hover .item-tooltip {
    opacity: 1;
    visibility: visible;
}