/* Inventory Specific Styles */
.inventory-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
    flex-wrap: nowrap; /* Keep categories in one line */
    overflow-x: auto; /* Allow scrolling if needed */
    padding-bottom: 10px; /* Space for scrollbar */
}

.inventory-categories::-webkit-scrollbar {
    height: 8px;
}

.inventory-categories::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}

.inventory-categories::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.category-btn {
    white-space: nowrap; /* Prevent text wrapping */
    min-width: max-content;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.inventory-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.1);
    position: relative;
}

.inventory-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.avatar-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    position: relative;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.inventory-item:hover .avatar-image img {
    transform: scale(1.1);
}

.avatar-image.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.active-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.equip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.inventory-item:hover .equip-overlay {
    opacity: 1;
}

.use-btn {
    background: var(--gradient-1);
    color: var(--background-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.inventory-item:hover .use-btn {
    transform: translateY(0);
    opacity: 1;
}

.use-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px var(--shadow-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .inventory-categories {
        padding-bottom: 15px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
/* Inventory Specific Styles */
.inventory-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
    flex-wrap: nowrap; /* Keep categories in one line */
    overflow-x: auto; /* Allow scrolling if needed */
    padding-bottom: 10px; /* Space for scrollbar */
}

.inventory-categories::-webkit-scrollbar {
    height: 8px;
}

.inventory-categories::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}

.inventory-categories::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.category-btn {
    white-space: nowrap; /* Prevent text wrapping */
    min-width: max-content;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.inventory-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.1);
    position: relative;
}

.inventory-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.avatar-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    position: relative;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.inventory-item:hover .avatar-image img {
    transform: scale(1.1);
}

.avatar-image.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.active-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.equip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.inventory-item:hover .equip-overlay {
    opacity: 1;
}

.use-btn {
    background: var(--gradient-1);
    color: var(--background-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.inventory-item:hover .use-btn {
    transform: translateY(0);
    opacity: 1;
}

.use-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px var(--shadow-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .inventory-categories {
        padding-bottom: 15px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 10px;
    }
} 
